Summary
After a run is interrupted with unfinished TodoWrite/update_plan items, the pinned Todo card can remain stuck at a stale progress value such as 3/4 even after the user clicks Continue remaining tasks.
Reproduction
- Start a run that emits a TodoWrite/update_plan snapshot.
- Interrupt the run after three of four tasks have completed.
- Click Continue remaining tasks.
- Let the continuation start without emitting another TodoWrite/update_plan snapshot.
Actual behavior
The pinned card keeps scanning backward to the interrupted run's last snapshot, so the stale 3/4 state and Continue action remain visible indefinitely.
Expected behavior
Once the continuation is accepted, the old snapshot should leave the pinned slot. A genuinely new TodoWrite/update_plan event should show a fresh card, even if its item content matches the old snapshot.
Root cause
The pinned Todo selector treats the most recent historical Todo event as conversation-global state. The Continue action starts a new turn but does not invalidate the event it is continuing.
Summary
After a run is interrupted with unfinished TodoWrite/update_plan items, the pinned Todo card can remain stuck at a stale progress value such as 3/4 even after the user clicks Continue remaining tasks.
Reproduction
Actual behavior
The pinned card keeps scanning backward to the interrupted run's last snapshot, so the stale 3/4 state and Continue action remain visible indefinitely.
Expected behavior
Once the continuation is accepted, the old snapshot should leave the pinned slot. A genuinely new TodoWrite/update_plan event should show a fresh card, even if its item content matches the old snapshot.
Root cause
The pinned Todo selector treats the most recent historical Todo event as conversation-global state. The Continue action starts a new turn but does not invalidate the event it is continuing.