Skip to content

Add live plan card and enforce todo_write design boundary - #18

Merged
yottadynamics merged 1 commit into
mainfrom
feature/update-tui-todo-write-card
May 14, 2026
Merged

yottadynamics merged 1 commit into
mainfrom
feature/update-tui-todo-write-card

Conversation

@yottadynamics

Copy link
Copy Markdown
Owner

Summary

  • Add a live plan card to the TUI that updates in place and emits a snapshot at turn end.
  • Enforce that todo_write must not include implementation todos before design approval.

Changes

  • Updated docs/tools.md to reflect the live card behavior and design boundary rule.
  • Modified internal/agent/plan_tool.go and its test to include the design boundary directive and test.
  • Added internal/tui/live_plan_card_test.go with comprehensive tests for the live card.
  • Updated internal/tui/model.go to handle live plan rendering, snapshot, and clearing.
  • Updated internal/tui/tool_card.go to render the todo_write tool result consistently.

Test plan

  • Run the test suite to ensure all new and existing tests pass.
  • Manually verify that the live plan card updates in place and the scrollback snapshot appears only when the plan is touched.

Notes for reviewer

  • The changes ensure that the agent does not pre-stage implementation work as todos before user design approval.

@yottadynamics
yottadynamics merged commit 3f465d5 into main May 14, 2026
5 checks passed
@yottadynamics
yottadynamics deleted the feature/update-tui-todo-write-card branch May 14, 2026 18:12
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