Repository navigation
feat(native): complete SB-HOVER thread hover card parity - #354
Merged
Merged
Conversation
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, #315 (Wave 4A:
SB-HOVERwhole-rowdone).Problem
The native sidebar hover card showed only title, project, branch, raw model slug and error. Web's
SidebarThreadTooltip(apps/web/src/components/sidebar/SidebarThreadRow.tsx) also shows the environment label and machine, a checkout branch-mismatch warning, the provider-instance-aware model name, prior handoffs, the running-terminal count, and a capability-gated pull request mini-list. Native also built the card eagerly on every row render, in GPUI's defaultshadow_lgand without a text colour on the PR footer.Changes
crates/core/src/sidebar/hover.rs(new, pure, unit-tested):model_instance_id,model_text(trigger model name +· instancewhenshows_instance_badge),handed_off_from,checkout_to_compare+branch_mismatch(resolveLocalCheckoutBranchMismatch),terminal_process_label, andpull_request_list_lines(pullRequestListLinesoverresolve_thread_pull_request_chains, newest chain first,stack · N/chain · Non a chain's first line).crates/app/src/sidebar/hover.rs: rows now capture only aHoverTarget(state,ThreadKey, id, project, favicon), and the card is built when the tooltip opens:fleet.environment(key.environment_id).Icon::machine; model line with a grayscaleProviderIconand an accent dot when the badge shows;Handed off from ….useSupportsMultiplePullRequests), with depth indent capped at 3.vcs.refreshStatus(localOnly) read for local-mode threads that record a branch. It goes to the owning environment's client (connections.destination(owner, orchestration:read)for fleet rows), runs once per open card, and is aborted when the card closes (AbortOnDrop).muted_foregroundon the PR footer.crates/app/src/sidebar/row.rs: usesHoverTarget+hover::tooltip; PR glyph/tone mapping is shared throughhover::{pr_icon, pr_tone}.crates/app/src/snapshot.rs: newcheckoutBranchessidebar fixture field (CheckoutFixtureglobal). Frozen snapshot fixtures answer the checkout comparison locally and never ask a server.apps/native/parity/LEDGER.md:SB-HOVER→done, Native column updated.Tests (RED → GREEN)
Written before the card existed. On base
0f29528a2cthey fail to compile:t3_core::sidebar::hover,HoverTargetandThreadHoverCard::neware all missing.t3-coresidebar::hover::tests(5): model trigger name + instance naming (twin driver, accent), runtime instance precedence + handoff names (unknown ids kept raw), local-only checkout warning, terminal labels, PR list ordering / dismissed links / chain labels.t3-nativesidebar::hover::tests(3):local_card_shows_every_web_line_and_compares_the_checkout_once: every line renders inside 320px; exactly onevcs.refreshStatus {cwd, localOnly}; mismatch shows after the reply.closing_the_card_drops_its_checkout_read: dropping the card closes the in-flight request.fleet_card_reads_the_owning_environment_and_keeps_terminals_to_the_current_one: same rawthread.idon two environments. Only the owning environment is asked, labels and machine icons are per environment, and terminals show only for the current one.Offscreen evidence
Draft release
native-parity-evidence-hover(GPUI--snapshot --sidebar-fixture,--hover):Verification (
4b5bd4c1fa42080714e70a04fdc9911b07ef06b8)Cargo receipts are from
2ea2488af4. It differs from HEAD only in theLEDGER.mdformatting.cargo clean -p t3-core -p t3-client -p t3-native+cargo clippy --workspace --all-targets -- -D warnings: passcargo test -p t3-core -p t3-client: 105 + 1296 + 8 passed, 0 failedcargo test -p t3-client --features test-support: 113 passed, 0 failedcargo test -p t3-native --features snapshot --bin t3-native <sel> -- --test-threads=1(freshT3_NATIVE_HOMEeach):sidebar::context_menu::thread_menu_tests::composer::omitted_rows::tests::scoped_route_tests::cargo build -p t3-native&cargo build -p t3-native --features snapshot: passThese pass on
4b5bd4c1fa:node apps/native/scripts/gen-theme.ts --check,node --test apps/native/parity/sync.test.ts(42/42),node apps/native/conformance/generate.ts --check,vp fmt --check apps/native/parity/LEDGER.md,vp run check:changed fork/native(format, typecheck 40/40, test).Work by Claude Opus 5.5 (Antigravity swarm
u367-author).