Files
t3code/apps
Theo BrowneandClaude Fable 5 6d7ba9da90 feat: surface waiting state when background tasks outlive the turn
When Claude ends its turn with background work still running (background
shells like codex reviews, subagents), the thread showed 'Worked for Ns'
and looked done even though the SDK wakes the session when the task
finishes. Track the SDK's background-task roster in the Claude adapter,
surface it through session.state.changed → session.pendingBackgroundTasks
(additive field, no new status literal, so stale clients degrade to
today's behavior), and render a pulsing 'Waiting on background task: …'
row in the web timeline while the thread waits.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-07-22 13:47:03 -07:00
..