You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Codex exec subagent modifies files far outside task scope (37 files changed for 8-file fix) #11985
When using codex exec --full-auto to perform a targeted batch fix across 8 specific files, the agent modified 37 files — many completely unrelated to the assigned task. This creates a serious trust/safety issue for automated workflows where Codex output is integrated into CI or review pipelines.
trade-engine/ Cargo.toml, exchange types, event bus
None of these extra modifications were requested or implied by the prompt.
Impact
Trust violation: In --full-auto mode, users expect the agent to stay within scope. Unreviewed out-of-scope changes can introduce regressions, break APIs, or silently alter behavior.
Workflow blocker: We had to halt our regression pipeline, manually diff 37 files, and selectively discard ~29 files of unwanted changes before testing could proceed.
Wasted compute: The extra changes represent unnecessary token spend and latency.
Expected Behavior
The agent should:
Only modify files directly relevant to the prompt
If it believes adjacent files need changes (e.g., fixing a broken import), it should flag this rather than silently editing in --full-auto mode
At minimum, provide a summary of all files touched so the caller can verify scope
Environment
codex exec --full-auto --skip-git-repo-check
Model: gpt-5.1-codex
Codebase: ~25K LOC Rust monorepo (trading engine + genetic algorithm)
Thanks for the bug report, but there's not enough information here for us to investigate further.
If you see issues like this in the future, please use the interactive CLI to reload the session and then use the /feedback command to upload the session details and post the thread ID with the bug report.
Activity
etraut-openai commentedon Feb 17, 2026
Thanks for the bug report, but there's not enough information here for us to investigate further.
If you see issues like this in the future, please use the interactive CLI to reload the session and then use the
/feedbackcommand to upload the session details and post the thread ID with the bug report.