Custom conversation names are overwritten after context compression
Description
When a conversation's context window fills up and Claude Code performs automatic context compression/summarization, the custom conversation name set via /rename is overwritten with an auto-generated name based on the summarized content.
Steps to Reproduce
- Start a conversation in Claude Code
- Rename it using
/rename my-custom-name - Continue the conversation until the context window fills up and automatic compression/summarization occurs
- Check the conversation name — it has been replaced with an auto-generated name, losing the custom name
Expected Behavior
Custom names set via /rename should be preserved through context compression. A manually assigned name represents an intentional user choice and should take priority over auto-generated names.
Actual Behavior
The custom name is lost and replaced with an auto-generated name after context compression.
Suggestion
Persist a flag (e.g., customName: true) on conversations that have been manually renamed, and skip name regeneration during context compression for those conversations.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗