Skip to content

fix(native): retain destination model in sidebar metadata - #316

Merged
rynfar merged 2 commits into
nativefrom
nw/315-model-metadata
Nov 6, 2026
Merged

rynfar merged 2 commits into
nativefrom
nw/315-model-metadata

Conversation

@rynfar

@rynfar rynfar commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

Problem

Scoped sidebar hover cards omit their destination model. The shell already decodes modelSelection, but the shared SidebarThread projection drops it. Reading the active shell would also be wrong when two machines share a raw thread id.

Fix

Carry the existing typed model selection through the shared projection and use that same row's model in local and scoped hover cards. Preserve empty-model suppression. No new protocol, watcher, cache or provider lookup.

Closes #315. SB-ROW and SB-HOVER remain partial; this restores the raw model label only, not provider-aware display/history or other row metadata.

Verification

  • Tests first: real model-only ThreadUpdated fails shared metadata equality on baseline. The original whole core case passes with both folder modes and the config/disconnect tail.
  • Exact head b23cbaadce405a2250c5f1436890e2ce6f7e87ad, tree 01123678a68c2087ba9d30e9d7358646afb6dba1, has independent whole-five-file source approval (SHA256 0df8eaf6ad61865bbb483c8d48f6ee3bbcab2fca0809a94a17c44f5778834082).
  • Fresh corrected-head 1356 default tests, strict Clippy, normal app build and theme/intake/conformance pass. Corrected-head snapshot build and final compiler-selected core/frame rerun also pass. Matched merge and fresh merged proof remain required.
  • Whole production frame passes in light and dark: actual measured background-owner collision row hover shows background-model-315, unchanged route and no commands during either hover. Original project-menu scenario tail also passes. Independent actual frame review SHA256 2a7d93a8800306b2104da393405b5b558f28bebd174c77fdb95fcd42433f2393.
  • The first hover attempt found the composer's pending startup project-file read. The test now answers exactly its project-file and refs requests before any pointer input; strict post-hover empty checks remain. No production patch or relaxed assertion.

Before / after evidence

Owner-authenticated draft evidence contains four PNGs and a SHA256 manifest; all remote asset digests match local bytes. It is not a published product release.

Before is a controlled old-row presentation: only row.rs uses 175d9 bytes; candidate projection and the identical real-hover fixture stay fixed. Both before/after whole scenarios pass. Before omits the model; after shows the correct background owner model in light and dark. This is not represented as a full-main baseline or the logic RED. All candidate bytes were restored and the worktree checked clean before the fresh gates.

Formatting stays RED under the explicit exception. No suppressions or constants changed. Offscreen production views do not prove live provider/server writes, real AppKit Input/AX/clipboard or performance.

Model: GPT-6.1 Sol / Codex. Harness: Prime Agent.

@rynfar

rynfar commented Nov 6, 2026

Copy link
Copy Markdown
Owner Author

Independent exact-head source review approves d2b0cc087e0d905463db9bbd2675dda54ef171bc, tree 7ebd1dd8556f2a044b9d24768cfe791cd4457d9b (report SHA256 a8ace7d354c1506d1e76e7807fa6a995b3b58b6aac6c93e6eeaad2533f6c51ae). Whole five-file diff contains only #315 and partial ledger links, with no foreign update/collapse changes.

Actual original core case passes after the intended model-only propagation failure, including both folder modes and its existing config/disconnect tail. Required 1356 default tests, strict workspace/all-target Clippy and theme/intake/conformance pass. Normal app build is running. Actual background-hover captures, snapshot build, matched merge and fresh merged proof remain required.

SB-ROW and SB-HOVER stay partial. This restores the destination raw model label only; no provider display/history or other metadata is claimed. Formatting remains RED under the explicit exception. No constants changed.

@rynfar
rynfar merged commit a65c22b into native Nov 6, 2026
@rynfar

rynfar commented Nov 6, 2026

Copy link
Copy Markdown
Owner Author

Matched-SHA squash merge completed: candidate b23cbaadce405a2250c5f1436890e2ce6f7e87ad → merged a65c22b8f5bc57d28a5694d0dd5bb191e5b81625, exact same tree 01123678a68c2087ba9d30e9d7358646afb6dba1. Independent final candidate approval SHA256 e0bb63f369aadb2a755feabe789b0faeb6a4faf5b1a82985e570047ecd265213; final post-restore node addendum 54bd65f5b41339d66fdde0a6fb50cd6b9ca7b49d97f608836f5db925d486683e.

All candidate gates pass, including 1356 tests, strict Clippy, normal and snapshot builds, theme/intake/conformance, the correct selected model-propagation core case, and the actual whole background-hover scenario in light/dark with strict no-command/identity checks and original project-menu tail. Before/after evidence is uploaded as owner-authenticated draft attachments with all five remote digests verified.

Fresh merged snapshot build is now running. Formal finite completion still requires the merged compiler-selected model-propagation core case and actual frame scenario, fresh hashes/source custody and independent proof review. SB-ROW/SB-HOVER remain partial; sidebar stays 9/16. No constants changed; formatting RED exception and synthetic-only boundaries remain.

@rynfar

rynfar commented Nov 6, 2026

Copy link
Copy Markdown
Owner Author

Finite #315 completion accepted after fresh merged proof.

  • Matched candidate b23cbaadce405a2250c5f1436890e2ce6f7e87ad → merged a65c22b8f5bc57d28a5694d0dd5bb191e5b81625, exact tree 01123678a68c2087ba9d30e9d7358646afb6dba1.
  • Required candidate checks: 1356 default tests, strict Clippy, normal/snapshot app builds and theme/intake/conformance; exact whole-head independent review.
  • Fresh merged snapshot build, compiler-selected correct model-only propagation case and actual whole light/dark hover scenario each pass. Actual measured background collision row shows background-model-315; strict post-hover empty queues, unchanged identity and original project-menu tail pass.
  • Independent final merged approval SHA256 049893cb9455c01215d786c640df928b0a997750da4d9bf1d2d1ec29164ecd34 includes present main/core/native rehash and clean source/tree checks. Historical compiler/hash/JOIN records remain preserved before the next owned package cleanup.
  • Before/after evidence has four PNGs and manifest with verified upload digests. Controlled old-row presentation is labeled, not represented as full-main baseline.

Sidebar stays 9/16. SB-ROW and SB-HOVER stay partial. This restores only the existing destination raw model label. Formatting RED exception and synthetic-only/no-live-provider/AppKit/AX/clipboard/performance limits remain. No constants changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant