Skip to content

Conversation

@TobyBackstrom
Copy link

Summary

Sessions renamed via /rename now display the custom title in the session picker instead of the auto-generated summary.

Previously, _get_jsonl_summary() only checked for:

  1. type: "summary" entries
  2. First user message (fallback)

Now it first checks for type: "custom-title" entries, which are created when users rename a session with /rename:

{"type":"custom-title","customTitle":"GIT stuff","sessionId":"abc123"}

Changes

- Modified _get_jsonl_summary() in src/claude_code_transcripts/__init__.py to check for custom-title first
- Added two tests in tests/test_generate_html.py

Test plan

- Added test_gets_custom_title_from_jsonl
- Added test_custom_title_takes_priority_over_summary
- All 106 existing tests pass

  Sessions renamed via /rename now display the custom title  in the session picker instead of the auto-generated summary.
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