claude-code - 💡(How to fix) Fix Custom chat names should not be auto-overwritten [1 comments, 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#51642Fetched 2026-04-22 07:56:46
View on GitHub
Comments
1
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
closed ×1commented ×1labeled ×1

Root Cause

Custom names exist specifically so users can remember what a chat is about. Auto-overwriting them defeats the entire purpose of the feature — if the name can change without user action, it stops being a reliable identifier.

Example: I had a chat renamed "Anamnesis-δ²" for ongoing work on a specific neural engine project. After a later session the name was replaced automatically, making the chat much harder to locate among many others.

RAW_BUFFERClick to expand / collapse

Problem

After renaming a chat to a custom name, subsequent model-generated titles overwrite the user's chosen name.

Why this matters

Custom names exist specifically so users can remember what a chat is about. Auto-overwriting them defeats the entire purpose of the feature — if the name can change without user action, it stops being a reliable identifier.

Example: I had a chat renamed "Anamnesis-δ²" for ongoing work on a specific neural engine project. After a later session the name was replaced automatically, making the chat much harder to locate among many others.

Expected behavior

Once a chat is renamed by the user, only the user should be able to rename it. Auto-generated titles should only apply to chats the user has not named.

Actual behavior

Custom-named chats can be renamed programmatically, losing the user's chosen label with no undo path.

extent analysis

TL;DR

Check the chat renaming logic to ensure it respects user-provided custom names and only applies auto-generated titles to unnamed chats.

Guidance

  • Review the code responsible for generating model-generated titles to identify where the overwrite is happening and ensure it checks for existing custom names before applying changes.
  • Verify that the custom name is being stored and retrieved correctly, and that it's not being inadvertently cleared or overwritten during the title generation process.
  • Consider adding a conditional check to only apply auto-generated titles if the chat does not already have a custom name set by the user.
  • Investigate the possibility of adding an "undo" feature to allow users to revert to their custom name if it's overwritten.

Example

if chat.custom_name:
    # Do not overwrite custom name with auto-generated title
    pass
else:
    # Apply auto-generated title
    chat.title = generate_title()

Notes

The exact implementation details may vary depending on the underlying technology stack and codebase. It's essential to carefully review the relevant code sections to ensure the fix is applied correctly.

Recommendation

Apply a workaround by modifying the chat renaming logic to respect custom names, as upgrading to a fixed version is not mentioned in the issue. This approach ensures that user-provided names are preserved and only auto-generated titles are applied when necessary.

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…

FAQ

Expected behavior

Once a chat is renamed by the user, only the user should be able to rename it. Auto-generated titles should only apply to chats the user has not named.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING