Skip to content

fix(native): filter sidebar threads by logical project - #270

Merged
rynfar merged 3 commits into
nativefrom
nw/269-project-filter
Nov 5, 2026
Merged

rynfar merged 3 commits into
nativefrom
nw/269-project-filter

Conversation

@rynfar

@rynfar rynfar commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

The native sidebar thread menu could not filter by a logical project, although the project popover already supported logical scopes. It now offers Filter by <group> and Show all projects, using the existing scope setter to replace or clear the scope across every checkout in that group.

The action retains its captured thread, logical members, grouping settings, environment, connection and generation. Activation rechecks readiness and the client's current operate grant; missing, archived, replaced, reconnected or regrouped targets fail closed. The header keeps its separate menu without this entry. Sidebar Find remains absent, matching current web Sidebar.

The only client addition is the explicitly authorized default-off in-memory test fixture. It uses normal ClientHandle grant/generation watch receivers and an observable command queue, with no supervisor or network task. Normal constructors and transport/auth logic are byte-identical outside that gated insertion.

Validation at 030062b6acc86bc87d54a4d74465bd82a6808bbe:

  • Compiled behavioral RED on the original menu: actual activation retained the old scope instead of selecting both checkouts; subsequent GREEN through the production menu and scope setter.
  • Strict workspace/all-target Clippy passed. One default workspace test run: 1,410 passed. Three named snapshot-only integration cases passed, covering replacement/clear, model/selection lifecycle, header omission, keyboard/dismissal, current watch-grant revocation and 24 stale/denied target scenarios; local actions queued no commands or visits in the synthetic fixture.
  • Theme check, all 42 parity tests, scoped client-runtime conformance, normal build and private snapshot build passed. Default/snapshot feature graphs confirm test-support is opt-in.
  • Offscreen before/after and scoped/reversed menu captures; every app launch used the joined/hash-verified private snapshot binary, a throwaway copied14658 home omitting last-thread, an empty separate T3CODE_HOME, and --new-thread. No real thread was selected or provider turn sent.

Local evidence (not uploaded or committed):

  • /private/tmp/native269-b56-evidence/before-menu.png
  • /private/tmp/native269-b56-evidence/after-menu.png
  • /private/tmp/native269-b56-evidence/after-selected.png
  • /private/tmp/native269-b56-evidence/after-cleared.png
  • /private/tmp/native269-b56-evidence/REPORT.md and INDEX.json contain source snapshots, untruncated raw logs, argv/PIDs/JOIN receipts and build hashes.

Formatter limitation: whole-file Rust checks remain red, including touched/new surrounding lines in the mixed formatting, and the ledger formatter remains red. New standalone helper/fixture/test blocks and diff whitespace checks pass. The first commit hook reformatted unrelated ledger rows; a separate corrective commit restored them with that hook disabled for the correction. All 130 other rows, the five accepted sidebar rows and UPSTREAM remain byte-identical.

This is one SB-MENU slice: status remains partial, sidebar stays 5/16 and no new row is accepted. Remaining menu work and #242/#185/#100/#221/#262 stay open. Simultaneous multi-environment grouping, relay/multi-device behavior, real reduced-grant mutation, broad performance, historical #185/known202/P3 duplicate issues and #262 core/row fixes are outside this proof. No server/protocol/settings changes or broader runtime/dependency acceptance is claimed.

Closes #269.

Built with GPT-6.1 Sol in Codex.

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