fix(statusline): Drop the duplicated session name from the status row - #106
Merged
Merged
Conversation
Remove the sidecar task name from the statusline and collapse redundant project and branch labels. Co-Authored-By: Codex <noreply@openai.com>
Pin that only an exact project or worktree-<project> branch collapses, so a loose includes or endsWith match fails the suite.
The README still listed a <model> field and the old ULTRA prefix. Describe the fields plugin/statusline.sh emits and the branch collapse rule.
|
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.



The status row showed the session name twice: once on the input border, where Claude Code draws it after
/rename, and again as the first field of the statusline (read from the name sidecar, capped at 30 chars). That field used ~30 columns, so the tail with context, tokens and cost got cut to…. Inside a Claude Code worktree the row also repeated the slug ashappy-wandering-matsumoto/worktree-happy-wandering-matsumoto.plugin/statusline.shno longer reads the sidecar, so the role is the first field again, as criteria 8 and 9 of the spec already required. When the branch equals the project basename orworktree-<basename>, only the branch is rendered. Any other branch keepsproject/branch.Before:
Otimizar performance do startu · orchestrator-edit · happy-wandering-matsumoto/worktree-happy-wandering-matsumoto · ctx 88% · …After:
orchestrator-edit · worktree-happy-wandering-matsumoto · ctx 88% · <tok> · <cost>The sidecar itself is untouched: it still feeds the
/renameinjection.Spec:
.specs/features/run-usage-statusline/spec.md, criteria 9.1 to 9.3.Not covered: CodeDeck's own worktrees (
<session-id>directory,ra/<slug>-<id>branch) don't collapse.README.md:133still documents an older layout with<model>.Tests
npx vitest run tests/statusline.test.ts tests/usage-statusline-contract.test.ts: 2 files, 18 passednpx vitest run tests/usage-statusline-contract.test.ts tests/plugin-manifest.test.ts tests/open-args.test.ts: 3 files, 110 passed (first commit)branch === project, collapsing always, loosening the match tobranch.endsWith(project).