Skip to content

Claude/search chat by title sgp4a#2

Open
JoeyCRTecher wants to merge 19 commits intojoeyCorea:mainfrom
rdytech:claude/search-chat-by-title-sgp4a
Open

Claude/search chat by title sgp4a#2
JoeyCRTecher wants to merge 19 commits intojoeyCorea:mainfrom
rdytech:claude/search-chat-by-title-sgp4a

Conversation

@JoeyCRTecher
Copy link
Copy Markdown

Search by title

JoeyCRTecher and others added 19 commits March 30, 2026 11:30
Add a date cutoff filter (Layer 3) in refresh_sessions() that excludes
sessions older than 7 days. Handles mixed tz-aware/naive timestamps
from the parser's fallback path without raising TypeError.

Includes plans for all 3 todo items and solution documentation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Press f to enter a custom number of days for the session filter.
Enter 0 to show all sessions. Current filter shown in subtitle.
Extracts filter_sessions(), parse_filter_input(), filter_subtitle()
as pure functions for testability.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Press g to toggle grouping. Sessions are organized under project name
headers, sorted by most recent session per group. get_selected_session()
uses isinstance to handle mixed item types in ListView.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The initial fix read cwd from ~/.claude/sessions/*.json, but those files
only exist while a Claude process is running. Extract cwd directly from
the JSONL session messages, which persist permanently.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The app-level enter binding has priority=True (to override ListView),
which also intercepts Enter from the Input widget. Now action_open_session
detects when the filter input is visible and delegates to _submit_filter
instead.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Caches parsed session metadata to skip re-parsing unchanged JSONL files,
keyed by filepath with mtime invalidation. Reduces refresh overhead for
large session directories.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Session content containing bracket sequences like [/code] was interpreted
as Rich BBCode tags, crashing the TUI. All dynamic content in render()
methods is now wrapped in rich.markup.escape().

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sessions renamed via /rename now display the user-chosen name instead of
the AI-generated title. Priority: custom-title (last wins) > ai-title >
first user message > [Untitled].

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Adds a search input field (activated with "/") that filters the session
list by matching space-separated terms against chat titles (case-insensitive).
Escape closes search and clears the filter. Enter submits the search query.

https://claude.ai/code/session_015FZikpwJbhhiMGwp4HEkw3
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.

2 participants