Add isLastChild and treePrefixPattern fields to beadItem for proper tree rendering #87
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
Adds two new fields to the
beadItemstruct incmd/tui_shared.goto support proper tree rendering in the TUI:isLastChild bool- Indicates if a bead is the last child of its parenttreePrefixPattern string- Stores the precomputed tree prefix pattern (e.g., "│ └─")These fields enable proper visualization of tree structures in the TUI, allowing correct branch/continuation characters to be displayed during tree traversal.
Changes
isLastChildandtreePrefixPatternfields tobeadItemstruct (lines 177-178)Issues Resolved
Notes
This is a preparatory change that adds the data structure fields. A follow-up issue (ac-ecyi) will implement the computation of sibling position and ancestor continuation during the
buildBeadTreeDFS traversal.Testing
go build -o co .completes successfullygo test ./...🤖 Generated with Claude Code