Skip to content

Pinned Todo card stays stale after continuing interrupted work #6306

Description

@Siri-Ray

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

  1. Start a run that emits a TodoWrite/update_plan snapshot.
  2. Interrupt the run after three of four tasks have completed.
  3. Click Continue remaining tasks.
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions