Skip to content

fix(native): anchor scoped sidebar range selections - #330

Merged
rynfar merged 1 commit into
nativefrom
nw/328-selection-anchor
Nov 7, 2026
Merged

rynfar merged 1 commit into
nativefrom
nw/328-selection-anchor

Conversation

@rynfar

@rynfar rynfar commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

Problem

Scoped sidebar modifier-click did not set the range anchor. Shift-click without a usable anchor selected nothing, and explicit selection clear left the scoped anchor behind.

Fix

Match the current web selection store in the existing scoped click consumer: additions anchor, removals keep the anchor, an unavailable anchor falls back to the target, and explicit clear removes both selection and anchor. Preserve the existing selection-clear return value and local selection behavior.

Extend the existing actual GPUI scoped-order/Undo test. It uses the current composite visible order, including equal raw ids in separate environments, and preserves the original folder/reorder/route/no-RPC assertions.

Closes #328. Parent #242. SB-SELECT remains partial; sidebar acceptance remains 9/16. Controller scope/remove lifecycle, action-specific bulk subsets/clear behavior, and whole interaction proof are separate follow-ups. No server, protocol, permission, constants, or layout changes.

Evidence

  • Tests first: the same compiler-selected binary in a fresh owned sandbox failed at thread_menu_tests.rs:863: one selected scoped key versus all six visible scoped keys. One failed test, 125 filtered. Independent exact-source and intended-failure/artifact-custody reviews completed.
  • The first run had stopped at an old fixture precondition because a reused owned sandbox had a persisted project filter. The exact same source/binary passed that precondition in the fresh sandbox; no assertion or fixture count was weakened.
  • Production exact-source review and the whole existing GPUI case passed in the combined lane. Exact-head source/context review passed for candidate 10c0d68d11bf6d81b19c13b39e92f7fafb12f638. All 1,356 core/client tests, strict workspace/all-target Clippy, normal build, theme/intake/conformance and diff checks passed. Snapshot build and compiler-selected candidate runtime checks passed: seven focused core cases (each one passed, 1,249 filtered) and six native cases including selection and paging (each one passed, 123 filtered). Each native case used a separate empty owned sandbox home. Source/ledger hashes are stable and the checkout is clean. Independent candidate final review passed (6734d375). Matched-head merge is 05960f319d50a2b8c27b40cb26393776e97ed6fb with the exact reviewed tree. Fresh merged snapshot build, seven core cases and six native cases passed again; independent merged final review (a735384b) confirmed all three exact artifacts present before the next build. This finite fix is accepted; whole SB-SELECT stays partial.
  • check:changed failed before checks: the existing desktop task config cannot be parsed (also reproduced on unchanged main). Direct invocation cannot resolve installed @effect/platform-node. No dependency install or unrelated tooling edits were made. These failures are not reported as green.
  • Proof is actual offscreen GPUI state-consumer behavior. It is not physical AppKit input, AX, a live provider run, or a performance measurement.

Model/harness: GPT-5.3 Codex via Prime Agent; independent Sol/Codex review.

@rynfar

rynfar commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

Exact-head independent source/context review is complete for 10c0d68d11bf6d81b19c13b39e92f7fafb12f638 (tree 7ba329b9d3c8d75611c632d8bf6484a324a6888f). The finite scoped anchor fix and partial ledger entry are approved; this is not whole SB-SELECT acceptance.

Theme, parity-intake, conformance and diff checks passed. Core/client tests are running. Strict Clippy, normal/snapshot builds and exact compiler-selected runtime checks still must pass before final artifact review or merge.

check:changed did not run: its wrapper cannot parse the existing desktop task config; direct invocation cannot resolve the installed @effect/platform-node package. No dependency install or unrelated tooling edits were made. Those failures are not reported as green.

@rynfar

rynfar commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

Candidate 10c0d68d11bf6d81b19c13b39e92f7fafb12f638: all 1,356 core/client tests passed (98 client, 1,250 core, 8 conformance). Strict workspace/all-target Clippy is now running. Source/ledger hashes remain stable. The three native Node checks and exact-head source review already passed. No merge yet; builds, compiler-selected runtime checks and final artifact review remain.

@rynfar
rynfar merged commit 05960f3 into native Nov 7, 2026
@rynfar

rynfar commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

PR #330 merged with --match-head-commit 10c0d68d11bf6d81b19c13b39e92f7fafb12f638 as 05960f319d50a2b8c27b40cb26393776e97ed6fb. The merged tree exactly matches reviewed candidate 7ba329b9d3c8d75611c632d8bf6484a324a6888f; all 572 Rust source hashes and the partial ledger hash match. Candidate final review confirmed all three artifacts present before cleanup. Fresh merged snapshot build passed; fresh core/native runtime proof is still pending. No finite acceptance or whole-row increment yet.

@rynfar

rynfar commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

Fresh merged proof is green: snapshot build, seven exact core cases (one pass each, 1,249 filtered) and six exact native cases (one pass each, 123 filtered), including the complete scoped selection case and five paging controls. Each native case used a separate empty owned sandbox home. Merged source/ledger hashes match the reviewed candidate and main is clean. Independent fresh artifact review is pending; no whole-row acceptance is claimed.

@rynfar

rynfar commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

Finite scoped-click anchor fix #328 / PR #330 is accepted after matched merge 05960f319d50a2b8c27b40cb26393776e97ed6fb (tree 7ba329b9d3c8d75611c632d8bf6484a324a6888f), all required native candidate gates, and fresh merged proof. Independent final review a735384bd8abb8df95f2610c1b8d0e0a2bba611b93c22cbff2b69231d64ba15a confirmed all three exact artifacts present before the next build.

Tests first reproduced modifier-add then Shift selecting one key instead of all six composite visible scoped keys. The complete existing actual GPUI case now passes in both normal/folder modes, including clear/no-anchor/missing-anchor/route checks and original Undo/keyboard/drag/no-RPC controls. Fresh merged seven core cases and six native cases all selected one test and passed. Each native run used a separate empty owned sandbox home. No assertion/count/date or constants changed.

SB-SELECT remains partial; sidebar acceptance stays 9/16. Controller scope/reveal/remove anchor lifecycle, action-specific bulk subsets/clear semantics, and integrated row/Escape/menu/focus proof remain. No physical AppKit/AX/input, live-provider, restart or performance claim. check:changed bootstrap failures and the approved formatting exception remain explicitly separate, not green.

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