Repository navigation
fix(native): sync sidebar search lifetime and cross-env ranking - #349
Merged
Merged
Conversation
rynfar
force-pushed
the
nw/242-search-lifetime
branch
from
November 13, 2026 01:20
0a54a61 to
f8dff9a
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.
Native sidebar search only dispatched
orchestration.searchThreadson query edits, passed project titles into sidebar search subjects, concatenated server content hits withoutquality/hits/messageCreatedAtranking ornextShownOrderstabilization, included server hits absent from admitted sidebar rows, clearedSEARCH_KEYmounts before selecting/navigating older-settled results, and dropped settled results on every keystroke instead of retaining related queries viavisibleThreadSearch.This ports the
SB-SEARCHrequest-lifetime, activation, and result-ranking contract frompackages/client-runtime/src/state/threadSearch.ts,apps/web/src/state/queries.ts, andapps/web/src/components/Sidebar.logic.ts(includingpingdotgg/t3code#24343no-project-title sidebar search):searchThreadsflights andsearchomitted-row mounts onAppEvent::Shellwhen project scope,olderSettledBefore, owner readiness, ororchestration:readgrants change for the same query, mirroring the active environment'ssearchmount intoself.omitted.mountsand selecting/navigating beforeclear_searchso older-settled hits activate reliably while another thread or hidden-tag filter is active.subject_by_key), retains fullServerThreadSearchMatchrecords (message_id,snippet,source) across related queries (visibleThreadSearch) while clearing immediately on unrelated or empty queries, enforces the 200 UTF-16 code unit query cap andmessage_search_tokensgate, and ranks server matches across environments viarank_message_matches(picks: false) stabilized withnext_shown_order.Some(None)latest_user_authored_message_atfallback tocreated_at,OpenHistory::opened_atlocal open boost, active/mounted shellsearch_pull_requests, andproject_title: None) and updatesapps/native/parity/LEDGER.md(SB-SEARCHremainspartialfor non-active remote summary PR links, find-in-thread handoff, and UI proof).Ref #242, #329
Headless verification (serialized under
lockf)cargo test -p t3-core -- sidebar::older_settled::tests::search_requests_follow_message_token_rules_and_utf16_query_cap(1 passed; 0 failed)cargo test -p t3-native --features snapshot -- sidebar::search::tests:: --test-threads=1(4 passed; 0 failed)cargo test -p t3-core -p t3-client(1365 passed; 0 failed)cargo test -p t3-native --features snapshot -- omitted_rows::tests:: --test-threads=1(6 passed; 0 failed)cargo clippy --workspace --all-targets -- -D warnings(0 warnings)cargo build -p t3-native --message-format=json(compile-only,fresh: false,success: true)node scripts/gen-theme.ts --check,node --test parity/sync.test.ts(42/42),node conformance/generate.ts --checkvp fmt --check apps/native/parity/LEDGER.md&vp run check:changed fork/native(exit0)Built with Antigravity (
sidebar-author).