Skip to content

fix(native): reset Settled tail when effective project scope changes #320

Closed

Description

@rynfar

Problem

The Settled tail keeps its expanded row limit when the effective chosen project scope changes. Current web resets that limit to the existing initial count (10), in both open and collapsed shelves. Native keeps 35 after Show more. This finite issue is limited to the watched-environment sidebar (including the primary environment only when it has a watched entry).

Finite scope

Reset only the visible Settled tail for a changed effective chosen project scope. Evaluate the effective resolved key after route reveal/grouping changes, not just setter input. The watched-environment model is authoritative whenever that collection is nonempty. The legacy local-only fallback and cross-mode carryover are explicitly deferred to separate test-first work; do not reset from the preliminary local derivation, which shares the row limit and runs before the watched model. No new project-filter RPC. Preserve same-scope growth/collapse and all accepted paging and deletion behavior.

This issue does not establish legacy local-only fallback or cross-mode tail behavior. It does not own per-environment page-consumer/mount/task cancellation when the sorted physical project scope changes. That separate gap requires an independent actual regression test. It does not own inbox history, attention rollup or whole SB-SECTIONS acceptance.

Tests first and acceptance

  • Add the smallest actual actor case: 35 settled shell rows in each of two real project groups, no older page fixture or selected route widening; production scope A/open/Show more reaches 35, then scope B must immediately use the initial count.
  • Run the actual intended 35 != 10 assertion failure before any production fix. Keep a collapsed scope-change follow-on and same-scope controls in the same case.
  • Use the existing initial-count constant unchanged. No sleeps, timeouts, missing-RPC waits or new test hooks.
  • Independent exact-head review, required native tests/Clippy/build/theme/intake/conformance, matched merge and fresh meaningful merged proof.

SB-SECTIONS remains partial and sidebar remains 9/16. Native-only; no live provider/server/auth, AppKit/AX/clipboard or performance claim. Formatting RED exception remains. No constants change.

Activity

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

    @rynfar
    OwnerAuthor

    Tests-first proof: the exact compiler-selected native actor test fails at the intended assertion, not during compilation or an RPC wait. One test selected, 124 filtered, exit 101, omitted_rows.rs:743:13: current visible tail 35, expected existing initial count 10 after real scope A/open/Show more -> scope B. Both project groups contain 35 settled shell rows; selected route is absent. No older-page fixture, sleeps or changed constants.

    The later collapsed-scope assertions have not run yet. No production fix is applied. Scope is now explicitly the watched-environment visible model only; legacy local fallback, cross-mode behavior and per-owner physical page lifecycle are separate work.

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

    @rynfar
    OwnerAuthor

    Accepted finite watched-environment tail slice after PR321 matched merge and fresh four-case proof; final independent review 53f4fbe2809998c0cd9dcb23d8af6927f11cb3ea14f6b648f38662e11d197c02. SB-SECTIONS remains partial; sidebar9/16.

  5. removed
    status:review
    on Nov 6, 2026
  6. rynfar commented on Nov 6, 2026

    @rynfar
    OwnerAuthor

    #320 finite slice accepted after fresh merged proof.

    PR #321 merged as 4e9d0a4a56ed4727c06f31d2002ba5dbb47409f3, tree b8f23f7ec0474340fd335f5d73238d9e03256c49, exactly matching the independently reviewed candidate. Candidate gates passed: 1,356 core/client tests, strict workspace/all-target Clippy, normal and snapshot builds, theme, intake and conformance.

    Fresh main snapshot build and compiler-selected native test binary passed the same four exact cases: open/collapsed chosen-scope tail reset, collapse/reopen page lifetime, grant-refusal explicit retry and highest-frontier handoff. Each selected one test (122 filtered). Main is clean; source hashes match the candidate. Both fresh present binaries were independently reviewed before any later clean.

    Scope stays watched-environment visible tail only. Legacy local fallback, cross-mode carryover and physical per-owner page-scope lifetime remain separate. No dedicated route-reveal runtime, AppKit/AX, live-provider, wire-cancellation or performance claim. No constants changed. Whole SB-SECTIONS remains partial; sidebar stays 9/16.

    Final merged independent review SHA256: 53f4fbe2809998c0cd9dcb23d8af6927f11cb3ea14f6b648f38662e11d197c02.

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