Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
Not collected. Observed in the macOS desktop app on 2026-10-01.
What subscription do you have?
Not collected.
What platform is your computer?
macOS desktop. Exact OS version and hardware details were not collected.
What issue are you seeing?
A computer task created by a dot has finished executing. The user reports that after attempting to archive it, the session reappears in the task list and still cannot connect. A newly supplied screenshot shows the error toast 聊天归档未成功 (chat archiving was unsuccessful), and another shows the 归档聊天 (Archive chat) control.
A read-only status check on 2026-10-01 at approximately 06:20 UTC reported the latest turn as completed, with its error field null. This does not establish the precise execution completion time.
Despite that completed status, the desktop UI shows:
- A cloud icon for the task.
- A red error beginning
WebSocket was closed before t.... This is the visible, truncated text; the complete message was not captured. - A Reconnect action.
- The text
Runs on your computer when available.
The user initially reported no Delete option on right-click and no successful result from the documented Command-Shift-A archive shortcut. They subsequently clarified that attempting to archive the session causes it to return to the list, and supplied screenshots of the Archive chat control and an explicit archive-failure toast. This is not evidence that archiving succeeded and was later undone; the archive operation may itself be failing.
The original task was a read-only task-list query. Its underlying MCP requests had returned error code -32000 before execution ended. “Completed” here refers to execution status, not successful completion of that query. A causal relationship between that earlier tool error and the later UI/cleanup problem has not been established.
What steps can reproduce the bug?
Observed sequence for one existing affected task, not a deterministic reproduction on a fresh task:
- Have a dot create a computer task.
- Let the task finish executing.
- Open the task in the macOS desktop app.
- Observe the connection error and Reconnect action even though the latest recorded turn is completed.
- Attempt to archive the affected task using the Archive chat control. The user also reports trying Command-Shift-A without success.
- An error toast reads
聊天归档未成功(chat archiving was unsuccessful). The user reports that the session returns to the list after the attempt. - The session still shows the connection error and cannot connect, according to the user.
This has not been independently reproduced on a second task. The archive shortcut outcome is user-reported; no archive RPC or full client log was captured.
What is the expected behavior?
The UI should clearly distinguish completed execution from the current computer/stream connection state. A completed task should have a working supported archive or removal path even when its executor is unavailable or a connection error remains.
If this task type cannot be deleted, the UI should explain that and provide a working way to archive or dismiss it.
Additional information
Related reports reviewed: #42613 covers missing permanent deletion for already-archived cloud chats; #44343 covers deleted conversations remaining in the sidebar with conversation_deleted; #49522 covers errors opening dot-created tasks. None establishes the same failure here. Please link or merge if investigation finds a shared cause.
No private task IDs, computer names, conversation contents, screenshots, credentials, or raw logs are included. Root cause is unknown.
Activity
[-][macOS][dot] Completed computer task retains connection error and cannot be archived or removed[/-][+][macOS][dot] Completed task shows connection error; archive shortcut ineffective and no Delete option shown[/+][-][macOS][dot] Completed task shows connection error; archive shortcut ineffective and no Delete option shown[/-][+][macOS][dot] Completed session fails to archive, reappears in list, and cannot connect[/+]hon27hon commentedon Oct 5, 2026
Adding a Windows report with additional version and server-state evidence. This appears similar to the completed dot-created task lifecycle/archiving problem described here, but a shared root cause has not been established.
Environment
26.930.31730.OpenAI.Codex_26.930.3930.0_x64.codex-cli 0.160.0.Observed behavior
A computer-executed task created by a dot has finished. A read-only backend status check reports its latest turn as
completedwitherror: null. No new work was dispatched to that old task.Despite this, its desktop UI continues showing the truncated message
WebSocket was closed before the ...andReconnecting. The app also repeatedly shows the red errorcodex app server is not available. The complete WebSocket message was not captured.Archiving through the normal UI briefly removes the task from the active list, but it does not appear in the archive list and later returns to the recent/active list. A subsequent server-side list read still places it in the active, non-archived list. This shows that the attempted archive was not reflected in the observed server state; it does not prove whether the initial archive request failed or a later reconciliation reversed it.
The normal task menu offers Archive, with no Delete option visible. Restarting and reinstalling/recreating the workspace did not resolve the old task's behavior.
Observed sequence
This is an observation of an existing affected task, not a deterministic fresh-task reproduction:
Scope and useful exclusions
use_default, exit code 0) and could read/write a test file. This is not evidence of a blanket failure of the entire Windows execution environment.Expected behavior / request
Please investigate completed-task lifecycle handling and archive persistence for Windows computer-executed dot tasks:
Please provide a fix or supported workaround. Windows compatibility is a suspected factor, not a confirmed diagnosis. #25541 has a related Windows archive-reappearance symptom, but its proposed cause has not been verified for this case.
No account email, private task ID, project name/code, personal filesystem path, full conversation log, or unredacted screenshot is included.
BillyBunn commentedon Oct 5, 2026
I'm seeing the reconnect behavior on macOS, with a 403 recorded in the app log. I haven't tested the archive failure described above.
Environment
Observed sequence
This is the behavior of an existing affected task, not a controlled reproduction with a new task.
Diagnostics
At 2026-10-05T16:20:22.831Z, the app log recorded:
The computer is listed as connected. A read-only status check reports the affected task's latest turn as completed with a null error, and its saved conversation is still readable. Another existing task on the same Mac can run shell commands and read source files.
A separate native app-tool inventory check returned "Codex app tools pipe closed." Its relationship to the reconnect failure is unknown.
No app restart or authenticated handshake probe was performed. No HTTP response headers or body were captured, so I can't tell whether the 403 is an authentication, permission, challenge, or other failure. The working task doesn't establish that other task types are unaffected.
#50034 reports a 403 during Work Cloud registration; this case concerns reconnecting an existing task. A shared cause hasn't been established.
Expected behavior
Reconnect should restore the connection or show the full error with an actionable recovery step. The UI should also distinguish a completed saved turn from a failed current connection.
Does this 403 evidence help narrow down the reconnect portion of this issue, or should it be tracked separately?