Skip to content

fix(native): keep scoped sidebar range selection anchors current #328

Closed

Description

@rynfar

Problem

The scoped sidebar click consumer does not set its range anchor when a platform-modifier click adds a thread. Shift-click with no usable anchor does nothing, and clearing scoped selection leaves its anchor behind. The existing local core selector already implements the web behavior.

Bounded acceptance

Extend the existing actual GPUI scoped-order/Undo case with platform-modifier then Shift, a missing anchor, and clear. Use the actual composite visible order, including equal raw thread ids on different owners. Preserve route, Undo, folder ordering, drag behavior, and zero RPC writes.

Fix only the scoped consumer's anchor/toggle/range/clear behavior. Do not introduce a third selection model or bundle bulk action capability/deletion changes. Exact source review and an actual failing consumer test are required before the production fix.

This does not complete SB-SELECT or prove physical AppKit mouse/keyboard/AX behavior. Parent #242. Sidebar remains 9/16. No constants changed.

Activity

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

    @rynfar
    OwnerAuthor

    Runtime proof update: the first run stopped at an old six-row fixture precondition because the reused owned test home had a persisted repo project scope. No production or test assertion was changed. Running the same compiler-selected binary and exact reviewed source with a fresh, empty owned sandbox home passed that precondition and reproduced the intended failure at thread_menu_tests.rs:863: modifier-add then Shift selected only one scoped key instead of all six visible scoped keys. One failed test, 125 filtered. Independent classification and artifact custody review are pending. Later clear/fallback/folder assertions have not yet run. No constants changed.

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

    @rynfar
    OwnerAuthor

    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.

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

    @rynfar
    OwnerAuthor

    Closing this finite fix after accepted PR #330, matched merge 05960f319d50a2b8c27b40cb26393776e97ed6fb and independent fresh merged proof a735384b. The acceptance comment above records the evidence and limits. The broader sidebar row remains partial under #242; closing this issue does not add whole-row credit. Constants changed: none.

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