Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: surface TodoWrite tasks in PlanSidebar for Claude sessions - #1

Open
CodeWithBryan wants to merge 1 commit into
mainfrom
feat/todowrite-plan-sidebar
Open

CodeWithBryan wants to merge 1 commit into
mainfrom
feat/todowrite-plan-sidebar

Conversation

@CodeWithBryan

Copy link
Copy Markdown
Owner

Summary

  • Detects TodoWrite tool calls in ClaudeAdapter and emits turn.plan.updated events, activating the existing PlanSidebar for Claude sessions
  • Maps TodoWrite todo items (pending/in_progress/completed) to RuntimePlanStep objects with correct status mapping
  • Uses activeForm text for in-progress steps, falls back to content otherwise
  • Zero changes to contracts, ingestion, projection, derivation, or UI — the entire existing pipeline lights up automatically

Context

The PlanSidebar only worked for Codex sessions because deriveActivePlanState() requires turn.plan.updated activities, which Claude's adapter never emitted. This bridges that gap by detecting TodoWrite tool usage and synthesizing the same event Codex produces natively.

Test plan

  • bun typecheck passes (all 7 packages)
  • bun lint passes (0 warnings, 0 errors)
  • bun run test — all ClaudeAdapter tests pass (44/44); only pre-existing GitManager timeout failure
  • Manual: start a Claude session, trigger TodoWrite usage, verify PlanSidebar activates with step progress

Detect TodoWrite tool calls in ClaudeAdapter and emit turn.plan.updated
events so the existing PlanSidebar activates for Claude sessions. Previously
the sidebar only worked for Codex because Claude's adapter never emitted
the event that deriveActivePlanState() looks for.

Maps TodoWrite todo items to RuntimePlanStep objects with status mapping
(pending, in_progress→inProgress, completed) and uses activeForm text
for in-progress steps.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant