Skip to content

Disable Codex goals so no work outlives the Turn - #876

Merged
SaladDay merged 1 commit into
mainfrom
disable-codex-goals
Oct 25, 2026
Merged

SaladDay merged 1 commit into
mainfrom
disable-codex-goals

Conversation

@SaladDay

@SaladDay SaladDay commented Oct 25, 2026 •

Copy link
Copy Markdown
Collaborator

Codex 0.153.4 turns on its goals feature by default. When a thread with an active goal goes idle, app-server starts another turn toward the goal on its own (ext/goal on_thread_idle → continue_if_idle).

Measured on mx (microsandbox, MiniMax-M2.7): a hosted Codex Session whose only Turn asked the model to call create_goal and then stop. The rollout shows task_complete at 09:29:09 and a new task_started in the same second, with the internal message "Continue working toward the active thread goal". That turn ran two exec_command calls, wrote notes.txt in the workspace and called update_goal. The API listed one completed Turn, so the tool calls, model tokens and workspace change happened outside any Turn.

The adapter now disables goals. This uses the existing override reason "no work that outlives its Turn": the reason sits beside the flag, the Codex Runtime guide lists the override, and the OpenAI compatibility ledger (EN + ZH) records the native difference.

Checks: go vet and go test for apps/daemon/internal/agent/codex, website build and tests (28/28), BundledDocsTests.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

An active Codex goal makes app-server start a continuation turn on its own whenever the thread goes idle. On mx a hosted Session whose Turn created a goal ran a second native turn right after the Turn completed: two exec_command calls wrote notes.txt in the workspace and update_goal closed the goal, while the API listed one completed Turn. The adapter now passes --disable goals, an unattended-cloud override for work that outlives its Turn.
@SaladDay
SaladDay merged commit cd1459f into main Oct 25, 2026
21 checks passed
@SaladDay
SaladDay deleted the disable-codex-goals branch October 25, 2026 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant