claude-code - 💡(How to fix) Fix [Feature Request] Make worktree/branch label truncation in info bar configurable

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Code Example

[]
RAW_BUFFERClick to expand / collapse

Bug Description Title: Make info-bar truncation of worktree/branch labels configurable (or smarter)

Area: Worktree / background-task info bar (terminal UI)

Problem: When a worktree or branch name is long, the info bar gives it a large share of the line width and only truncates at the very end with …. The label ends up duplicated (worktree name + bracketed worktree path) and crowds out the rest of the bar's content. Example:

byg-372-distribute-processing-fees-proportionately-across

[worktree-alex/byg-372-distribute-processing-fees-proportionately-…]

There is currently no way to control this — no settings.json key, env var, or status-line option governs the label's max width, truncation length, or truncation strategy.

Requests (any one would help):

  1. A configurable max width / character cap for worktree/branch labels in the info bar (e.g. infoBar.labelMaxWidth).
  2. Smarter truncation — truncate from the middle or drop the redundant second occurrence of the name, so distinguishing characters (like the trailing slug) survive and other bar content stays visible.
  3. At minimum, avoid showing the same long name twice on one line.

Why it matters: Long-but-meaningful names (e.g. ticket-ID-prefixed branch names) are common; aggressive, name-preserving truncation would keep the bar readable without forcing users to rename worktrees.

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.158
  • Feedback ID: 1695fe06-204a-4904-888f-c1c7b38bd094

Errors

[]

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [Feature Request] Make worktree/branch label truncation in info bar configurable