Repository navigation
Open
Labels
appIssues related to the Codex desktop appapp-serverIssues involving app server protocol or interfacesbugSomething isn't workingconnectivityIssues involving networking or endpoint connectivity problems (disconnections)remotewindows-osIssues related to Codex on Windows systems
Description
Codex Remote on Android 16 cannot reliably maintain a session with my Windows ChatGPT/Codex host.
Feedback ID:
01a01fa0-40fd-7532-a1a5-7e12d30a87e8
Environment:
- Windows package: OpenAI.Codex_26.818.3698.0
- App-server build: 26.818.31338
- Android 16
- Samsung SM-S938B
- Android client: codex_chatgpt_android_remote
Symptoms:
- QR pairing succeeds.
- Android can discover the Windows host, projects and recent threads.
- Opening Codex threads often remains indefinitely on grey loading placeholders.
- Remote cycles through Connecting, Looking for ChatGPT desktop, Reconnecting, and Failed to connect to ChatGPT desktop.
- Reproduces across multiple threads and both Wi-Fi and 5G.
Local diagnostics:
- Android reaches the host and sends thread/resume requests.
- All 35 local transcript files exist.
- Thread-state and log databases pass integrity checks.
- 46 Android Remote client connections closed within one hour.
- 27 host responses were dropped after the corresponding client connection had already disconnected.
- Host logged: "Dropping message for disconnected connection".
- Main Remote WebSocket also reset once without a closing handshake.
- No relevant Windows crashes, proxy, authentication errors, or missing-thread errors.
Troubleshooting already performed:
- Latest Windows and Android apps
- Phone reboot
- Force stop / cache clear
- Android sign-out/sign-in
- Wi-Fi and 5G testing
- Fresh revoke + QR pairing
- Windows desktop restart
- Full Windows ChatGPT uninstall/reinstall
- Multiple Codex threads tested
Likely failure sequence:
- Android opens a Remote connection and sends thread/resume.
- That connection disconnects or is replaced.
- Windows completes the request against the old connection ID.
- The host drops the response because the connection no longer exists.
- Android remains on loading placeholders and starts reconnecting.
Failure window:
21 August 2026, approximately 12:46–12:51 UTC, continuing afterwards.
Please investigate Android Remote connection churn and stale connection-ID response routing/replay after reconnect, and correlate against the Feedback ID above.
Reacted by jrf1001 and petroskostis54
Metadata
Metadata
Assignees
Labels
appIssues related to the Codex desktop appapp-serverIssues involving app server protocol or interfacesbugSomething isn't workingconnectivityIssues involving networking or endpoint connectivity problems (disconnections)remotewindows-osIssues related to Codex on Windows systems
Activity
github-actions commentedon Aug 21, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
SpammkingTCG commentedon Aug 21, 2026
The duplicate detector surfaced #39913 and #39860, both of which appear closely related.
#39913 is particularly similar: successful Windows/Android pairing followed by Remote client disconnects and task-loading failures.
#39860 also demonstrates a Remote failure associated with larger thread/list payloads.
In my reproduction, local host logs additionally show Android sending thread/resume, followed by the logical Remote connection closing before the host response is delivered. The host then logs Dropping message for disconnected connection.
During the observed hour there were 46 Android Remote client closures and 27 dropped host responses.
My Feedback ID is:
01a01fa0-40fd-7532-a1a5-7e12d30a87e8
I’m leaving this issue open for now because the diagnostics may help correlate whether this is the same outbound-queue/payload boundary or a related stale connection-ID routing/replay problem.
oysOYSoys commentedon Aug 21, 2026
My symptoms are very similar, but the Android client initially shows only the latest partial messages. Loading older messages fails repeatedly, then the conversation title changes to “Remote” and the composer/input field disappears. Retrying does not recover it. New responses may still appear when a message can be sent. Windows loads the same thread history normally. This reproduced on two Android devices, including cellular data, after app data reset, reinstall, restart, re-login, and Remote re-pairing. Android 1.2026.230 / Windows Desktop 26.818.31338. This looks like the same thread/resume response loss or Remote client hydration failure.
adamczhang commentedon Aug 21, 2026
Same symptoms. Please help
ibdafna commentedon Nov 21, 2026
We hit what looks like the same bug, with an app-server log showing the reply dropped on a connection whose socket stayed open.
Version: codex-cli 0.171.0 (
codex app-server --listen ws://127.0.0.1:0), Linux x86_64, musl build from@openai/[email protected].What happens
A client opens a websocket connection to
codex app-serverand sendsinitialize. The app-server handles it, then logs that it's dropping the reply because the connection is disconnected. The client's socket never closes, so it waits for a reply that will never come. Another client connected about 90 ms earlier initializes normally. Rare: about 1 in 50 CI runs, under CPU contention.App-server log (
RUST_LOG=info,codex_app_server=debug), times in UTC:There's nothing else in the log for ConnectionId(1): no
websocket receive error, nodisconnecting slow connection, nowebsocket control queue full. Ten seconds later the app-server was idle. Every thread was infutex_wait_queueorep_poll, memory pressure was 0 and IO pressure under 2%. The client's socket was still open: it received no close frame or error in that time.What we read in the source (rust-v0.171.0)
codex-rs/app-server/src/transport.rs,route_outgoing_envelope, logs the warning when the connection id isn't in the router's map. For a websocket (can_disconnect()),send_message_to_connectionremoves the entry without logging whenwriter.try_sendreturnsClosed.codex-rs/app-server-transport/src/transport/websocket.rsawaitsConnectionOpenedbefore spawning the inbound and outbound tasks, so registration can't lose the race to the first request.Possibly related: #18860.
Expected: the
initializereply reaches a connected client. Or, if the server tears the connection down, the socket closes, so the client can tell.Workaround we ship: if
initializegets no reply in 10 s on a fresh connection, close it and initialize once more on a new connection.