Skip to content

feat(codex): add goal mode controls#699

Open
ahirreddy wants to merge 16 commits into
omnigent-ai:mainfrom
ahirreddy:codex-goal-mode-controls
Open

feat(codex): add goal mode controls#699
ahirreddy wants to merge 16 commits into
omnigent-ai:mainfrom
ahirreddy:codex-goal-mode-controls

Conversation

@ahirreddy

Copy link
Copy Markdown
Collaborator

Summary:

  • adds Codex goal mode UI/API/runner support on top of the parity harness
  • adds Pause and Resume controls for user-driven Codex goal status transitions
  • adds a Mode selector in the Goal modal so Save can configure Active/Paused alongside objective and token budget
  • forwards configured goal mode through PUT /v1/sessions/{id}/codex_goal as a single thread/goal/set request
  • preserves Codex-owned statuses such as blocked, usageLimited, budgetLimited, and complete by default when editing objective/budget
  • brings over the associated SPA/API fallback guard so /v1 misses return JSON instead of the web UI shell
  • keeps legacy runner/server/UI test changes out of this stack layer
  • adds goal operation, set-mode, status-update, and API-fallback coverage only under tests/codex_parity

Validation:

  • .venv/bin/ruff check omnigent/server/schemas.py omnigent/server/routes/sessions.py omnigent/runner/app.py omnigent/server/app.py tests/codex_parity/test_codex_executor_parity.py
  • .venv/bin/python scripts/dump_openapi.py --check
  • npm run type-check
  • OMNIGENT_SKIP_WEB_UI=true uv --no-config run --frozen --default-index https://pypi-proxy.cloud.databricks.com/simple/ --extra dev pytest tests/codex_parity --codex-parity --codex-bin /home/ahirreddy/.local/bin/codex -q

# Conflicts:
#	tests/server/integration/test_sessions_endpoints.py
# Conflicts:
#	ap-web/src/lib/sessionsApi.test.ts
#	ap-web/src/pages/ChatPage.composer.test.tsx
#	tests/server/integration/test_sessions_endpoints.py
@github-actions github-actions Bot added the size/XL Pull request size: XL label Jun 18, 2026
@github-actions github-actions Bot requested review from fanzeyi and hzub June 18, 2026 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XL Pull request size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant