-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
[Bug] Orphaned/oversized native Codex thread wedges a session permanently — chat.send returns started but no run executes, silently dropping messages #86963
Copy link
Copy link
Open
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:data-lossCan lose, corrupt, or silently drop user/session/config data.Can lose, corrupt, or silently drop user/session/config data.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Description
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:data-lossCan lose, corrupt, or silently drop user/session/config data.Can lose, corrupt, or silently drop user/session/config data.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Type
Fields
Priority
None yet
[Bug] Orphaned/oversized native Codex thread wedges a session permanently —
chat.sendreturns "started" but no run executes, silently dropping every messageOpenClaw version: 2026.5.22 (
a374c3a)Component: Agents/Codex · Codex app-server native threads · context compaction
Severity: High — silent, permanent message loss on an affected session (no error surfaced)
Summary
A Codex (
openai-codex/gpt-5.5) WebChat session became permanently wedged: it reportsstatus=done,chat.sendreturns"started",lastInteractionAtadvances — but no agent run ever executes, nothing is written to the transcript, and the user gets no reply. Every subsequent message is silently dropped. The session sits at ~212k tokens withcompactionCount=0.The existing Codex compaction-recovery mechanisms do not clear it:
codex-homeand restored on resume).Timeline / how it got into this state
The session's last successful turn ended while the agent was mid-work during a gateway reload (the assistant's final transcript line was literally "I got stuck at the gateway reload step … recovered"). After that point the native Codex thread appears orphaned/oversized, and the session never runs another turn.
Reproduction signature (from gateway log)
openclaw tasks auditdoes not flag this (there is no stuck task — it's a thread/compaction-layer stall). The only visible signature is in the session registry:status=donewithlastInteractionAtadvancing far pastendedAtwhilecompactionCountstays 0.Expected
A session must never silently drop messages. Either:
tasks audit/ health) rather than acceptingchat.sendand silently running nothing.Notes
openclaw sessionsoffers onlycleanup/export-trajectory/list);openclaw doctor --fixonly restarts the gateway and does not clear the thread. The only practical recovery is abandoning the session.