claude-code - 💡(How to fix) Fix Feature request: /name command to rename active session [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#47884Fetched 2026-04-15 06:39:33
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Participants
Timeline (top)
labeled ×2
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

Currently, sessions can only be named at startup using claude -n "name". You often realize during a session that you want to name it. So if you forget to name a session, or want to rename it based on what you ended up working on, there's no way to do so.

Proposed Solution

Add a /name slash command:

/name "finance calculator refactor"

Alternative Solutions

  • Restarting with -n loses context
  • Comments in chat don't appear in /resume

Priority

Medium - Would be very helpful

Feature Category

Interactive mode (TUI)

Use Case Example

  1. Forgot to name at startup
  2. Scope changed during session
  3. Want descriptive name after long session

Additional Context

No response

extent analysis

TL;DR

Implementing a /name slash command in the interactive mode (TUI) would allow users to rename sessions without restarting.

Guidance

  • Consider adding a new command handler for the /name command to update the session name.
  • Verify that the new command integrates well with the existing session management logic.
  • Ensure that the command updates the session name in a way that is visible in the /resume command output.
  • Think about how to handle cases where a user attempts to rename a session to a name that is already in use.

Example

# Example command handler for /name command
def handle_name_command(session, name):
    session.name = name
    # Update session metadata and notify other components
    # ...

Notes

The implementation details will depend on the specific architecture and technology stack of the Claude application.

Recommendation

Apply workaround: Implement the /name slash command as proposed, as it seems to be a straightforward solution to the problem.

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