CLI sessions missing from /resume list due to missing ai-title
Bug Description
CLI-launched sessions frequently do not appear in the /resume picker, while VS Code extension sessions always do. This makes it very difficult to find and resume recent CLI conversations.
Root Cause
CLI sessions often lack the ai-title JSONL record that the /resume list depends on for display. VS Code extension sessions consistently generate ai-title records, but CLI sessions do not.
Evidence
Examined 754 sessions in a project directory — only 47 have ai-title, and nearly all of those were launched from claude-vscode. CLI sessions (the majority) have no title, making them invisible or unrecognizable in the /resume list.
Example: Session 98b10978 (100 messages, very active, last updated minutes ago) does not appear in /resume because it has no ai-title. But the same session is easily found in VS Code extension history panel, which reads conversation content directly.
Expected Behavior
- All sessions (CLI and VS Code) should generate
ai-titlerecords /resumeshould be able to display sessions even withoutai-title(e.g., fall back to first user message or timestamp)
Environment
- Claude Code CLI (terminal)
- Ubuntu Linux
- Claude Opus 4.6 (1M context)
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗