claude-code - 💡(How to fix) Fix Splash screen left panel does not expand to fit long cwd path [1 comments, 1 participants]

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…
GitHub stats
anthropics/claude-code#48434Fetched 2026-04-16 07:00:16
View on GitHub
Comments
1
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
labeled ×2commented ×1
RAW_BUFFERClick to expand / collapse

Summary On the startup splash screen, the left sub-panel of the two-column welcome box is sized to fit the welcome text / email / org lines. When the current working directory is longer than that computed inner width, the cwd path overflows past the right border of the left panel, corrupting that row of the box drawing and pushing content into the adjacent cell.

Version Claude Code v2.1.109 (Opus 4.6 1M context)

Repro

  1. cd into a directory with a reasonably long absolute path, e.g. /mnt/c/dev/ImGui-Terminal/cmake-build-release
  2. Run claude
  3. Observe the splash box

Expected The left panel either:

  • expands to the width of the widest line it contains (including the cwd), or
  • truncates / wraps the cwd to fit, or
  • resizes both columns proportionally to the available terminal width.

Actual The cwd path is printed past the right edge of the left panel. The border of the left panel is missing on that row; the path text runs into the right panel area.

Notes

  • Terminal is plenty wide (160 cols, ~2100 px wide window).
  • Reproducible in any terminal once the cwd exceeds the panel inner width.
  • First encountered in a custom ImGui-based terminal while debugging, but confirmed it is not terminal-specific — purely a splash layout sizing issue.

extent analysis

TL;DR

Adjust the layout of the welcome box to dynamically resize or truncate the current working directory path to fit within the left panel.

Guidance

  • Verify that the issue is indeed caused by the length of the current working directory path by testing with shorter and longer paths.
  • Consider implementing a dynamic resizing mechanism for the left panel to accommodate varying lengths of the cwd path.
  • Explore truncating or wrapping the cwd path as an alternative solution to prevent overflow.
  • Review the layout calculations for the welcome box to ensure they account for the maximum possible width of the cwd path.

Example

No code snippet is provided as the issue does not specify the programming language or framework used for the layout calculations.

Notes

The solution may depend on the specific layout management system used in the application, and additional information about the implementation details may be necessary to provide a more precise fix.

Recommendation

Apply a workaround, such as truncating the cwd path, as it seems to be a more straightforward solution to prevent the overflow issue, and it does not require significant changes to the layout management system.

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