Skip to content

fix(native): retain Working grace while project scope hides a thread #326

Closed

Description

@rynfar

Problem

The scoped native sidebar observes Inbox history only after filtering to the chosen projects. Switching away removes the running thread's tracker state. If that same thread completes through an ordinary thread.updated event while hidden by project scope, returning before its Working exit grace ends shows Active immediately.

The web observes its admitted quiet thread input before project visibility filtering. This does not mean observing all raw, unauthorized, or tag-hidden threads.

Bounded acceptance

  • Extend the existing scoped core case. Use real project groups/preferences and ShellState.apply(ThreadUpdated), not a snapshot, a mocked callback, or a new clock.
  • Keep full environment owner, thread creation time, and placement unchanged. Scope-only changes without completion must not create a grace deadline.
  • Apply completion while B hides A. Returning to A before the completion-anchored deadline retains Working; the exact deadline changes it to Active.
  • Preserve hidden/admitted-owner boundaries, row alias ranking, and per-owner identity. Do not broaden archive/cache/listed behavior or merge alias histories for this fix.
  • Keep fix(native): retain Working grace across same-thread shell snapshots #324 snapshot/recreated-thread controls and existing paging behavior.

Tests-first behavioral failure is still to be executed. Fix only the proven project-scope observation boundary. No server/provider/UI changes, app timer-wake proof, or whole SB-SECTIONS credit. 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

    The new bounded core case reproduces the project-filter history defect: after a real thread.updated completion while project B hides A, returning to A before the completion-anchored grace deadline gives Active instead of Working. The existing snapshot and seeded-identity controls, real project groups/preferences, scope-only control, full owner equality, and execution-only thread change all pass before that assertion. The test selects exactly one case and fails at tests.rs:1617 (1 failed, 1249 filtered out). No production fix is applied yet; independent current-artifact classification is pending. Deadline/expiry assertions after the failure have not run.

  3. rynfar commented on Nov 7, 2026

    @rynfar
    OwnerAuthor

    The whole project-filter history case now passes, including the deadline anchored to completion while hidden and exact expiry, plus existing snapshot/recreated-thread controls. Local history, aliases/hidden rows/counts, quiet metadata, planner, and decoder controls also pass (seven exact one-test runs). Independent review verified the current core artifact and source. The fix will now be isolated for required full checks and exact-head review; no merge or whole-row acceptance is claimed. No constants changed.

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

    @rynfar
    OwnerAuthor

    Finite fix #326 is accepted after PR #327 matched-head squash merge f1dd7fbfd9df0741775381972344d15fbee44862 (tree 881c12dbd91c11245cc113be26e6f6f6ffdc0b41), required candidate gates, and fresh merged proof.

    All 1,356 core/client tests, strict workspace/all-target Clippy, normal/snapshot builds, and theme/intake/conformance pass. Fresh merged binaries pass seven exact core cases and five native paging controls, each selecting one test. Independent final review checked the current source, ledger, clean merged tree, and all three present artifact hashes. Final review SHA256: 730793cc4c222507b6fc5af7934e2b8ef245f83a9d25f97075e222d0dc172a1d.

    Per-owner admitted history now survives project filtering. The real completion observed while hidden anchors the grace deadline; returning does not restart it. Exact expiry, snapshot/recreated-thread, alias/hidden/count, and paging controls pass.

    This does not prove app timer wake, local fallback, every alias handoff, or whole SB-SECTIONS. Sidebar remains 9/16. No constants changed. Formatting remains the approved exception.

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

    @rynfar
    OwnerAuthor

    Closed via #327 (f1dd7fbfd9df0741775381972344d15fbee44862).

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