Skip to content

YOLO Mode Not YOLO-ING #49442

Closed as duplicate
Closed as duplicate

Description

@flounderella

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

  1. added
    bug
    on Sep 30, 2026
  2. added
    CLI
    sandbox
    app-server
    on Sep 30, 2026
  3. github-actions commented on Sep 30, 2026

    @github-actions
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIapp-serverbugsandbox

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions