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]>