Files
t3code/apps
Theo BrowneandClaude Fable 5 6be48eb238 review round 4: release pendingTurnStart on turn end, harden steer guard, hydrate detail snapshot
- Clear pendingTurnStart on every settled session status (including
  ready), in both the in-memory projector and the SQL projection. A
  mid-turn steer re-arms the flag with the session already running, so
  only terminal-status clearing left it stuck after natural completion,
  permanently rejecting queue drains. Ready-with-genuinely-pending
  starts never project as ready — ingestion maps that shape to starting.
- Reject steer while a turn start awaits adoption whenever the session
  tracks no active turn, including running with a null activeTurnId.
- Hydrate pendingTurnStart in getThreadDetailById so thread-detail
  snapshots agree with the command read model after a refresh.
- Decider test covers the steer-then-complete-then-drain lifecycle.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-07-23 03:15:10 -07:00
..