Skip to content

Mobile remote continuation can downgrade desktop full-access sessions to managed workspace-write permissions #30485

Open

Description

@davidbordenwi

What happened?

A Codex Desktop session that was running with full access started prompting for approvals after I continued/controlled the same running session from ChatGPT mobile under the Codex section. After returning to the desktop app, the same session continued prompting until I relaunched the agent role into a fresh desktop session.

This has happened multiple times in the last 24 hours. I investigated the local session JSONL and found that the runtime turn context changed from full-access to a managed/restricted profile immediately after a mobile/remote continuation injected a new <environment_context>.

Expected behavior

Remote/mobile control should preserve the connected host/session permission posture. The remote connections docs say the connected host provides the environment and that the connected session's sandboxing settings, security controls, and action approvals still apply.

If a desktop session is running with:

approval_policy = never
sandbox_policy.type = danger-full-access
permission_profile.type = disabled

then continuing that same session from mobile should not silently rehydrate it as:

approval_policy = on-request
sandbox_policy.type = workspace-write
permission_profile.type = managed

Actual behavior

The session's next turn context changed to on-request / workspace-write / managed, and normal commands against the real working repo outside the projectless Codex folder started requiring approval/escalation.

Sanitized local trace

Codex Desktop / CLI version observed in session metadata: 0.142.3.
Codex app build in config env: 26.623.42026.
Host: macOS, Codex Desktop, ChatGPT mobile remote/control involved.

Thread A: orchestrator session

Session/thread id: 019f0e2a-0566-7c93-bfe4-88366a85567f

Before mobile/remote continuation:

2026-06-28T19:18:06.854Z
turn_id=019f0faa-e8fa-7cc3-aaa7-70a315690396
approval_policy=never
sandbox_policy=danger-full-access
permission_profile=disabled
cwd=/Users/.../Documents/Codex/2026-06-28/continue-from-users-david-borden-dev-2

Immediately after a user-side injected environment context with permission_profile type="managed":

2026-06-28T19:19:40.971Z
turn_id=019f0fac-58a4-77f1-aa68-5a265cc40841
approval_policy=on-request
sandbox_policy=workspace-write
permission_profile=managed
cwd=/Users/.../Documents/Codex/2026-06-28/continue-from-users-david-borden-dev-2

Subsequent turns stayed restricted:

2026-06-28T19:20:46.915Z  on-request / workspace-write / managed
2026-06-28T19:23:11.940Z  on-request / workspace-write / managed
2026-06-28T20:09:47.137Z  on-request / workspace-write / managed

During this restricted window, the actual work repo was outside the projectless Codex workspace:

/Users/.../dev/control/environment-foundation

Normal operations against that repo began requiring escalated permission fields, for example tool calls were emitted with sandbox_permissions: require_escalated and justifications like reading or committing in the control repo outside the current sandbox writable root.

After relaunching the role into a fresh Codex Desktop-created session:

new thread id=019f0fda-d476-73d2-b8fe-9e043de86041
2026-06-28T20:10:30.396Z
approval_policy=never
sandbox_policy=danger-full-access
permission_profile=disabled

Thread B: watcher session

Session/thread id: 019f0e2a-267d-7a40-a266-bdb64fafaea4

Before mobile/remote continuation:

2026-06-28T19:40:19.943Z
turn_id=019f0fbf-4063-7a03-aa53-deb1e48fa9cb
approval_policy=never
sandbox_policy=danger-full-access
permission_profile=disabled
cwd=/Users/.../Documents/Codex/2026-06-28/open-users-david-borden-dev-control

After injected managed environment context:

2026-06-28T19:52:31.730Z
turn_id=019f0fca-6ae5-7fb1-a7fd-3c0f4be63352
approval_policy=on-request
sandbox_policy=workspace-write
permission_profile=managed

Subsequent restricted turns:

2026-06-28T19:55:20.017Z  on-request / workspace-write / managed
2026-06-28T19:57:01.429Z  on-request / workspace-write / managed
2026-06-28T19:58:13.000Z  on-request / workspace-write / managed
2026-06-28T19:59:05.747Z  on-request / workspace-write / managed

Later, after another environment context with permission_profile type="disabled", the same thread returned to:

2026-06-28T20:11:52.960Z
approval_policy=never
sandbox_policy=danger-full-access
permission_profile=disabled

A fresh watcher relaunch also started correctly:

new thread id=019f0fdc-ab7d-7041-a87e-200742f13f7e
2026-06-28T20:12:29.320Z
approval_policy=never
sandbox_policy=danger-full-access
permission_profile=disabled

Repro shape

  1. Start a Codex Desktop session with full access.
  2. Verify turn context is approval_policy=never, sandbox_policy=danger-full-access, permission_profile=disabled.
  3. Continue/control that same running session from ChatGPT mobile under Codex.
  4. Observe next turn contains an injected <environment_context> with permission_profile type="managed" and restricted filesystem write entries for the projectless Codex folder.
  5. Observe next turn_context is on-request / workspace-write / managed.
  6. Return to desktop and run ordinary repo commands outside the projectless folder; prompts/escalations are now required.
  7. Relaunch the same role in a fresh desktop-created session; full-access turn context returns.

Impact

This creates friction and can interrupt long-running orchestrator/watchdog sessions. It also makes the UI/session hard to reason about because the user believes the desktop session is still full access, but the persisted turn context has been downgraded after mobile interaction.

Related issues

This looks related to:

Workaround being tested

Based on adjacent reports, I added explicit global defaults:

approval_policy = "never"
sandbox_mode = "danger-full-access"

However, the core issue here appears to be session rehydration/mobile continuation injecting permission_profile type="managed" into an existing full-access session. A config default may help new sessions or Custom profile selection, but it should not be necessary to preserve an already-running session's permission posture.

I can provide additional sanitized turn-context snippets if useful, but I am intentionally not attaching full JSONL logs because they contain private prompts, paths, and tool output.

Activity

  1. added
    bug
    app
    iOS
    sandbox
    session
    on Jun 28, 2026
  2. andybergon commented on Jul 24, 2026

    @andybergon

    I can reproduce a narrower version of this on macOS with Codex Desktop 26.721.30844, controlled remotely from an Android phone.

    Repro:

    1. Open an existing thread through mobile remote on Android.
    2. Select Full access.
    3. Leave the thread and reopen it from mobile.
    4. The selector has changed to Default permissions. No desktop-app restart is required.

    The local turn context confirms that the entire compound mode changes:

    Before: approval_policy=never / sandbox_policy=danger-full-access / permission_profile=disabled
    After:  approval_policy=on-request / sandbox_policy=workspace-write / permission_profile=managed
    

    This does not simply restore config.toml. My config specifies:

    default_permissions=:workspace
    approval_policy=on-request
    approvals_reviewer=auto_review
    

    The restored Default permissions preset instead used human approval, so mobile navigation changed both sandbox access and approval behavior. Selecting Full access again only lasts until leaving and reopening the thread.

  3. ajackxthegather commented on Aug 30, 2026

    @ajackxthegather

    Additional Windows + Android reproduction observed 2026-08-30. This appears to match the mobile-continuation permission downgrade in this issue, with an especially clear desktop-vs-mobile UI divergence.

    Environment / baseline

    • Host: Windows Codex Desktop
    • Remote client: ChatGPT Android Codex Remote
    • Same account / same thread on both devices
    • User expects all normal production threads to remain in Full Access unless explicitly changed

    Current behavior

    • On Windows Desktop, the affected threads show Full Access.
    • On Android Remote, those same threads repeatedly fall back to a more restricted permission mode and require approval for routine actions.
    • If the user changes the Android permission picker back to Full Access, the selection does not stick.
    • It can revert as soon as the user navigates away from the thread.
    • It can also revert while the user stays on the same thread; no page/thread switch is required.
    • The problem is not isolated to one old thread. Multiple existing threads are affected.
    • Creating a brand-new thread did not solve the problem; the new thread is affected by the same permission-state behavior.

    Important A/B observation

    The same thread can simultaneously present as:

    • Windows Desktop: Full Access
    • Android Remote: restricted / approval-required

    This makes it appear that the desktop UI/global host state remains Full Access while the mobile Remote resume/rehydration path supplies or restores a managed/workspace-write style environment for the same thread.

    Related sequence immediately before this became obvious

    On 2026-08-29, an Android-started Remote thread hit a project-trust gate for an auto-generated Windows working directory. The UI offered Read Only as a fallback. The user selected the restricted fallback for that one thread only. Afterward, permission behavior across unrelated threads became abnormal. It is not yet proven that the trust-gate/Read-Only action caused the broader issue, but the timing is notable.

    There is also a separate open report for this account/workflow (#41470) covering Windows↔Android project discovery and the project-trust gate. This comment is being added here because the current symptom is specifically the permission downgrade/desynchronization described by #30485.

    Expected behavior

    1. A thread configured as Full Access on the Windows host should remain Full Access when continued from Android Remote.
    2. Mobile Remote should not inject or restore on-request / workspace-write / managed into a Full Access desktop session unless the user explicitly chooses that change.
    3. If the user selects Full Access on Android, the setting should persist and match the host/thread effective state.
    4. Starting a new thread should not inherit an unrelated restrictive state from another thread.
    5. Desktop and Android should display the same effective permission state for the same thread.

    Impact

    This is blocking normal remote development because Android repeatedly asks for approvals even though the Windows host says Full Access. The user cannot reliably restore Full Access from mobile, and the restricted state appears to recur across multiple threads, including fresh ones.

    If useful, screenshots/video of the Windows=Full Access vs Android=restricted mismatch, exact app versions, and affected thread IDs can be provided.

  4. ajackxthegather commented on Aug 31, 2026

    @ajackxthegather

    Additional Windows + Android workaround observed on 2026-08-30. This is provisional and may only be a temporary recovery, but it restored the mobile permission state on two affected threads.

    Recovery sequence

    1. Disconnect/revoke the mobile Remote connection.
    2. Sign out so both desktop/mobile Remote state are fully disconnected.
    3. Leave the apps/session idle and disconnected for roughly 15–20 minutes.
    4. Reconnect/sign in and restore Android Remote to the Windows host.
    5. Two affected threads still showed the restricted/approval-required permission state on Android.
    6. On the Windows desktop, open each affected thread and deliberately change its permission from Full Access to an approval-required/restricted mode.
    7. Then change the same thread back to Full Access on the Windows desktop.
    8. Return to Android Remote and re-open/back out of those threads.

    Result

    After the explicit desktop permission toggle away from Full Access and then back to Full Access, Android began showing those threads as Full Access and, at least initially, the setting persisted even after backing out and reopening them.

    Why this may be useful

    This may indicate that the desktop UI can display Full Access while stale per-thread or Remote-rehydrated permission state remains restricted. Explicitly changing the desktop thread to another mode and then back to Full Access may force the underlying permission state to be rewritten/rebroadcast, allowing Android to converge on the correct setting.

    The preceding 15–20 minute fully disconnected period may also matter if stale Remote/session state needs time to expire, but that is not proven. The user has previously seen server-side/Remote state recover only after a similar full-disconnect idle period.

    This should be treated as a workaround, not a confirmed fix. Durability is still being observed.

  5. ajackxthegather commented on Sep 1, 2026

    @ajackxthegather

    Additional reproduction narrowing the trigger/lifecycle:

    • Windows thread is intended to remain Full Access.
    • Across several completed passes, reopening the thread showed Full Access correctly, including after task completion.
    • On a later completed pass, reopening the same thread showed Custom instead.
    • Changing Custom -> Full Access, backing out, and reopening did not persist; it reverted to Custom again.
    • Then, while still in the thread, I changed it to Full Access and immediately started the next pass.
    • After backing out and reopening while that pass was already running, the thread still showed Full Access.

    Observed pattern: if a task/turn is started while Full Access is active, that permission state appears to remain stable for the duration of the active turn. The unexpected downgrade to Custom seems to happen intermittently after a task finishes / during post-completion rehydration, not necessarily while the task is running.

    This suggests the permission overwrite may be tied to turn-completion or thread-resume/rehydration state rather than the live execution path itself.

    Expected: Full Access should remain authoritative across task completion, backing out, reopening, and subsequent resumes until the user explicitly changes it.

  6. joewing commented on Sep 3, 2026

    @joewing

    Additional reproduction on 2026-09-02:

    A long-running Codex task associated with a saved local project on a macOS host was continued from the phone client. When opened normally in the computer app, the task operates against its intended project without per-command approvals.

    After the mobile continuation, the injected environment context instead rooted the task in a generated projectless directory under the standard Codex documents area. The managed writable roots omitted the actual repository, so ordinary project reads and writes began requesting escalation/approval repeatedly.

    The user-visible symptom is that the phone client appears to require approval for essentially every project operation while the computer app does not. The runtime evidence indicates that mobile continuation failed to preserve the saved-project/workspace association and rehydrated the session with a projectless managed permission profile.

    Expected behavior: mobile continuation preserves both the connected task's saved-project root and its existing permission posture.

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

    appbugiOSremotesandboxsession

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions