Add yellow highlight animation for newly created beads in Plan mode #119
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Implements visual feedback for newly created beads in the Plan mode TUI. When a new bead is created (via
bd createor other means), it now appears with yellow text highlighting that automatically fades after 5 seconds, making it easy to spot new items in the tree.Changes
cmd/tui_plan.go: Added tracking for newly created beads using anewBeadsmap that stores bead IDs with their creation timestamps. Implemented detection logic that compares incoming beads against existing items to identify new ones. Added timer-based message system (newBeadExpireMsg) to automatically remove the highlight after 5 seconds.cmd/tui_plan_render.go: Added rendering logic to apply the yellow text style to beads marked as new in thenewBeadsmap.cmd/tui_shared.go: Added newtuiNewBeadStyleusing lipgloss color 226 (yellow) for the animation highlight.Implementation Details
Issues Resolved
Testing
bd createwhile Plan mode is open🤖 Generated with Claude Code