claude-code - 💡(How to fix) Fix 请求:自动生成对话标题功能 [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#51870Fetched 2026-04-23 07:42:42
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1
RAW_BUFFERClick to expand / collapse

功能请求:自动对话标题生成

需求描述

希望 Claude Code 能在对话结束时(或按需)自动生成一个简短、有意义的对话标题,而无需用户手动执行 /rename 命令。

背景

目前重命名对话需要用户手动输入 /rename,这在以下场景中不够便捷:

  • 对话结束后回顾时,标题仍是默认的 "New Conversation"
  • 连续处理多个任务时,对话列表难以识别
  • 归档前手动重命名增加了额外操作成本

期望行为

  • 自动触发:对话结束后自动生成标题,或在首次 AI 回复后生成
  • 智能命名:基于对话内容生成简短标题(如项目名、任务类型等)
  • 可编辑:用户仍可手动修改自动生成的标题

可能的实现方式(供开发者参考)

  1. Hook 钩子方案:在 on_conversation_end 或类似时机自动调用标题生成
  2. 配置开关:提供设置项让用户选择是否开启自动命名
  3. 生成策略:使用首次用户消息 + 任务类型识别来生成标题

其他

这是继 /rename 命令之后的自动化诉求,期待官方考虑支持。

extent analysis

TL;DR

Implement an automatic conversation title generation feature that triggers at the end of a conversation or after the first AI response, using a hook or configuration switch to enable the feature.

Guidance

  • Identify the optimal trigger point for automatic title generation, such as on_conversation_end or after the first AI response.
  • Develop a title generation strategy based on conversation content, such as using the first user message and task type to create a concise title.
  • Provide a configuration setting to allow users to enable or disable the automatic title generation feature.
  • Ensure the generated title is editable by the user to accommodate manual modifications.

Example

No code example is provided due to the lack of specific technical details in the issue.

Notes

The implementation details, such as the specific hook or configuration switch, are not specified in the issue and would require further clarification.

Recommendation

Apply a workaround by implementing a custom script or plugin that listens for the conversation end event and generates a title based on the conversation content, until an official solution is available. This approach allows for a temporary solution while waiting for official support.

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 请求:自动生成对话标题功能 [1 comments, 2 participants]