Repository navigation
feat(native): find in thread - #24
Merged
Merged
Conversation
cmd-f (chat.find, and Find in thread from the thread menu) opens the web's find bar: the server counts and orders matches across the whole thread (orchestration.searchThread), Enter and Shift-Enter step through them using the result's navigation window without a round trip when they can, and the count, Searching… and Search failed with Retry match the web. The active match is revealed by opening the turn fold, superseded attempt or tool group that hides it, paging history in when it is older than the loaded window, then scrolled into view and tinted. Streamed content re-asks from the current match after a pause.
This was referenced Nov 2, 2026
Open
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.
Thread surfaces, worked in the orchestrator's order. More items follow as additional commits; this description is updated as they land.
Done
TV-FIND: find in thread
cmd-f(chat.find,!terminalFocus && !previewFocus) and Find in thread in the thread menu open the web's find bar (ThreadFindBar.tsx): field, count, Searching… / Search failed with Retry, previous, next, close. Escape closes it.orchestration.searchThread(useThreadFind.ts), so they include history that isn't loaded yet. The search starts at the first entry in the viewport.navigationwindow locally when they can, and otherwise ask the server withstart+offset. While the server is still counting (complete: false) the label shows1/…and navigation waits.useThreadFindNavigation.tsdoes it: open the turn fold (fold_membership, a port oftimelineTurnFoldRunIdsByEntryId), the superseded attempt or the tool group that hides it, page history in when the match is older than the loaded window, then scroll it into view. Inside an open group, the group's own list scrolls to the member.crates/core/src/timeline/find.rs, with tests for counting, wrapping, the local window, payloads and decoding. I checked theentryIdsemantics (message id for messages, item id otherwise) againstThreadFind.tson the server and a read-onlysearchThreadcall on the real-data server.Gap: highlighting is row-level. The active match's row takes a
search_match_backgroundtint. gpui-component'sTextViewhas no text-range highlight API, so in-text marks need a renderer change.Verification so far
cargo test -p t3-core: 267 passed. Workspace clippy with-D warningspasses.