Skip to content

fix(native): honor the saved Working section preference - #305

Merged
rynfar merged 2 commits into
nativefrom
nw/304-working-shelf
Nov 6, 2026
Merged

rynfar merged 2 commits into
nativefrom
nw/304-working-shelf

Conversation

@rynfar

@rynfar rynfar commented Nov 6, 2026

Copy link
Copy Markdown
Owner

Problem

The native sidebar ignored the saved Working section preference. Turning it off did not move working threads into Active until an unrelated rebuild, and startup used the default instead of the saved value.

Fix

Read the existing preference during sidebar rebuilds and invalidate the cached sidebar when its effective value changes, including committed settings patches. No new setting, schema, wire behavior, or constants.

Proof

  • Actual failing saved-false regression, then the same test passes with the two-line fix.
  • Saved load, toggle/reset, committed patches, local/scoped sections, ordering, folder suppression, and cached-sidebar invalidation covered.
  • Synthetic real SidebarPane + Settings switch: observed-coordinate mouse off/on, immediate Active↔Working, same keys/route, zero mutation RPCs, restored isolated preference. Seven captures retained locally; no live-server, native Input/NSView, relay, or provider claim.
  • Independent Sol 6.1 source review: APPROVE at 10b4ccc28feb9d9faa4429f98f2861ae1ec5a9e4 / tree 2899339b466bb26192980c7ae8978fcf8da37c68.
  • Required strict native Clippy, 1,421 default workspace tests, ordinary build, theme check, parity intake, and conformance generator: pass.
  • All 109 snapshot tests pass, including the existing keyboard-order case that review caught and root first proved failing. Its authoritative preference setup is corrected without weakening assertions.
  • Fresh source/main/compiler-selected test-artifact custody; seven actual-switch captures and five cached connected/disconnected/disabled/restored captures pass and were directly inspected. Existing cached-row fixture now checks the doc, effective flag, and Working partition.
  • Extra --features snapshot strict Clippy fails on pre-existing unchanged test-support Command::Fixture large-enum warning; no suppression or source expansion. This is separate from the passing required factory command.

SB-SECTIONS stays partial; sidebar acceptance stays 8/16. Formatting remains the explicitly approved exception, including touched Rust and ledger; commit uses a one-command hook bypass without changing hook configuration. Evidence is local only.

Closes #304 only.

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

@rynfar

rynfar commented Nov 6, 2026

Copy link
Copy Markdown
Owner Author

Independent source review: APPROVE by GPT-6.1 Sol/Codex for exact head 10b4ccc28feb9d9faa4429f98f2861ae1ec5a9e4 / tree 2899339b466bb26192980c7ae8978fcf8da37c68. R1 caught two stale snapshot fixture setups; root proved the keyboard case RED first, corrected authoritative preferences without weakening assertions, and R2 approved the unchanged production fix plus revised fixtures.

Primary final verification: required strict native Clippy, 1,421 default tests, ordinary build, theme/intake/conformance checks, and all 109 snapshot tests pass. Fresh main/source/compiler-selected artifact custody; seven real Settings switch and five cached/disconnected/disabled/restored frames pass and were inspected. Review/captures remain local under the approved evidence boundary.

Extra snapshot-feature strict Clippy remains failed on unchanged test-support Command::Fixture large-enum warning; no suppression. Formatting remains the approved RED exception. No live server/grant/relay/provider, real window, native Input/NSView or measured-performance claim. SB-SECTIONS partial/sidebar8/16 unchanged. Exact-head merge and fresh merged proof still pending.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant