claude-code - 💡(How to fix) Fix /clear <name> argument not shown in /resume picker [1 comments, 2 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#56364Fetched 2026-05-06 06:30:06
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1

When using /clear <name>, the name is stored internally in session metadata but is not displayed in the /resume picker. Instead, the resume list shows the first user message as the conversation label.

Root Cause

When using /clear <name>, the name is stored internally in session metadata but is not displayed in the /resume picker. Instead, the resume list shows the first user message as the conversation label.

RAW_BUFFERClick to expand / collapse

Description

When using /clear <name>, the name is stored internally in session metadata but is not displayed in the /resume picker. Instead, the resume list shows the first user message as the conversation label.

Steps to reproduce

  1. Start a conversation and do some work
  2. Run /clear My Custom Name
  3. Start a new conversation
  4. Run /resume
  5. Look for "My Custom Name" in the list — it's not there. The session shows the first user message instead.

Expected behavior

The name passed to /clear should appear as the conversation label in the /resume picker, so users can find named conversations easily.

Actual behavior

The name is silently discarded from the UI. The only way to name a conversation visibly is Ctrl+R from the resume picker.

Suggestion

Display the /clear <name> argument as the conversation label in the /resume list, so users can organize and find their sessions by meaningful names.

Environment

  • Claude Code v2.1.128
  • macOS

extent analysis

TL;DR

Update the conversation label display logic to use the name stored in session metadata when /clear <name> is used.

Guidance

  • Review the code responsible for generating the /resume picker list to ensure it correctly retrieves and displays the conversation label from session metadata.
  • Verify that the session metadata is being updated correctly when the /clear <name> command is executed.
  • Check if there are any existing functions or methods that handle conversation labeling, and modify them to prioritize the name provided with /clear <name>.
  • Test the updated logic with different conversation scenarios to ensure the correct labels are displayed in the /resume picker.

Example

No code snippet is provided as the issue lacks specific code details.

Notes

The fix may require changes to the internal logic of the application, specifically how conversation labels are stored and displayed. The provided environment details (Claude Code v2.1.128, macOS) may be relevant when testing and implementing the fix.

Recommendation

Apply workaround: Update the conversation label display logic to prioritize the name provided with /clear <name>, as this directly addresses the reported issue and expected behavior.

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…

FAQ

Expected behavior

The name passed to /clear should appear as the conversation label in the /resume picker, so users can find named conversations easily.

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 /clear <name> argument not shown in /resume picker [1 comments, 2 participants]