Claude/search chat by title sgp4a#2
Open
JoeyCRTecher wants to merge 19 commits intojoeyCorea:mainfrom
Open
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Search by title