claude-code - 💡(How to fix) Fix [FEATURE] Wrap slash command picker description to a second line instead of truncating it mid-sentence. [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#52009Fetched 2026-04-23 07:38:59
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×3closed ×1
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

Problem

The slash command picker truncates long descriptions at terminal width with an ellipsis, often cutting off mid-word. This hides information the description was specifically written to convey.

Example

Typing / and scrolling to /clear shows:

/clear Start a new session with empty context; previous session stays on disk (resumabl…

<img width="2627" height="113" alt="Image" src="https://github.com/user-attachments/assets/cb5572fd-5474-449a-8250-025273a3b2d3" />

The truncation hides that the previous session can be resumed using the /resume command, which is precisely what a user deciding whether to run /clear needs to know.

Impact

  • Users make decisions based on incomplete information, or abandon the picker to look up the command elsewhere. - The problem worsens on narrow terminals, split panes, and IDE-embedded terminals, where truncation can happen after only a few words.
  • Command authors have no way to know where their description will be cut, so they can't write around it.

Proposed Solution

Wrap long descriptions onto a second (or additional) line within the picker, rather than truncating with … . Wrapping preserves the information the description was written to convey and is standard in most modern CLI autocomplete UIs (fzf, gh, etc.).

Alternative Solutions

No response

Priority

Medium - Would be very helpful

Feature Category

CLI commands and flags

Use Case Example

I'm mid-session working through a tricky refactor. The context window is getting full and Claude's responses are slowing down, so I want to start fresh, but I also want to be sure I can come back to this conversation later if I need to reference what we discussed.

  1. I type / to open the slash command picker.
  2. I scroll to /clear and see:
    /clear Start a new session with empty context; previous session stays on disk (resumabl…
  3. I stop. The description tells me the previous session "stays on disk" but cuts off mid-word right where it matters. Does "stays on disk" mean it's archived and gone, or does it mean I can get it back? I can't tell.
  4. Not wanting to lose my work, I close the picker and Google "claude code clear command resumable" to find the docs.
  5. The docs confirm the session is resumable via /resume. I go back and run /clear.

Having to leave the tool to confirm what a built-in command does defeats the purpose of having descriptions in the picker at all.

Additional Context

No response

extent analysis

TL;DR

Implementing a line wrapping feature for long descriptions in the slash command picker can prevent truncation and preserve essential information.

Guidance

  • Identify the maximum allowed width for the command picker and adjust the line wrapping logic accordingly to ensure that descriptions are not cut off mid-word.
  • Consider implementing a minimum width threshold to determine when to wrap descriptions, taking into account various terminal sizes and split panes.
  • Review existing CLI autocomplete UIs (e.g., fzf, gh) for inspiration on implementing line wrapping and description formatting.
  • Test the line wrapping feature with different terminal widths and command descriptions to ensure it works as expected and provides a better user experience.

Example

No specific code example is provided, as the implementation details depend on the underlying technology stack and command picker implementation.

Notes

The proposed solution focuses on wrapping long descriptions, which may require adjustments to the command picker's UI and layout. It's essential to consider the potential impact on the overall user experience and ensure that the changes align with the existing design and functionality.

Recommendation

Apply the workaround by implementing line wrapping for long descriptions, as it addresses the core issue of truncation and provides a better user experience. This approach is consistent with standard practices in modern CLI autocomplete UIs.

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] Wrap slash command picker description to a second line instead of truncating it mid-sentence. [1 participants]