[BUG] NEed an ability to rename the claude code sessions

Status Fixed / completed
Maintainer reply None cached
Activity 9 comments · opened Jul 16, 2025 · closed Jan 21, 2026

Environment

  • Platform (select one):
  • [x] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 1.0.53 (Claude Code)
  • Operating System: macOS 15.5
  • Terminal: iTerm2 / MAc Terminal

Bug Description

Currently, once resumed, a session gets a very generic name in the "claude --resume" list. Currently, we don't have a way to explicitly rename the session, but for new sessions, there's a partial workaround, that name gets decided by the first question. Ideally, we should be able to name a session, so that resuming itis eariser, instead of going of hit and trial. But the resumed session overwriting that name makes it harder, even without this feature.

Steps to Reproduce

  1. Start a session, do some work and close it.
  2. Resume it (for now, it has somewhat sensible name in the "--resume" list), and then close it again.
  3. Close it again, and then try to resume. All the sessions that go through this flow, end up with a generic "This session is being continued from a previous conversation..." name.
  4. Even timestamp doesn't help, if there were multiple sessions resumed around the same time. (very common, when resuming work after a system or IDE restart)

Expected Behaviour

  1. We should persist the session name, even after resume.
  2. Even better, we should either have a way to explicitly give a name to a session (which persists across resuming)

Actual Behavior

Session names are lost after resume.

Additional Context

<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->

View original on GitHub ↗

9 Comments

DoisKoh · 1 year ago

Perhaps renaming is not exactly what we need... I find that as conversations progress, the context can and does change, but you do want Claude to continue having some of that context.

Having to remember the original name, and/or having to continually rename conversations isn't a great experience either - the essence of the problem is that we want is a better way to quickly visualize the context that that session has. Just my 2 cents.

davidmoshal · 1 year ago

resuming sessions when you are working on several at the same time is pretty hard. /rename-session is the clear solution, and it should be possible to do this repeatedly as the focus of the session changes

elijahr · 11 months ago

I was about to type up an issue, but I see I'm not the only one frustrated by this. Adding my thoughts to the conversation:

/resume behavior is almost there, but falls short.

For instance, this is what claude --resume or /resume show me:

      Modified     Created        Msgs Git Branch  Summary
❯ 1.  2h ago       2h ago            8 devel       Pydantic AI Integration: Validation Strategy Review
  2.  2h ago       7h ago           92 devel       ASan Integration in Test Script: Unified Memory Checking
  3.  7h ago       12h ago         194 devel       Debugging Python Web Scraper with Selenium and BeautifulSoup
  4.  13h ago      14h ago         141 devel       Debugging Python Web Scraper with Selenium and BeautifulSoup
  5.  14h ago      18h ago         246 devel       Debugging Segfault: Aggressive Test Execution Strategy
  6.  18h ago      20h ago         396 devel       Debugging Python Web Scraper with Selenium and BeautifulSoup
  7.  22h ago      22h ago          52 devel       API Error Troubleshooting and Server Debugging
  8.  22h ago      1 day ago       508 devel       Debugging Python Web Scraper with Selenium and Requests
  9.  1 day ago    1 day ago       227 devel       Coding Project: Debugging and Refactoring Complex System
  10. 1 day ago    1 day ago       226 devel       Coding Project: Debugging and Optimization Progress
  11. 1 day ago    1 day ago       223 devel       This session is being continued from a previo...
  12. 1 day ago    1 day ago       152 devel       This session is being continued from a previo...
  13. 1 day ago    1 day ago       256 devel       This session is being continued from a previo...
  14. 1 day ago    1 day ago       342 devel       Debugging Python Web Scraper with Selenium and BeautifulSoup
  15. 1 day ago    1 day ago       313 devel       Debugging Python Web Scraper with Selenium and BeautifulSoup
  16. 1 day ago    2 days ago      318 devel       Debugging Python Web Scraper with Selenium and BeautifulSoup
  17. 2 days ago   2 days ago      168 devel       I apologize, but the conversation snippet you've provided appears to be empty. Without seeing the actual conver…
  18. 2 days ago   2 days ago      343 devel       Debugging Python Web Scraper with Selenium and BeautifulSoup
  19. 2 days ago   2 days ago      101 devel       Debugging Python Web Scraper with Selenium and BeautifulSoup
  20. 2 days ago   2 days ago      420 devel       Debugging Python Web Scraper with Selenium and BeautifulSoup
  21. 2 days ago   2 days ago      352 devel       Debugging Python Web Scraper with Selenium and Requests
  22. 2 days ago   2 days ago      428 devel       Debugging Python Web Scraper with Selenium and BeautifulSoup
  23. 2 days ago   2 days ago      356 devel       This session is being continued from a previo...
  24. 2 days ago   2 days ago      265 devel       This session is being continued from a previo...
  25. 2 days ago   2 days ago       15 devel       I have another claude session working on @COM...
  26. 2 days ago   2 days ago       15 devel       Can you look at the instructions in @COMPREHE...
  27. 2 days ago   2 days ago      239 devel       This session is being continued from a previo...
  28. 2 days ago   2 days ago      327 devel       This session is being continued from a previo...
  29. 2 days ago   2 days ago      268 devel       This session is being continued from a previo...
  30. 2 days ago   2 days ago      364 devel       This session is being continued from a previo...
  31. 2 days ago   2 days ago       64 devel       This session is being continued from a previo...
  32. 2 days ago   2 days ago      204 devel       This session is being continued from a previo...
  33. 2 days ago   2 days ago      181 devel       This session is being continued from a previo...
  34. 2 days ago   3 days ago      131 devel       This session is being continued from a previo...
  35. 3 days ago   3 days ago      233 devel       This session is being continued from a previo...
  36. 3 days ago   3 days ago      386 devel       This session is being continued from a previo...
  37. 3 days ago   3 days ago      275 devel       We have made a lot of changes to this project...

There are over a hundred more entries below that. There are more duplicate summaries than not, and the summaries are useless more often than not. For instance, This session is being continued from a previo... tells me absolutely nothing about the session, and I have no idea where Debugging Python Web Scraper with Selenium and BeautifulSoup is coming from - none of my conversations in this project have anything to do with web scrapers or selenium in the slightest. It's either a hallucination or a bad default.

In many cases, This session is being continued from a previo... replaces the summary of a conversation, erasing any useful context that might have been in the summary before the conversation was resumed.

Improving the summary content and how/when it updates would dramatically improve usability, however I think the ideal would be for claude to automatically generate a unique and memorable conversation names like my-project-banana and to allow the user to manually rename them. The name would be displayed in the list in addition to, not instead of, the summary.

Something like the below would be ideal call patterns:

# Claude command line
claude [--name <my-unique-name>]  # Create a new conversation with the given name
claude --resume [<some-existing-name>] # Resume the conversation with the given name

# Command within claude
/rename <my-new-name>

There is prior art; tmux and zellij both generate a session name automatically, and users can rename them. Many users opt for programmatic renaming and include useful context such as the current project directory, the git branch if present, and sometimes a random memorable suffix (like banana, giraffe, etc).

This is related to https://github.com/anthropics/claude-code/issues/2033 but is not a duplicate because that issue is only asking to show an identifier on the conversation picker.

baba43 · 9 months ago

Currently, this missing feature requires me to always keep VS Code instances open, just because I know, that I can not find my previous sessions. It would be so great to have an option to either "mark" sessions or make it possible to rename, since the noise of the auto-generated names make it almost impossible to find anything.

Of course, it would also be an option if the auto-generated session names would actually get any useful session names. This problem basically shows up as soon as you start using claude -c to _split_ a conversation (what I do often, to avoid context bloat. Maybe I am doing this wrong).

tushar2708 · 9 months ago

@baba43 : This was the exact reason why I created this issue. I have been working on a few projects in parallel, and some sessions have really good context. I have to keep them open till I can conclude them. (which is difficult, because life happens, and you can't always get back to side-projects every day)

It goes on till my MacBook starts throwing beach balls everywhere, and I HAVE TO restart the IDE or the system. And boom, all the sessions are gone. The "--resume" shows me a different order of sessions in different tabs of the same folder (god knows why it can't be the same order), and I have to try and resume sessions with generic names (mostly "This session is being continued from a previous ...")

I am not sure how useful any autogenerated session names can be. They should exist, but there should definitely be a way to rename the sessions with custom strings, so that I can come back and resume them later on.

Without this, I have 3-4 days of great productivity. But then it takes 1-2 days to reach the same level of context and hence, productivity. with "some new, some resumed" sessions.

I wonder why this was not something that came with the session resume feature to begin with. Without this, the resume feature is not very useful. (the way things are, we resume "what" exactly?)

AlexIDUJFNJ · 9 months ago

+1
Scrolling through 20+ sessions all named "This session is being continued from a previous conversation that ran out of context. The conver…" trying to find the right one is painful. Even a simple /rename command would be a game-changer.

github-actions[bot] · 8 months ago

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

oliver-kriska · 7 months ago

fyi: Testing on the latest version (January 2026) - custom names set via /rename now persist through compaction and resume correctly. Sessions are properly grouped under the custom name in claude -r, with the compacted continuation showing the same name as the original.

github-actions[bot] · 7 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.