Skip to content

fix(native): retire scoped Settled pages refused before dispatch #340

Closed

Description

@rynfar

Problem

A scoped Settled page attempt can remain Pending after its real consumer finishes before dispatch because the captured destination or live READ preflight refuses it. Restoring READ leaves that attempt stuck instead of allowing an explicit retry. This is one combined early-refusal retirement unit, separate from the accepted reply-time refusal in #318.

First proof

Extend the existing #318 actor-backed test with the independently reviewed 64-line insertion. Preserve the full previous test and every assertion. Use real collapse/reopen to admit Pending, revoke the real shared READ watch in that same synchronous UI update before the GPUI consumer can poll, then join that exact consumer and the exact owner's denied Shell acknowledgement. Check that no page request was dispatched and the same admitted attempt is no longer Pending. Do not attribute the actor-resolution and preflight branches individually.

Only that completed-consumer Pending assertion is intended RED. Earlier setup, existing #318, compiler, selector, owner, request or acknowledgement failures must be retained and classified, not retried or called the intended failure. No production change before actual RED and independent source/current-artifact review.

Finite acceptance after an observed defect

Retire only the still-current owner/scope/generation/frontier/Pending attempt. Preserve stale-attempt rejection and existing reply-time behavior. Restored READ leaves Failed with no automatic retry; real Show more sends the same payload, and a joined valid reply becomes Ready. Keep all previous assertions, use one layer, and avoid new hooks, registry, retry loops or protocol changes.

Require exact-head review, native gates, matched-head merge and fresh meaningful merged proof. SB-SECTIONS stays partial; this does not cover mounted attention, Pane labels/rendering or whole section acceptance.

PR #339 is now finite accepted at merge 1e8b985a with fresh merged FINAL 571c37f3; merged source refresh 2087b488 approves exact unchanged test applicability. Root will admit only one isolated test-first execution after verifying that worktree’s input hashes and fresh empty runtime home. Window-free/no-input only. No production constants, sleeps, polling, manual clock changes, absent-RPC wait or timeout changes. Parent #242. Sidebar remains 9/16.

Activity

  1. added
    native:bug
    status:in-progress
    on Nov 7, 2026
  2. rynfar commented on Nov 7, 2026

    @rynfar
    OwnerAuthor

    First isolated test-only execution failed at the intended finite assertion, omitted_rows.rs:739: after the actual page consumer finished before dispatch and the exact owner's READ denial reached the UI, the page was still Pending. Exit 101, exactly one failed test and 126 filtered. The existing #318 path, real collapse/reopen Pending setup, consumer join, UI denial acknowledgement and finite no-page-request assertions all preceded this failure.

    Independent failure/current-artifact classification is pending. The runtime proof and proper owning compiler/list records are frozen. No production code changed, no retry ran, and no fix is proposed yet. Assertions after line 739, restoration/explicit-retry success and teardown remain masked; no credit for those tails. This proves neither individual early-return branch; the witness covers combined destination-resolution OR live-preflight refusal.

    Sidebar stays 9/16. Constants changed: none.

  3. rynfar commented on Nov 7, 2026

    @rynfar
    OwnerAuthor

    Independent review cad4797a837cdcafd1772a5d5ea092c0e06c2ae30ba9ef4d75ccad42f5fb23a1 confirmed the intended first RED and directly verified the current failing native executable, all 572 source hashes, owning compiler/list/actual records and frozen archive.

    The finite failure is a completed predispatch-refused consumer leaving Pending at line 739. It is not an earlier #318/setup or zero-selector failure. The specific destination-resolution versus live-preflight branch is unknown. The assertions after line 739 and restore/retry/teardown remain masked.

    A minimal external proposal is now allocated for the two early exits, with existing current-owner/scope/generation/frontier/Pending checks and explicit retry preserved. It must pass independent source review before root application. No production code changed or additional runtime ran. Sidebar stays 9/16; constants changed: none.

  4. rynfar commented on Nov 7, 2026

    @rynfar
    OwnerAuthor

    The minimal source-reviewed fix is committed in PR #341 at a9487a40f5b9c08180eb3cd49aa7f01bc3595cc3 (tree 533e0a2064b25ecb9868092fb5e464f50e806772).

    The first post-fix run of the unchanged test passed: 1 selected, 126 filtered, exit 0. Independent current-executable review 3b3b183d… confirmed the owning compiler JSON, exact selector, all 572 source hashes, preserved assertions and six frozen records/logs. The previously masked frontier/scope/empty-read/no-mount checks, restore-to-Failed, no automatic request, explicit retry with original payload, actual reply consumer join, Ready state and original teardown all completed. Teardown is the original stop-pump/drop/normal-return tail, not global shutdown or wire quiescence. Exact predispatch branch remains resolution OR preflight, not separate attribution.

    Theme, intake (42), conformance and this diff's whitespace check passed. Rust gates, exact-head review, matched merge and fresh merged proof are still required. check:changed remains not green: unrelated desktop UserTaskDefinition bootstrap failure before checks; no install or unrelated repair.

    SECTIONS remains partial; sidebar 9/16. Constants changed: none.

  5. added
    status:review
    and removed
    status:in-progress
    on Nov 7, 2026
  6. rynfar commented on Nov 7, 2026

    @rynfar
    OwnerAuthor

    Finite #340 accepted — whole SECTIONS remains partial

    PR #341 merged as c3c9d7523e75180add4fe0d59920fd6d33d15736, tree 533e0a2064b25ecb9868092fb5e464f50e806772, parent 1e8b985a63f6be42ca36a659baa42196248a6a34. The merge used exact reviewed head a9487a40f5b9c08180eb3cd49aa7f01bc3595cc3 and matches its tree.

    Tests first: the preserved isolated test-only run failed at the intended completed-consumer Pending assertion (one failed, 126 filtered, exit 101), independently confirmed by cad4797a…. The minimal fix and unchanged test passed source review, first post-fix continuation, exact-head whole SOURCE review 4dfe6dd3…, all seven required native gates (1,356 core/client tests, strict Clippy, both builds, theme/intake/conformance), eight core controls and eleven native controls. Candidate FINAL: 665d79aa….

    After independent pre-clean custody, MAIN rebuilt from the limited three-package clean. Fresh owning compiler JSON selected eight exact core and eleven exact native passes in new initially empty homes. Independent fresh merged FINAL 4b0f34b08918c9116d748bc5831ae17e5f570e4c36ab76ad7cc7e787cfc24b58 checked all three rebuilt executables directly (initial/final twice), all 572 source hashes, ledger, Git identities, 25 captured commands and 50 read-only hash-named records/logs. Full old and added refusal/retry assertions and their original teardown completed.

    Scope: completed predispatch resolution or live-preflight refusal retires only the still-matching Pending attempt and preserves explicit retry. This does not separately attribute both branches or prove every DestinationError, full cancellation, global quiescence, Pane labels or rendering. Existing owned-task cancellation is the lifecycle assumption. SECTIONS stays partial; sidebar 9/16.

    This patch's diffcheck passes. check:changed remains not green due to unrelated desktop UserTaskDefinition bootstrap before checks; historical timer EOF failure remains separate. No installs, unrelated repairs, assertion weakening or product constant changes.

    Receipt: sidebar-sections-predispatch340-pr341-merged-green-receipt.json (external proof). Constants changed: none.

  7. removed
    status:review
    on Nov 12, 2026
  8. rynfar commented on Nov 12, 2026

    @rynfar
    OwnerAuthor

    Closed via #341 (c3c9d7523e75180add4fe0d59920fd6d33d15736).

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    native:bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions