Skip to content

Native sidebar ignores the Working shelf preference #304

Closed

Description

@rynfar

Problem

The existing Settings → General Working shelf preference is persisted but never consumed by the production sidebar. ClientSettingsDoc::working_shelf() is read only by the Settings control; SidebarSettings::working_shelf_enabled remains its true default. settings/store.rs::apply_client rebuilds on grouping/sort/folder changes, not on the effective Working setting. A saved false value, toggle, reset or committed patch therefore does not change normal sidebar partitioning.

Confirmed against current native 95d31efe799ce41d3dabbd02e522de04c01ded2d and current web Sidebar.tsx/Sidebar.logic.ts. This is one finite SB-SECTIONS slice under #242; SB-SECTIONS remains partial and sidebar acceptance stays8/16.

Scope

  • app sidebar/controller.rs, settings/store.rs, their existing test modules; narrow cfg(snapshot,test) fixture only if needed for actual control proof.
  • Read the existing preference during sidebar derivation, including initial load. Rebuild/emit appropriate sidebar invalidation when its effective value changes, including committed ThemePatch receipts as well as WorkingShelf toggle/reset.
  • Reuse current inbox/partition/model behavior and folder suppression. No core/client/protocol/schema/new settings store, deletion, paging, palette/new-thread or renderer redesign.
  • Extend an existing real app settings fixture with tests first: committed false before rebuild, true/false toggle/reset/committed patch with unchanged shell; normal Active/Working rows and manual ordering; folder mode still suppresses Working for both values. Do not manually assign the derived field to make the test pass.

Acceptance

  • Actual assertion RED before minimal fix, unchanged assertions GREEN after.
  • Load/toggle/reset/committed receipt update actual sidebar immediately; existing timer/inbox and default normal/folder behavior preserved.
  • Independent exact-head source review, serialized native strict/default/build/drift gates and one meaningful synthetic Settings-control pass.
  • Ledger SB-SECTIONS stays partial; other rows/UPSTREAM unchanged. Merge and fresh merged proof before closing this slice.

Safety: same factory constraints; synthetic actor/production-view evidence only. No live server writes/auth discovery/refresh/paid turns/clipboard/real windows/installs/clones/unowned signals. Root alone executes cargo/render using its existing target; workers edit only allocated files and freeze manifests. Formatting remains RED under explicit human exception; one-command hook bypass only, config unchanged. Evidence local. Scope audit: /private/tmp/native301-external-proof-01a1af49/grouping-next-sections-audit.md.

Activity

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

    @rynfar
    OwnerAuthor

    Accepted finite Working preference slice via PR #305, squash 26f75e93adaec83f27b0be813c104f2582c81893 / tree 2899339b466bb26192980c7ae8978fcf8da37c68. Exact merged tree matches independently approved head 10b4ccc28feb9d9faa4429f98f2861ae1ec5a9e4. The two-line fix reads the existing saved preference and invalidates cached local/scoped sidebar models after effective preference edits/committed patches.

    Actual saved-false regression RED→unchanged-test GREEN. Review additionally caught a stale keyboard test setup; root proved its exact assertion RED, corrected only the authoritative preference fixtures, and all 109 snapshot tests pass on both final and freshly built merged source. Required strict native Clippy, 1,421 default tests, ordinary build, theme/intake/conformance pass. Fresh merged source/main/compiler-selected libtest custody plus actual Settings off/on seven frames and cached connected/disconnected/disabled/restored five frames pass; all12 directly inspected. Same rows/route; no mutation RPCs. Evidence stays local under the approved boundary.

    Only #304 is complete. SB-SECTIONS remains partial and sidebar stays 8/16; this does not accept scope-tail/paging, config-loaded classification, scoped-deletion, or project-menu gaps. No constants changed. Synthetic proof does not establish native Input/NSView, real windows/live server/grants/relay/provider or measured performance. Formatting remains the approved RED exception; extra snapshot-feature strict Clippy remains RED101 on unchanged test-support Fixture large-enum code, separate from required Clippy success.

    Model/harness: GPT-6.1 Meridian / Prime Agent; independent GPT-6.1 Sol / Codex source review.

  3. removed
    status:in-progress
    on Nov 6, 2026
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