Repository navigation
Description
What version of Codex CLI is running?
0.158.0,
What subscription do you have?
Pro 200
Which model were you using?
gpt-6.1-Sol
What platform is your computer?
macOS Darwin 25.6.0 arm64 arm
What terminal emulator and version are you using (if applicable)?
codex --dangerously-bypass-approvals-and-sandbox -C /Users/[Path]
Codex doctor report
What issue are you seeing?
I've hit two permission downgrade incidents today on macOS, Codex CLI 0.158.0, with persisted logs showing the transition.
Started with this explicit command, workspace path redacted:
codex --dangerously-bypass-approvals-and-sandbox -C /path/to/workspace
The session initially honored it: danger-full-access, approval policy never. Android emulator commands worked.
Timeline, September 29, 2026, EDT:
01:20:56: session settings still recorded full access.
01:27:05: the agent finished its task. The session was idle afterward, with local development servers running.
05:06:55: both retained development-server commands were recorded as exiting with code 137. The logs inspected do not identify what killed them.
05:06:56: thread_settings_applied recorded a managed :workspace permission profile with restricted filesystem/network access. Approval policy remained never.
08:10:16: work resumed under those restrictions. Previously working ADB/CoreSimulator operations were now blocked.
The runtime logs around the transition show:
rpc.method="thread/resume"
rpc.transport="unix_socket"
app_server.client_name="codex-tui"
app_server.client_version="0.158.0"
had_active_turn=false
They also record shutdown and reconstruction of the same thread. I did not intentionally change its permissions. The trace establishes a local terminal-client resume; it does not establish what triggered it or whether mobile continuation was involved.
One additional diagnostic clue: that resume's model-cache logs expected version 0.159.0, while the requesting terminal client identified itself as 0.158.0. I am not claiming that mismatch caused the downgrade.
This silently stopped real development and device verification despite an explicit startup flag. That is unacceptable behavior for a long-running development tool.
Please investigate:
What initiated the resume while the session was idle?
Why did the reconstructed session receive restricted permissions despite its explicitly selected full-access mode?
What supported recovery preserves the conversation, and what fix prevents recurrence?
Please don't close this with "launch using --yolo." The equivalent explicit flag was already supplied and initially worked. I can provide sanitized settings and runtime-log excerpts.
What steps can reproduce the bug?
You tell me. This is Codex CLI issue
What is the expected behavior?
No response
Additional information
No response
Activity
github-actions commentedon Sep 30, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action