Custom conversation names are overwritten after context compression

Resolved 💬 3 comments Opened Mar 3, 2026 by assistcookies Closed Mar 3, 2026

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

  1. Start a conversation in Claude Code
  2. Rename it using /rename my-custom-name
  3. Continue the conversation until the context window fills up and automatic compression/summarization occurs
  4. 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.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗