Skip to content

fix(native): preserve shelves across watched thread navigation - #336

Merged
rynfar merged 1 commit into
nativefrom
nw/333-shelf-continuity
Nov 7, 2026
Merged

rynfar merged 1 commit into
nativefrom
nw/333-shelf-continuity

Conversation

@rynfar

@rynfar rynfar commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

Problem

Navigating to a thread in an already watched environment discarded sidebar shelf state even when the effective project scope stayed the same.

Change

Preserve shelf expansion and Settled tail count together with the existing effective-scope key when clearing connection state. Keep the existing scope-key comparison as the authority for resetting the tail on genuine scope changes. This is a three-line production change across two files. No timers, protocol, grant checks, selection policy, or constants change.

Proof

  • Tests first: actual unchanged-scope shelf failure reviewed independently (7caee5fbdf242122710a0e9c6916a48ddf0340a436dfcf7799424652ab0d07d8).
  • The first full continuation failed at its queue-empty fixture premise, not a shelf assertion. A reviewed diagnostic observed exactly one expected open-thread. The corrected test requires that exact command kind/count; it does not filter extra commands. Independent correction review: 1c85e67821775de17bf1fffb83f37dfec38d07a89aed1ba691182cf38562a950.
  • The corrected actor-backed full test passed once in a fresh isolated home: shelf expansion and 35-row tail before/after actual activation and Selection, destination visit payload, genuine changed-scope tail reset to 10, prior-writer barrier/drain, and command assertions.
  • take_commands erases subscription IDs. The terminal assertion proves command kinds/count only, not the subscription payload or global wire silence. Sending the visit reply is not a join on its callback.
  • Candidate b8f5dec2f112c113728752c2a075cb9522d9f21d / tree 258bb27de855af9dbd79534dc39f3f77a76dfe23 passed 1,356 core/client tests, strict Clippy, normal/snapshot builds, theme/intake/conformance/diff, and current compiler-selected core7/native8 runtime controls. Independent exact-head source review f648667d52e8455957d5d3cb70db5603bb9b4d52bb987497b50eeff9506b1930 approved. Independent candidate final d2c497568d14fed6a3c22bdd1b0f30dd01d9d11e625f859e19970028d139b102 recorded all three artifacts CURRENT/PRESENT before the owned three-crate clean. Matched-head squash merge 4412b37c9264243d32f4482ea9f7123d8af06299 has the exact candidate tree and parent. Fresh merged snapshot build plus proper compiler-JSON-selected core7/native8 controls all passed from MAIN, with fresh compilation and eight distinct initially empty test homes. Independent fresh merged FINAL 61373ac8161a533a9b1558a0b4a33043339c377189db285b6e42baaca0c38486 accepted the finite fix after directly hashing all three current artifacts twice and verifying exact merged identity/source/ledger and runtime evidence. No blocking findings.
  • check:changed bootstrap remains NOT GREEN (desktop UserTaskDefinition); no unrelated toolchain repair. The approved existing formatting exception remains.

Parity

Updates SB-SECTIONS, still partial. Sidebar remains 9/16. Local-fallback/cross-mode scope variants, natural timer/pane/label proof, and remaining sections stay separate. No Input/Root/real-window work is included.

Model: Sol 6.1. Harness: Prime Agent; independent review through Codex.

@rynfar

rynfar commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

Independent exact-head source review approved b8f5dec2f112c113728752c2a075cb9522d9f21d / tree 258bb27de855af9dbd79534dc39f3f77a76dfe23 with no blocking, high, or medium findings. Report SHA256: f648667d52e8455957d5d3cb70db5603bb9b4d52bb987497b50eeff9506b1930.

Current required checks: 1,356 core/client tests, strict workspace/all-target Clippy, theme, intake, conformance, and diff check passed. Normal build is running. Snapshot build, current compiler-selected core7/native8 runtime controls, and final CURRENT artifact review remain required before merge.

check:changed is NOT GREEN: desktop UserTaskDefinition task-config bootstrap fails before checks. No unrelated tooling repair. Sidebar remains 9/16; SB-SECTIONS stays partial. No constants changed.

@rynfar
rynfar merged commit 4412b37 into native Nov 7, 2026
@rynfar

rynfar commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

PR #336 merged with matched head b8f5dec2f112c113728752c2a075cb9522d9f21d as 4412b37c9264243d32f4482ea9f7123d8af06299. Remote and local merged tree 258bb27de855af9dbd79534dc39f3f77a76dfe23 and parent 7060b3d610dd61a12066892709690b674521d9fa match the reviewed candidate. Clean MAIN, all 572 Rust source hashes and ledger hash verified.

Independent candidate final d2c497568d14fed6a3c22bdd1b0f30dd01d9d11e625f859e19970028d139b102 recorded all three build/test artifacts CURRENT/PRESENT before the owned three-crate clean. Fresh merged snapshot build is now running; compiler-selected core7/native8 actual controls and an independent fresh merged final remain required. This is not final acceptance yet.

Whole SB-SECTIONS remains partial and sidebar stays 9/16. check:changed bootstrap remains NOT GREEN. No constants changed.

@rynfar

rynfar commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

Finite #333 / PR #336 accepted after independent fresh merged proof.

Matched candidate b8f5dec2f112c113728752c2a075cb9522d9f21d merged as 4412b37c9264243d32f4482ea9f7123d8af06299, tree 258bb27de855af9dbd79534dc39f3f77a76dfe23, parent 7060b3d610dd61a12066892709690b674521d9fa. MAIN has matching 572 Rust source hashes and ledger 45932f950386be0dabc513a0d59798500c7d6d46f907cede61e0c5d4ce0f70fe and is clean.

Tests first and corrected whole actor test: see the PR's recorded failure/correction history. Candidate required gates all passed; check:changed bootstrap is explicitly NOT GREEN. Fresh merged proof followed independent candidate CURRENT artifact custody and an owned three-crate clean: snapshot build, fresh=false compiler JSON for MAIN core/native, 7 core and 8 native exact controls all passed once, with distinct initially empty native homes.

Independent fresh merged FINAL 61373ac8161a533a9b1558a0b4a33043339c377189db285b6e42baaca0c38486 accepted the finite fix with all three current artifacts directly hashed twice, exact merged identity/source/ledger, all current logs, and meaningful fresh controls. No blocking findings. The finite issue may close; whole SB-SECTIONS stays partial.

No whole SECTIONS credit; sidebar 9/16. 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