Skip to content

Codex app permission mode changes apply across chats instead of the active chat #22771

Open

Description

@111mihir

What version of the Codex App are you using (From “About Codex” dialog)?

26.513.20950 (2816)

What subscription do you have?

Not included here; this appears to be local app/runtime behavior rather than plan-specific behavior. I can provide it if needed.

What platform is your computer?

Darwin 25.4.0 arm64 arm

What issue are you seeing?

In the macOS Codex desktop app, changing the permission mode in one chat appears to apply that permission mode globally across other chats, instead of being scoped to the active chat/thread.

This is surprising and potentially unsafe for multi-chat workflows. If I raise permissions for one high-trust task, unrelated existing or new chats appear to inherit that raised mode. Conversely, lowering permissions for one chat affects other active work.

The app UI makes this feel like a chat/session control, but the observed effect is app-wide. If the intended behavior is app-wide defaults, the UI should make that explicit. If the intended behavior is chat-local permissions, the app should persist/apply the mode per thread.

What steps can reproduce the bug?

  1. Open Codex.app on macOS.
  2. Start or open Chat A.
  3. Use the permission mode control in Chat A and switch to a different mode, for example Full Access or Auto-review.
  4. Open or start Chat B in the same Codex.app instance.
  5. Observe that Chat B now shows/uses the same permission mode change from Chat A.
  6. Switch the mode in Chat B.
  7. Return to Chat A and observe that the permission mode has changed there as well.

What is the expected behavior?

Either:

  1. Permission mode changes made from a chat are scoped to that chat/thread and do not alter other chats, or
  2. The control is clearly labeled as an app-wide/default permission setting so users understand that changing it affects all chats.

For safety, I think chat/thread-local behavior is the better default. A broad permission grant for one task should not silently change the safety envelope for unrelated chats.

Additional information

I checked the public repo before filing this. The public contribution policy says unsolicited PRs are not accepted, so I am filing this as an issue with analysis rather than opening a PR.

Relevant public app-server/protocol evidence from openai/codex at e6a73688105735c73cfc21b16c9701e2c05b7849:

  • codex-rs/app-server/README.md documents that thread/start, thread/resume, and thread/fork accept permission override rules. This suggests thread-level permission selection is already supported at the app-server boundary.
  • codex-rs/app-server/README.md also says approval requests include threadId and turnId, and clients should scope UI state to the active conversation.
  • codex-rs/app-server-protocol/schema/typescript/v2/TurnStartParams.ts describes approvalPolicy and sandboxPolicy as overrides for the current turn and subsequent turns, not global app settings.
  • The same README exposes config/value/write and config/batchWrite for writing user config.toml, including desktop.* keys. My root-cause hypothesis is that the desktop app permission mode control may be persisting a global/user config value rather than applying a thread/turn-scoped override.

Potential fix direction:

  • Treat the permission mode selector in a thread as thread-local state.
  • On thread creation/resume/turn start, pass the selected permission profile / approval policy / sandbox policy through the existing thread/start, thread/resume, thread/fork, or turn/start override fields.
  • Avoid writing the active thread's permission selection into global user config unless the user explicitly chooses a global default setting.
  • If global behavior is intentional, rename/relabel the control to make that scope explicit, for example “Default permissions for all chats”.

I am happy to help with a targeted PR if a maintainer confirms this is the desired behavior and invites an external contribution.

Activity

  1. added
    bug
    sandbox
    app
    on May 15, 2026
  2. axisrow commented on Jul 22, 2026

    @axisrow

    Anthropic made this long time ago

  3. carabinshely commented on Oct 9, 2026

    @carabinshely

    I would like an explicit global default plus independent per-session overrides. In my workflow, switching one Codex chat from Approve for Me to Full Access immediately changed the mode shown in another chat, making the scope of the control unclear. This is a user-observed UI result; I have not established how the effective runtime permissions changed.

    Please provide:

    • A clearly labeled global default.
    • A per-session choice to inherit that default or use an explicit override.
    • An indication of the effective mode and its source.
    • Session changes that leave other sessions unchanged.
    • Clear behavior when the global default changes, including which existing sessions are affected.
    • Consistent scope and terminology across supported clients, with enforced workspace restrictions shown explicitly.

    The relevant app/client and backend builds were not captured, and the sessions' host and policy associations were not independently established. This adds a concrete default-and-override model to the existing request; it does not establish the internal cause of the cross-chat UI behavior.

  4. vanowm commented on Nov 14, 2026

    @vanowm

    Additional observation of the same UI behavior:

    All existing chats displayed Ask for approval. After selecting Approve for me in one chat, the displayed selection changed to Approve for me in all the other chats, including an existing chat whose selector had not been changed individually.

    Observed sequence:

    1. Open several existing chats and check the approval selector below the composer.
    2. In one chat, change Ask for approval to Approve for me.
    3. Switch to the other existing chats.
    4. Observe that their selectors now also display Approve for me.

    Expected: the selector should clearly communicate whether its scope is the current chat or a shared setting across chats.

    This reports the visible behavior observed by the account owner. It does not establish that the effective permissions of every running chat changed immediately. Submitted at the account owner's request; no local configuration details, logs, identifiers, or environment diagnostics are included.

  5. wwestlake commented on Nov 17, 2026

    @wwestlake

    Additional Windows reproduction observed on November 17, 2026.

    Environment:

    • ChatGPT/Codex desktop package: OpenAI.Codex 26.1103.7773.0 (x64)
    • Bundled Codex runtime: codex-cli 0.167.0-alpha.3.2
    • OS: Windows 10 Pro 64-bit, version 10.0.19045 (build 19045)

    Observed behavior:

    1. Open three existing conversations in the desktop app.
    2. Change the permission mode using the selector below the composer in one conversation.
    3. Switch to either of the other two conversations.
    4. Their displayed permission selection has changed to the same mode, even though neither selector was changed in those conversations.
    5. Changing the mode in another conversation similarly changes the displayed selection across all three.

    This reproduces the cross-chat UI propagation described in the original report. It makes a control positioned within a conversation behave like an application-wide setting.

    Scope of this observation:

    • This confirms the visible selector state propagates across existing conversations.
    • It does not establish whether the effective runtime sandbox/approval policy of every already-running conversation changes at the same time; no logs or private session transcripts were inspected or attached.

    Expected:

    • Existing conversations retain independent permission selections; or
    • If the setting is intentionally application-wide, the UI clearly labels its scope and places it in application settings rather than presenting it as a conversation-local control.
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