Skip to content

Add support for AI-generated session titles - #1

Open
villelaitila wants to merge 1 commit into
mainfrom
feat/ai-title-support
Open

Add support for AI-generated session titles#1
villelaitila wants to merge 1 commit into
mainfrom
feat/ai-title-support

Conversation

@villelaitila

Copy link
Copy Markdown
Contributor

Summary

Claude Code now writes an ai-title entry ({"type":"ai-title","aiTitle":...}) for sessions that have no user-set title. cc-search only read custom-title entries, so most titled sessions displayed as "(no title)" — on a real dataset, 94 sessions had an AI title vs. 21 with a custom title.

Changes

  • Parse ai-title entries and use the AI-generated title as a fallback when no custom title is set. A custom title still takes precedence.
  • Update the README field description accordingly.

Testing

Built and ran against a real ~/.claude dataset: sessions that previously showed "(no title)" now display their AI-generated title; sessions with a custom title are unchanged.

Claude Code now writes an ai-title entry ({"type":"ai-title","aiTitle":...})
for sessions without a user-set title. Previously these sessions all displayed
as "(no title)" even though a title exists in the data.

Use the AI-generated title as a fallback when no custom title is set;
a custom title still takes precedence.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant