Repository navigation
Description
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
- Start a Codex Desktop session with full access.
- Verify turn context is
approval_policy=never,sandbox_policy=danger-full-access,permission_profile=disabled. - Continue/control that same running session from ChatGPT mobile under Codex.
- Observe next turn contains an injected
<environment_context>withpermission_profile type="managed"and restricted filesystem write entries for the projectless Codex folder. - Observe next
turn_contextison-request / workspace-write / managed. - Return to desktop and run ordinary repo commands outside the projectless folder; prompts/escalations are now required.
- 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:
- iOS Codex remote: Full access selected but new threads start with workspace-write/on-request; Custom config.toml works #24270 (iOS remote/default permission issue)
- Codex Desktop resumes thread with workspace-write sandbox despite UI showing Full Access #25590 (desktop shows Full Access but runtime is workspace-write/on-request/managed)
- Goal continuation can resume with a different sandbox/approval profile after restart #28296 (resume/rehydration replacing full access with default/managed profile)
- Permission / approval mode selection does not persist for new or existing threads #29915 (permission/profile selection not persisting)
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
github-actions commentedon Jun 28, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
andybergon commentedon Jul 24, 2026
I can reproduce a narrower version of this on macOS with Codex Desktop
26.721.30844, controlled remotely from an Android phone.Repro:
The local turn context confirms that the entire compound mode changes:
This does not simply restore
config.toml. My config specifies: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.
ajackxthegather commentedon Aug 30, 2026
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
Current behavior
Important A/B observation
The same thread can simultaneously present as:
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
on-request / workspace-write / managedinto a Full Access desktop session unless the user explicitly chooses that change.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.
ajackxthegather commentedon Aug 31, 2026
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
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.
ajackxthegather commentedon Sep 1, 2026
Additional reproduction narrowing the trigger/lifecycle:
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.
joewing commentedon Sep 3, 2026
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.