Repository navigation
feat(native): complete SB-SEARCH parity and find-in-thread handoff - #352
Merged
Merged
Conversation
Completes whole-row SB-SEARCH parity in apps/native: preserves pull_requests on SidebarThread so non-active remote environments match PR queries and render matching PR badges, tracks settled_query vs pending search lifetime, renders variable-height gpui::list search rows with favicons, regenerating/settled styling, relative timestamps, and You:/Agent: StyledText token highlights, and hands off find-in-thread on result activation while clearing multi-select and updating selection anchors. Model: GPT-5.4 / Claude Sonnet / Antigravity
rynfar
force-pushed
the
nw/242-sb-search-done
branch
from
November 13, 2026 08:15
c921002 to
a811093
Compare
This was referenced Nov 13, 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.
Ref #242, #329
Problem
SB-SEARCHremainedpartialinapps/native/parity/LEDGER.mdbecause non-active remote environments lacked matching PR badges and stack/multi-PR parity, activating a message match did not clear/anchor multi-select or hand off find-in-thread, andSidebarPanesearch results lackedsettled_query/ pending lifetime tracking, variable-height rows, relative timestamps, favicons, regenerating/settled hover styling, pointer highlight sync,Phase/ServerConfigrefresh, andYou:/Agent:token-highlighted excerpts.Summary of Changes
crates/core/src/search/thread.rs):pull_request_matches_search_query,SearchPrBadge, andmatching_search_pr_badgedelegating directly tot3_core::pull_requests::thread_badge(resolve_thread_pull_request_badge,resolve_thread_current_pull_request_link,linked_snapshot_status,pr_status_indicator,resolve_badge_presentation) so single PRs, non-stack+Nmulti-PRs, pending snapshots, and native/derived PR stacks (Icon::Layers) match webThreadSearchPullRequestNumber.crates/core/src/timeline/{find,mod}.rs,crates/core/src/search/mod.rs,crates/app/src/{app_state,thread_view,thread_view/find}.rs):PendingThreadFind,slice_char_range,message_phrase_range, andfind_for_message_match(selecting quoted phrase or longest whole-word query token while preserving snippet casing andFindStartatmessageId).AppEvent::ThreadFind,AppState::{queue_thread_find,take_pending_thread_find}, and clearing stalepending_thread_findonstart_draft, unrelatedselect_thread, andclear_selection.ThreadView::new_fortocx.subscribe_incallingconsume_pending_find, factoredensure_find_ui, and addedopen_find_on_query.Phase/ServerConfigrefresh (crates/app/src/sidebar/{search,mod}.rs):SearchState::{is_pending,settled_query}, reset/scroll tracking ongpui::list,"Searching thread messages…"/"No threads found"empty states,ProjectVisualfavicons (.group("sidebar-row")receding on settled inactive/unhighlighted rows and un-receding on hover),PrGlyph/PrTonebadges (Icon::Layersfor stacks) with settledsecondary_label-> state color.group_hover,compact_relative_label, settled/regenerating title weights & hover reveal,.on_mouse_movehighlight sync +active/highlighted/hoversurface + light-mode inset ring precedence,"You:"/"Agent:"StyledTexttoken highlights (UTF-8 byte-mapped fromfind_search_token_rangesusingsettled_query),activate_search_resultselection clear + anchor reset +queue_thread_find, andSidebarPaneAppEvent::Phase | AppEvent::ServerConfigactive-search refresh.apps/native/parity/LEDGER.md):SB-SEARCHasdonealongsideSB-ROWandSB-SELECT.Offscreen evidence
Draft release: https://github.com/rynfar/t3code/releases/tag/untagged-3d202ab7e4634fd96060 (
native-parity-evidence-352)22889PR badge + timestamp, highlighted regenerating title +Icon::Layers 2stack badge, settled receding row + settled merged22888PR badge, andYou:/Agent:token-highlighted excerpts (Dark / Light):Searching thread messages…) & settled empty (No threads found) states (Dark):Verification (rebased HEAD
a811093299549c8e21abb3c9723e0af2f1e57e23ond6aaa46079)cargo clean -p t3-core -p t3-client -p t3-native+ clean build/test gate:cargo test -p t3-core -p t3-client:t3-client105 passed,t3-core1291 lib + 8 conformance passed, 0 failedcargo test -p t3-core --test conformance: 8 passed, 0 failedcargo test -p t3-client --features test-support: 113 passed, 0 failedcargo test -p t3-native --features snapshot --bin t3-native sidebar:: -- --test-threads=1: 33 passed, 0 failedcargo test -p t3-native --features snapshot --bin t3-native thread_view:: -- --test-threads=1: 7 passed, 0 failedcargo clippy --workspace --all-targets -- -D warnings: passed (0 warnings)cargo build -p t3-native&cargo build -p t3-native --features snapshot: passednode apps/native/scripts/gen-theme.ts --check,node apps/native/conformance/generate.ts --check,node --test apps/native/parity/sync.test.ts(42/42 passed): passed./node_modules/.bin/vp fmt --check apps/native/parity/LEDGER.md&./node_modules/.bin/vp run check:changed fork/native: passed (format, typecheck 40/40 packages, test 1 file / 2 tests)Model: GPT-5.4 / Claude Sonnet (Antigravity)