feat: show the isolated-worktree branch in the TUI session title#24
Merged
Conversation
TUI parity for the web WorktreeChip (codeoid daemon now runs forked/isolated
sessions in their own git worktree). SessionInfo gains an optional
`worktree { path, branch, createdByCodeoid }` (additive, camelCase on the
wire), and session_title renders a green "⎇ <branch>" tag next to the
fork-lineage chip — so a fork running in its own worktree is self-describing.
Tests: session_title_shows_worktree (chip present with branch / absent without);
wire_format sample now carries a worktree so the no-snake-case-keys check
validates the camelCase serde (createdByCodeoid). Updated the SessionInfo test
fixtures across the crates for the new field. cargo test --workspace green,
fmt clean.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #24 +/- ##
==========================================
+ Coverage 72.98% 73.09% +0.10%
==========================================
Files 31 31
Lines 8967 9002 +35
==========================================
+ Hits 6545 6580 +35
Misses 2422 2422
Flags with carried forward coverage won't be shown. Click here to find out more.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
TUI parity for the web WorktreeChip. The codeoid daemon now runs forked/isolated sessions in their own git worktree (branch
codeoid/…, carrying the parent's live state; see codeoid #170/#171). The TUI showed nothing about this; now it does.Changes
SessionInfo.worktree— new optional{ path, branch, createdByCodeoid }(additive,camelCaseon the wire; mirrors the daemon'sSessionWorktree). Old daemons omit it →None.session_titlerenders a green⎇ <branch>tag next to the fork-lineage (⑃) chip, so an isolated fork tab is self-describing at a glance.Tests
session_title_shows_worktree— tag present with the branch when a worktree is set, absent otherwise.wire_formatsample now includes a worktree, so the existing "no snake_case keys leak" assertion validates thecamelCaseserde (createdByCodeoid).SessionInfofixtures across the crates for the new field.cargo test --workspacegreen,cargo fmt --checkclean, clippy (advisory) clean for the new code.Additive + forward-compatible: unknown-field daemons and older clients interoperate unchanged.
🤖 Generated with Claude Code