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
apply_patch writes to session CWD instead of requested workspace, causing edits in wrong repo #3749
After a user asks to "set workspace" (or otherwise selects a workspace), all subsequent write operations should target that workspace consistently, not the session CWD.
Alternatively, the agent should be required to choose a single active workspace and all tools should use it implicitly.
If multiple projects are trusted and the agent is about to write relative to a different workspace than referenced by recent reads or user instruction, Codex CLI should warn and ask for confirmation.
What do you see instead?
Actual Behavior
apply_patch writes to the session CWD, ignoring the user's requested workspace and the read workdir used by the agent, leading to edits in the wrong repo.
Activity
etraut-openai commentedon Jan 13, 2026
Closing stale bug.