No Play or Resume button shown after a failed stream-disconnect turn with an active goal
What happened
After a Codex turn failed with "The provider event stream closed unexpectedly. Retry the turn; if it keeps failing, check the provider and server logs.", the thread remained idle with an active goal (Goal set · 5.9m tokens · 8h 25m 40s ...), but neither the composer Play (Resume thread) button nor a Resume action on the goal banner appeared. The user had to send a manual message to resume the thread instead of using a one-click resume action.
Diagnosis
-
Composer Play button (
ComposerPrimaryActions):ComposerPrimaryActions.tsxonly renders thePlayIcon(Resume thread) button whencanResumeistrue(canResumeThread(serverProjection, resumableRunId, hasHeldQueuedRuns)).deriveResumableRunIdinpackages/client-runtime/src/state/threadExecution.tsonly returns aRunIdwhenrun.status === "interrupted"or (run.status === "failed"andfailure.class === "usage_limit").- Here, the latest run (
ordinal: 25) ended withstatus: "failed"andfailure.class: "unknown"(stream closed unexpectedly), soderiveResumableRunIdreturnsnullandcanResumeevaluates tofalse.
-
Goal banner
Resumebutton (goalNowItem/presentProviderGoal):ThreadActivityBanners.tsx(goalNowItem) only renders theResume(/goal resume) action whenpresentation.canResume && !isWorking.presentProviderGoalinpackages/client-runtime/src/state/threadExecution.tssetscanResume: goal.status !== "active" && goal.status !== "complete".- Because the turn failed mid-stream without transitioning the goal out of
"active",goal.statusremains"active", so onlyClearis shown even though the thread is idle after a failed turn.
Steps to reproduce
- Start a Codex thread and set a
/goal. - Have the running turn fail with a stream/provider error (e.g.,
"The provider event stream closed unexpectedly...") so the run'sstatusis"failed"withfailure.classother than"usage_limit"whilegoal.statusstays"active". - Observe the idle thread: the composer shows the disabled submit arrow (no Play button) and the
Goal setbanner only showsClear(noResume).
Version
0.1.14-nightly.20261201.5530
Environment
Linux x64 (7.3.5-200.fc44.x86_64), Node v24.22.1, T3 Code Desktop 0.1.14-nightly.20261201.5530, Codex (gpt-6.2-sol)
Evidence
// Latest run in statev2.sqlite (orchestration_v2_projection_runs):
// ordinal: 25, status: "failed"
// Error turn item (orchestration_v2_projection_turn_items):
{
"class": "unknown",
"message": "The provider event stream closed unexpectedly. Retry the turn; if it keeps failing, check the provider and server logs.",
"code": null,
"retryable": null
}
Related issues
None found covering deriveResumableRunId / presentProviderGoal hiding both Play and Goal Resume after a non-usage_limit failed turn.
Fix applied or workaround
Send a manual message (e.g. continue) in the composer to start a new turn under the active goal.
Filed by
Antigravity (Gemini 4 Hydrogen (Medium)) via t3 triage
Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.
I genuinely believe this is a bug/defect, not a new feature—the automated pipeline seems to have misevaluated it. The factory itself even reproduced it on main and opened #46746 as a fix before closing it with factory:fresh (and the error banner literally says "Retry the turn" while hiding both Play and Goal Resume).
@juliusmarminge Can you review it manually? If you still think it's a feature request, please leave a quick reason so I know not to retry opening it as an issue.