Skip to content

Add session topic to Recent Sessions table #147

Description

@arojunior

Problem

The Recent Sessions table shows only the session ID (first 8 chars of the UUID), project name, and usage stats. When reviewing usage, it's hard to identify what each session was about without a meaningful label.

Proposal

Add a Topic column to the Recent Sessions table, derived from Claude Code's existing session title records in the JSONL transcripts.

Title priority

  1. custom-title — user-set conversation label (highest priority)
  2. ai-title — AI-generated conversation summary
  3. First user message — fallback when no title record exists, truncated to 100 chars, skipping IDE context blocks (<ide_opened_file>, <ide_selection>)

Implementation details

  • scanner.py: Parse custom-title and ai-title record types (currently skipped by the rtype not in ("assistant", "user") filter). Fall back to extracting the first real user prompt text.
  • DB schema: Add a topic TEXT column to the sessions table, with a migration via _ensure_column().
  • dashboard.py: Add a Topic column to the sessions table HTML, the renderSessionsTable() JS function, and the CSV export.

Example

Session Topic Project ...
a1b2c3d4… PROJ-123 my-org/my-app ...
e5f6g7h8… Debug custom event not appearing my-org/my-app ...
f9a0b1c2… Add dark mode toggle to settings… my-org/my-app ...

PR: linked below.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions