Repository navigation
fix(native): release collapsed Settled page consumers - #317
Conversation
e389cb3 to
6bde788
Compare
|
Rebased candidate Required 1356 default tests, strict workspace/all-target Clippy and theme/intake/conformance pass. Normal app build is running. Snapshot build and compiler-selected whole actual collapse/held-reply/snapshot/reopen case have not run yet; no runtime GREEN is claimed. The intended baseline mount failure remains recorded. No merge until those pass and independent final candidate acceptance, then fresh meaningful merged proof. SB-SECTIONS stays partial; no D abandoned-Pending, scope-tail or separate local-runtime credit. No constants changed; formatting RED exception remains. |
|
All required candidate gates and both app builds pass at Merge is blocked. The next step is diagnostic-only markers around the test's existing positive milestones to locate the missing wake/await; no production patch, timeout increase or relaxed assertion is authorized from this result. Exact compiler artifact, source hashes, binary hashes and actual JOIN are retained. #318 is a separate test-first current-grant/Pending regression and does not justify changing this test. SB-SECTIONS remains partial; sidebar stays 9/16. No constants changed. |
|
The diagnostic localized the earlier parking failure to the first reopen admission, not collapse cleanup. The real full page and original collapse mount-None assertion pass; after reopen, wanted depth is retained but A test-only assertion before the existing request await now produces the intended immediate failure: The next narrowly released proposal separates increasing wanted depth from dispatching already-wanted work in the existing local/scoped growth paths. It must preserve shared-highest-frontier eligibility, current grants, collapse cancellation and the whole held-old-reply/snapshot/reopen tail. No production fix has been applied yet; merge remains blocked. No timeout or constant changes. |
|
Matched-SHA squash merge completed: candidate Fresh merged snapshot build is running. Compiler-selected fresh merged whole collapse/held-reply/snapshot/reopen proof and frontier control, new binary/source custody and independent final review are still required before formal finite closure. SB-SECTIONS stays partial; sidebar stays 9/16. No #318/Pending, scope-tail, inbox/attention, local-runtime or wire-cancellation claims. No constants changed. |
|
Finite #314 accepted after matched-SHA squash: This proves the page consumer releases its loaded page mount on collapse, retained wanted depth dispatches on reopen, cancelled/held old replies do not affect the fresh page, another family mount survives, an authoritative snapshot while collapsed does not replay the hidden page, and the final reopen succeeds. Reopen proof includes a separate intended immediate Ready != Pending regression failure before the minimal two-function fix; no timeout increase or forced Shell event was used. Final merged independent approval SHA256 SB-SECTIONS remains partial; sidebar remains 9/16. This does not claim scope/filter invalidation, #318 abandoned Pending, inbox/attention projection, local shelf runtime, cancellation of an already-spawned wire RPC, AppKit/AX/live-provider/performance behavior. No constants changed. Proof: |
Problem
Collapsing the fleet Settled shelf leaves its older-page consumer mounted, so hidden page data and reads can survive the shelf's lifetime.
Fix
Own one page-consumer task, drop it when Settled collapses, unmount only its page rows, and keep requested depth for reopening. Suspend before sidebar derivation and gate both local/scoped page admission before setting Pending. On reopen, separate recording more wanted depth from dispatching already-wanted work under the same highest-frontier eligibility; next_request stays the admission authority. Cancel the consumer, not the already-sent wire request. Preserve independent family/search mounts.
Closes #314. SB-SECTIONS stays partial; scope-tail reset, abandoned Pending retirement, inbox history and attention rollup are separate.
Verification
Some(0) != Noneafter a real full 25-row page, Shell application and production collapse.6aff23d20b617611ae9bdb1f1ede229e7d98b7d6, tree9ce88df9d988f25527462d543c9a6b8f79ecf749, has independent whole-diff source approval (SHA2566f0b584d02a6067b8d7f5600699c9252ff31e5679520a83229c65b7949c2bfdf).Model: GPT-6.1 Sol / Codex. Harness: Prime Agent.
Reopen regression proof
The first extended runtime attempt hit the toolkit parking ceiling because reopen never dispatched the retained wanted page. Diagnostic-only markers located that await. A direct test-only Pending assertion then failed immediately (Ready != Pending) before any fix. The reviewed two-function correction passes the entire unchanged held-reply/snapshot tail and existing frontier control. No timeout increase, forced Shell event, wanted-depth reset, extra cache/epoch or relaxed assertion. #318 is a separate admitted-page grant-refusal test and is not included here.