CLI sessions missing from /resume list due to missing ai-title

Resolved 💬 6 comments Opened Mar 22, 2026 by zigpac Closed Apr 23, 2026

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-title records
  • /resume should be able to display sessions even without ai-title (e.g., fall back to first user message or timestamp)

Environment

  • Claude Code CLI (terminal)
  • Ubuntu Linux
  • Claude Opus 4.6 (1M context)

View original on GitHub ↗

This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗