Skip to content

macOS: model switch silently downgrades Full Access to workspace-write while approval remains never #49776

Open

Description

@nathankim0

What version of the Codex App are you using?

Desktop application bundle version: 26.917.51856 (read from the installed bundle; not the About dialog). Session engine/CLI version: 0.159.2.

What subscription do you have?

Not included in this report.

What platform is your computer?

macOS 27.0, arm64.

What issue are you seeing?

An existing Full Access session silently changed from danger-full-access to workspace-write with restricted network access, while the approval policy remained never. The user did not intentionally change permissions. The transition coincided with a model change from gpt-6-luna to gpt-6.1-sol.

This left the agent unable to perform previously authorized operations or request escalation. In a Git worktree, committing failed because the actual Git metadata directory was outside the writable worktree root:

fatal: Unable to create '<main-repository>/.git/worktrees/<worktree>/index.lock': Operation not permitted

Watchman startup also failed when trying to modify its state directory outside the workspace.

What steps can reproduce the bug?

Observed sequence, not yet independently reproduced in a clean installation:

  1. Use an existing session in a macOS desktop/CLI shared-thread workflow, with Full Access (danger-full-access, approval policy never). The CLI launch aliases used --dangerously-bypass-approvals-and-sandbox.
  2. Continue the thread using gpt-6-luna, then switch back to gpt-6.1-sol without intentionally changing permissions.
  3. Submit another task involving Git worktree metadata or another path outside the workspace.
  4. The next turn runs under workspace-write, network restricted, approval policy still never.

What is the expected behavior?

Changing the model or continuing a thread should preserve the explicitly selected Full Access permission profile. A permission downgrade should require an explicit user action and be clearly reflected in the UI before the next turn executes.

Additional information

Sanitized local session and client submission logs show the following timeline (UTC):

Time Model Sandbox Approval
2026-09-30 23:23:08 gpt-6-luna danger-full-access never
2026-09-30 23:56:12 gpt-6.1-sol workspace-write, network_access=false never
2026-10-01 00:06:54 gpt-6.1-sol danger-full-access never

The client submission immediately preceding the downgrade, at 2026-09-30 23:56:11 UTC, included:

ThreadSettingsOverrides {
  approval_policy: Some(Never),
  sandbox_policy: None,
  permission_profile: Some(Managed {
    file_system: Restricted { ... },
    network: restricted
  }),
  active_permission_profile: Some(ActivePermissionProfile {
    id: ":workspace",
    extends: None
  }),
  model: Some("gpt-6.1-sol"),
  ...
}

Subsequent submissions continued requesting :workspace. A later submission requested :danger-full-access, and Full Access was restored. This establishes that the client submitted the downgraded profile; it does not establish why the client selected it. No screenshot of the permission selector at the moment of transition is available.

Before any workaround was applied, a later app-state snapshot had both agent-mode-by-host-id.local and config-derived-agent-mode-by-host-id.local set to auto, even though the running thread had returned to Full Access. This is a post-incident observation, not proof of the state at the moment of downgrade. At the time of the incident, the CLI aliases supplied bypass flags, but config.toml did not contain explicit top-level sandbox/approval defaults. Explicit defaults and app-state changes were only applied afterward as a local workaround.

Related reports:

This report adds a macOS case with client-side :workspace override evidence and the consequential workspace-write + never combination. The shared desktop/CLI workflow may be relevant; this has not been isolated to desktop-only use. Full session logs, private paths, and conversation contents are intentionally omitted.

Activity

  1. added
    bug
    app
    sandbox
    on Oct 1, 2026
  2. Swivelgames commented on Oct 9, 2026

    @Swivelgames

    This keeps happening to me as well, and I'm on Linux, not macOS.

    Thread ID 01a0f5af-bfa0-7ed2-ab81-b148ae4783f7

    It happens multiple times throughout the same thread. Switches to workspace, and I have to manually change it back to Full Access.

    This original thread was opened with --yolo, and resumed with codex --yolo resume.

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

    appbugsandbox

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions