claude-code - 💡(How to fix) Fix Add /rename command to rename the current session from within an active conversation [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#52374Fetched 2026-04-24 06:08:53
View on GitHub
Comments
1
Participants
2
Timeline
7
Reactions
0
Timeline (top)
labeled ×3closed ×1commented ×1cross-referenced ×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

Currently, sessions can only be renamed via the /resume dialog using Ctrl+R. There is no way to name or rename a session while you're actively in it — you have to exit first, then go back and rename retroactively.

Proposed Solution

Add a /rename <name> slash command that sets the current session's display name from within the active conversation.

Example: /rename Fix JWT auth bug

Why this matters

  • Sessions are listed by their first message, which is often not descriptive enough
  • Users frequently start a session before knowing what it will grow into
  • Naming sessions mid-conversation enables better organization without interrupting flow
  • This is especially useful for long-running sessions that evolve over time

Alternatives Considered

  • Renaming via /resume (Ctrl+R) — works but requires leaving the current session
  • No plugin/MCP hook exists today to implement this as a community extension

Proposed Solution

Add a /rename <name> slash command that sets the current session's display name from within the active conversation.
Example:
/rename Fix JWT auth bug

This would update the session name immediately, so it appears correctly in the /resume session list going forward.

Alternative Solutions

No response

Priority

Low - Nice to have

Feature Category

CLI commands and flags

Use Case Example

I start a session with a vague question like "how do I structure this?" — the session gets named after that first message. Twenty minutes later it has grown into a full refactor discussion. At that point I want to rename it to something meaningful like "Refactor auth middleware", but I have to exit the session, go into /resume, find it, and rename it there — breaking my flow entirely.

With /rename, I could just type it inline and move on.

Additional Context

No response

extent analysis

TL;DR

Implementing a /rename <name> slash command can allow users to rename sessions from within the active conversation.

Guidance

  • To implement the proposed solution, consider adding a new command handler for the /rename command that updates the current session's display name.
  • The command handler should parse the input <name> and update the session's metadata accordingly.
  • To verify the fix, test the /rename command in different scenarios, such as renaming a session with a short name, a long name, and a name with special characters.
  • Consider adding input validation to ensure that the provided name is valid and does not exceed a certain length.

Example

/rename Refactor auth middleware

This example demonstrates how the /rename command can be used to rename a session to a more descriptive name.

Notes

The implementation of the /rename command may require modifications to the existing session management code, and careful consideration should be given to handling edge cases, such as renaming a session that is not currently active.

Recommendation

Apply workaround: Implement the proposed /rename <name> slash command to allow users to rename sessions from within the active conversation, as it provides a more convenient and efficient way to manage sessions.

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 Add /rename command to rename the current session from within an active conversation [1 comments, 2 participants]