Skip to content

Codex mobile remote visibly reconnects on app resume instead of silently restoring active thread #26825

Open

Description

@NikolasMenke

What version of Codex CLI is running?

codex-cli 0.113.0

What Codex app package is installed?

OpenAI.Codex_26.602.4764.0_x64__2p2nqsd0c76g0

What platform is your computer?

Microsoft Windows 11 Pro 10.0.26200 build 26200, 64-Bit

What surface/component is affected?

Codex Desktop App host + ChatGPT mobile Codex remote access

Which model were you using?

GPT-5 / Codex desktop thread

What mobile client were you using, if applicable?

ChatGPT mobile app using Codex remote access; exact mobile app version not provided

What issue are you seeing?

When the ChatGPT mobile app is backgrounded or loses focus and then returns to an active Codex remote thread, the client visibly reconnects instead of silently and reliably resuming the existing active thread. When this happens during an active assistant response, it appears related to duplicate rendering of the final assistant answer as reported in #26682. Even when no response is streaming, the repeated visible reconnect creates avoidable friction and makes the remote session feel unstable.

What steps can reproduce the bug?

Not fully deterministic yet, but repeatedly observed by a user controlling a Windows Codex Desktop App thread from ChatGPT mobile: 1. Open an active Codex remote thread in ChatGPT mobile. 2. Switch away from the ChatGPT app or let it lose focus. 3. Return to ChatGPT mobile. 4. The remote view reconnects visibly before the thread is usable again. 5. If the app switch happens while Codex is still streaming/responding, the same reconnect/resync path may render the final answer twice on mobile while the host transcript contains only one final answer (#26682).

What is the expected behavior?

Returning to the ChatGPT mobile app should silently and reliably resume the active Codex remote thread whenever the host session is still available. A technical reconnect may happen in the background, but the user should not have to experience a repeated visible reconnect for normal app switching, and reconnect/resync must be idempotent: no duplicate rendered assistant messages, no lost active thread state, and no manual recovery for quick focus changes.

Additional information

This helper intentionally does not attach logs, transcripts, secrets, repository contents, or screenshots. Add a screenshot manually only after checking it does not reveal sensitive data.

Activity

  1. added
    bugSomething isn't working
    appIssues related to the Codex desktop app
    windows-osIssues related to Codex on Windows systems
    connectivityIssues involving networking or endpoint connectivity problems (disconnections)
    sessionIssues involving session (thread) management, resuming, forking, naming, archiving
    on Jun 6, 2026
  2. NikolasMenke commented on Jun 6, 2026

    @NikolasMenke
    Author

    I reviewed the suggested potential duplicates. This issue is related to #26682, #25606, and #26191, but I do not think it is a direct duplicate.

    The specific behavior here is visible reconnect/resume friction whenever returning to an active Codex mobile remote thread after app focus/background changes, even when no stream is currently stale. During active responses, the same resume path may lead to the duplicate final-answer rendering tracked in #26682.

    So this issue is meant to track the reconnect/resume UX and idempotency problem itself, not only one downstream symptom.

  3. NikolasMenke commented on Jun 6, 2026

    @NikolasMenke
    Author

    image

  4. xiaoxuesheng123467 commented on Jul 19, 2026

    @xiaoxuesheng123467

    Adding another repro from a macOS host + ChatGPT mobile remote session.

    Environment:

    • Codex app package: ChatGPT.app / com.openai.codex 26.715.31925 (build 5551)
    • Codex CLI: codex-cli 0.145.0-alpha.18
    • Host platform: Darwin 25.5.0 arm64 arm (Apple Silicon Mac)
    • Mobile client: ChatGPT mobile app controlling Codex remote; exact mobile app version/OS is not available from the host
    • Network note: this still reproduces with the proxy/VPN set to global mode, so it does not appear to be only a split-tunnel/rules-mode domain miss

    Observed behavior:

    1. Start or open an active Codex remote session from ChatGPT mobile.
    2. Switch the ChatGPT mobile app to the background, or leave it for a short time.
    3. Return to the same remote thread.
    4. The mobile surface visibly reconnects before the remote session is usable again.
    5. In some runs, task completion notification/state appears stale until reopening/reconnecting.

    Expected behavior:
    If the host remains available, returning to ChatGPT mobile should silently restore the active Codex remote thread. Any reconnect/resync should happen in the background and preserve active task state/notifications.

    Host-side checks:

    • The macOS ChatGPT/Codex desktop process and app-server were running while testing.
    • The issue still reproduced under global proxy mode.
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

    appIssues related to the Codex desktop appbugSomething isn't workingconnectivityIssues involving networking or endpoint connectivity problems (disconnections)remotesessionIssues involving session (thread) management, resuming, forking, naming, archivingwindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions