feat(search): in-chat message search and session list filter - #26
Merged
Conversation
Search within the open conversation across text and reasoning parts, with a match counter, previous/next navigation and scroll-to-match highlight. Add a session-list title filter reachable from the sessions top bar. Both mirror the existing file/command search UX (transparent-bordered field, TUI glyphs).
|
Ready to review this PR? Stage has broken it down into 5 individual chapters for you:
Chapters generated by Stage for commit f9a3491 on Jun 21, 2026 7:34pm UTC. |
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.
Summary
Two client-side search capabilities, mirroring the existing file/command search UX (transparent-bordered field, TUI glyphs):
3/12), previous/next navigation and scroll-to-match plus a subtle highlight on the current hit. Opened from the chat overflow menu (⌕ Search chat); Back closes the search bar.Implementation
ChatSearch.kt— pure, testable match logic overMessageBlocks (Part.Text/Part.Reasoning/tool names/subtask prompts).ChatSearchBar.kt— the in-chat search bar composable.ChatScreen.kt— search state, scroll-to-match, current-hit highlight viaitemsIndexed, Back handler.SessionListScreen.kt— sticky-header search field + title filter.Testing
Built with JDK 17 (
./gradlew :app:assembleDebug) and verified on a physical device: both searches work, match navigation scrolls correctly, no crashes.