Skip to content

fix(native): clear range anchor on explicit project scope changes - #334

Merged
rynfar merged 2 commits into
nativefrom
nw/331-scope-clear
Nov 7, 2026
Merged

rynfar merged 2 commits into
nativefrom
nw/331-scope-clear

Conversation

@rynfar

@rynfar rynfar commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

Problem

Changing the scoped project filter clears selected rows but keeps the previous range anchor. A later Shift selection can still refer to that old scope. The web setter clears both.

Fix

Clear the scoped anchor alongside the explicit setter's existing scoped-selection clear. Keep preference saving, model rebuild and Shell notification unchanged. Route reveal, selected-key removal, bulk-action subsets and local selection are separate paths.

The existing test calls the real preference writer. Declare that mixed-I/O test boundary and finish prior writer submissions before teardown using the existing FIFO completion barrier. Production persistence and every selection assertion stay unchanged.

Closes #331. Parent #242. SB-SELECT stays partial, sidebar 9/16.

Verification

  • Tests first: actual setter fails at the appended anchor assertion after all prior controls. Independent RED 8e912523.
  • The first candidate exposed a real GPUI test-scheduler external-writer failure, not an anchor assertion. It was NOT GREEN and was not retried or merged. Independent failure/custody 43c6273f / ea868b6d retained.
  • Corrected test-only source 25b2e49f, independent review 23fd6cb4; whole case passed including original controls and writer completion (b2e4f861). This explicitly allows real I/O; it is not a deterministic-scheduling or global-quiescence claim. The original no-RPC assertion precedes the terminal cleanup.
  • Current candidate 5fe489804271a4c4d79eabdc6fe51ba9dc52f050, tree 27b401621cfa5e7bb723a3c82bd47d632c74f90c: exact-head source/context review 8ca6485a; all 1,356 core/client tests, strict workspace/all-target Clippy, normal and snapshot builds, theme/intake/conformance/diff passed. Compiler-selected core7/native7 controls each passed once, with fresh distinct owned homes for native runs.
  • Matched-head merged as 7060b3d610dd61a12066892709690b674521d9fa with the exact reviewed tree. Fresh merged snapshot and compiler-selected core7/native7 controls all passed. Independent final c43c72b85abdfaefd1fe017ed40e6dde58f55de3d0c8dae9d87cadcab08ddc53 verified CURRENT/PRESENT artifacts, source572, ledger and git cleanliness before further builds. Finite fix(native): clear selection anchor on explicit project scope changes #331 is accepted; whole SB-SELECT remains partial.
  • vp run check:changed fails before checks at desktop UserTaskDefinition task-config bootstrap: NOT GREEN. No install or unrelated repair. The approved formatting exception remains separate.
  • No constants or assertions changed. No physical AppKit/AX/input, live-provider, restart, performance or whole-row claim.

Model and harness: Prime Agent; independent Sol/Codex review.

@rynfar

rynfar commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

Independent exact-head source/context review approved 6bb616f1f040588e8f45744b12600e34f7ce9f04 / tree 50f4e216ef4dc56bb4140c6327cd203af5ce921d with no findings (62511c61552462373097e8fc68babd4c57696072164d39c2f7a73d9cfea3c4a8). It verified the exact three-file diff, stable 572 Rust source hashes, unchanged test controls and the partial ledger row. The one-line setter cleanup matches the web's unconditional explicit-scope selection clear.

Required native gates remain in progress. Theme, intake, conformance and diff checks passed; core/client tests are still running. vp run check:changed failed before checks on the known desktop UserTaskDefinition task-config bootstrap, not green. No installs or unrelated repair. No whole-row or physical-input claim; sidebar9/16.

@rynfar

rynfar commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

Matched-head merged as 7060b3d610dd61a12066892709690b674521d9fa, exact candidate tree 27b401621cfa5e7bb723a3c82bd47d632c74f90c. Independent candidate final cc061944 recorded all three artifacts PRESENT before the owned-crate clean. Fresh merged snapshot/core7/native7 verification is now running; no finite merged acceptance yet. SB-SELECT remains partial (9/16 sidebar).

@rynfar

rynfar commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

Finite #331 accepted after independent fresh merged final review.

PR #334 matched candidate 5fe489804271a4c4d79eabdc6fe51ba9dc52f050 and merged as 7060b3d610dd61a12066892709690b674521d9fa, tree 27b401621cfa5e7bb723a3c82bd47d632c74f90c. The explicit scoped project setter now clears the range anchor alongside selected keys. No route-reveal, removal or action-subset behavior is included.

Tests first: intended actual anchor RED 8e912523. The first candidate's real-writer scheduler failure remains recorded as NOT GREEN (43c6273f / ea868b6d); it was not retried or merged. Corrected test source 25b2e49f explicitly allows real I/O and waits for previously queued preference writes before teardown. Original assertions and production persistence remain unchanged.

Updated candidate passed 1,356 core/client tests, strict Clippy, normal/snapshot builds, theme/intake/conformance/diff and compiler-selected core7/native7 controls. Independent exact-head/final source reviews 8ca6485a / cc061944 recorded current artifact custody before the owned-crate clean. Fresh merged snapshot plus compiler-selected core7/native7 controls each passed once with distinct initially empty native homes. Exact merged source572, ledger and git cleanliness verified.

Independent fresh merged final c43c72b85abdfaefd1fe017ed40e6dde58f55de3d0c8dae9d87cadcab08ddc53 recorded all three artifacts CURRENT/PRESENT before further builds.

SB-SELECT remains partial; sidebar stays 9/16. #335 owns coherent removal/reveal lifecycle. Action-specific bulk policy and integrated keyboard/menu/focus proof remain. check:changed bootstrap is NOT GREEN. No constants changed. No deterministic timing, post-drain global-wire silence, physical window/input, provider or whole-row claim.

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