Skip to content

Native sidebar thread menu filters by logical project #269

Closed

Description

@rynfar

The sidebar thread menu hides its project filter even though native already builds logical project groups and scopes the sidebar. At native 5056be35, ContextMenu::open_for_thread sets project_filter: None; ThreadAction::FilterByProject falls through the controller's wildcard. Current web Sidebar.tsx supplies the non-archived logical group and toggles between that single group and all projects. This is one bounded SB-MENU slice of #242; the whole row stays partial.

Acceptance:

  • In the sidebar thread menu, show the current web label/order/icon: Filter by <logical group> or Show all projects when that group is selected. Omit it for missing/archived project groups. Reuse current native grouping settings, environment identity and membership; never filter only one physical checkout of a logical group.
  • Activating an inactive group replaces the scope with that one logical group; activating a selected group clears all project scope, matching web behavior even when multiple groups were selected. Use the existing scope setter so selection clearing and model/filter-button behavior stay coherent. No navigation, thread visit, provider turn, server write or settings write is needed.
  • Preserve entry-point differences: current web Sidebar supplies a project filter, while ChatHeader/useThreadActionMenu passes projectFilter: null. Keep the header menu without this sidebar-only entry. Current web Sidebar does NOT supply canFind; do not add Find to sidebar as an assumption from the older checklist.
  • Bind the captured thread/group/environment/connection. Vanished or archived groups, same-id replacement in another environment, reconnect/regroup changes and changed current operate grants must fail closed rather than acting on a different target. Preserve existing capability/operate gating and every unrelated menu action.
  • Meaningful compiled failing-first production-connected test for actual menu open/activation and resulting sidebar scope; cover replacement/clear semantics, grouped checkouts, stale owner/target and header omission. Use one lowest meaningful app layer; no helper/prop mirrors. Local before/after offscreen menu proof with exact source/build provenance where the existing safe hooks support it; report a source-backed blocker before adding another hook or path.

Allowed implementation paths: apps/native/crates/app/src/context_menu.rs; minimal project-filter-only action/helper/tests in apps/native/crates/app/src/sidebar/controller.rs or a narrowly named app sidebar/menu helper/test module with only essential registration; apps/native/crates/app/src/chat_header.rs only to distinguish its menu origin. Only SB-MENU cells in apps/native/parity/LEDGER.md. Reuse core grouping/ProjectScope/build_menu unchanged. No core/sidebar, row.rs, snooze/deletion/bulk/visit logic, AppState architecture, workspace/snapshot/settings/client/server/contracts/web/dependency/global-renderer edits, new multi-environment subscriptions or auth/permission expansion. Additional essential scope requires one source-backed blocker before edits.

Preserve all other130 ledger rows, UPSTREAM, and the accepted SB-LIST/HEADER/UNDO/DRAFTS/TAGS. #242/#185/#100/#221/#262 stay open for their remaining work; sidebar remains5/16 accepted and SB-MENU partial. Sustained sidebar priority until16/16; no unrelated features.

Root56 orchestrates only. Worker uses one fresh isolated worktree/private target after all setup and the single new debug-cache clone JOIN0. Only copied14658/Replaydev; all user bundles15ae/f0/5056 (5056 USERACTIVE), Trevor and existing servers untouched. No paid/T3 provider turns, CUA/browser/clipboard/real windows/new servers/containers/live14700/~/.t3/auth changes, unowned signals or pattern kills. Explicit fresh PRIVATE snapshot build actualJOIN0+hash BEFORE ANY app, including baseline/help; no normal/copied/unknown executable. Preserve original copied home, render only a throwaway copy omitting last-thread with separate empty T3CODE_HOME and --new-thread; no real-thread selection/visit or writes for proof. Raw formatter RED and structural dependency/source/runtime limitations stay honest. Never repeat268/266/264/263/261 or wake archived chats.

Essential proof dependency — source-backed root56 decision

#269 essential proof dependency — root56 decision

Root56 independently read the full blocker REPORT/INDEX, capture-intake.py, receipts/home hash provenance and actual current ClientHandle fields/session-state/generation/start_prepared/session-fetch paths, app fixture/install_active_environment/connection_id and the existing snooze current-grant precedent. The worker correctly stopped before edits: the offline fixture has no client, and receiver-only public APIs cannot drive affirmative→revoked grants through the real activation guard without a live supervisor. A separate boolean test would miss that boundary.

Authorize ONLY this additional native test dependency, within the same #269 task:

  • apps/native/crates/client/src/supervisor.rs: one opt-in in-memory synthetic ClientHandle fixture and minimal gated support type/methods. It returns a normal-shaped handle backed by owned session-grant and connection-generation watch channels and an observable in-memory command queue. No supervisor, networking, auth fetch, task/timer, credential load or real command execution. Use synthetic inert credential data; tests never read real credentials. Keep Command private; expose only the small observation interface needed to assert no writes/navigation commands.
  • apps/native/crates/client/Cargo.toml: declare a default-off test-support (or equivalently explicit snapshot-test-only) feature, with no new package/dependency/version/lockfile changes.
  • apps/native/crates/app/Cargo.toml: enable that local client feature only through existing opt-in snapshot/test support. Normal production/default builds must not enable the fixture. No other feature/dependency change.

The helper must be absent under ordinary client builds and must leave start, start_prepared, supervisor/session/auth/grant/transport semantics unchanged. It is a controlled test fixture, never an application authorization override or replacement grant source. App tests install it through the EXISTING install_active_environment; no AppState source edits/architecture changes. Existing current grant reads remain the production path being tested. Test revocation by changing the same watch value that production reads; assert actual menu activation changes scope while allowed and makes no change after revocation/owner change. Observe queued commands to prove local scope changes do not send server writes or visits.

Keep the original source-backed blocker round immutable. Introduce the fixture/meaningful test first, with original menu behavior still failing after successful compilation; preparation/compile failures remain excluded from RED. Preserve exact RED/GREEN build sources and all command/raw/PID/JOIN bindings. Original brief/issue acceptance, file limits outside these three explicitly added files, five accepted rows, partial status, all130 other ledger rows/UPSTREAM, no new servers/providers/real windows/clipboard/auth/permission scope changes and protected user bundles remain binding. No workspace/snapshot/global fixture hook or other file authorization is added here; report any further concrete essential blocker before edits. Root56 orchestrates only; SAME worker continues after this substantive decision.

Activity

  1. added
    parity
    native:feature
    status:in-progress
    status:review
    and removed
    status:in-progress
    on Nov 5, 2026
  2. rynfar commented on Nov 5, 2026

    @rynfar
    OwnerAuthor

    Implemented the bounded logical-project filter slice in #270 at 030062b6acc86bc87d54a4d74465bd82a6808bbe; independent review and integration remain pending.

    SB-MENU stays partial and sidebar acceptance stays 5/16. Header/sidebar menu differences are retained; sidebar Find was not added because current web Sidebar omits canFind. Broader menu entries/confirmations, grouping across simultaneous environments, project-folder/selection/deletion dependencies, relay/multidevice and real reduced-grant runtime acceptance remain with the existing owning checklists. #242/#185/#100/#221/#262 are not closed by this slice.

    Proof: compiled behavioral RED then GREEN, 1,410 default workspace tests counted once, three named snapshot integration cases including current-watch grant revocation and stale target ownership, strict Clippy, 42 parity tests, theme/conformance and both builds. Local before/after/reverse captures and raw provenance: /private/tmp/native269-b56-evidence/REPORT.md + INDEX.json. Whole-file Rust/ledger formatter REDs remain recorded; all 130 other rows and UPSTREAM are byte-identical. No broader runtime, dependency or performance acceptance is claimed.

  3. removed
    status:review
    on Nov 5, 2026
  4. rynfar commented on Nov 5, 2026

    @rynfar
    OwnerAuthor

    PR #270 integrated as 29f7aad9b13e81051a6352b4f23489c1d165c714 (exact reviewed head 030062b6acc86bc87d54a4d74465bd82a6808bbe, actual base 5056be35cf33ced5e8c342735cd9b064dde01e1f, exact gated tree 21d883908a93f0654f5feefe0036c148aa3ab3ed, conventional squash subject with empty body). Independent Sol6.1 approval and supplemental source review found no actionable #269 regression.

    The sidebar thread menu now replaces the scope with the current logical project group, or clears all project scopes when that group is selected. The header omits this sidebar-only entry. Captured target/owner/generation and current ClientHandle watch grants are rechecked; tests cover actual menu activation, both checkouts, selection clearing and 24 refusal scenarios.

    Root verification: one default strict-Clippy pass and one default workspace run (1,410 tests), three named snapshot cases, 42 parity tests, theme, scoped conformance, whitespace and normal/private builds passed. The extra strict snapshot Clippy check remains RED on unchanged baseline provider-removal code at removal.rs:211; this was independently source-qualified without suppression, baseline rerun or unrelated fix. Whole Rust/ledger formatter checks remain RED, including touched/new surrounding lines. Required checks passed; there is no blanket all-gate-green claim.

    Merged explicit PRIVATE snapshot build actually joined, then its binary was hashed before one isolated offscreen app invocation. The PNG was inspected once and is literally byte-identical to the worker selected-state capture; it is not a new before/after pair. Local proof: /private/tmp/native-factory-run56/270-root-gate-read-complete.json, 270-primary-verification.json, primary270/ and independent review /private/tmp/native270-b56-review/. Synthetic grant/command-queue coverage does not establish real grants, every route's visit behavior, relay/multidevice, broad performance or whole-row acceptance.

    SB-MENU stays partial; sidebar remains 5/16 accepted, 11 partial, no new accepted row. Preserve SB-LIST/HEADER/UNDO/DRAFTS/TAGS. Current web Sidebar omits canFind; header Find/new-thread-on-branch and the rest of the finite owning checklists remain open. #242/#185/#100/#221/#262 are not completed by this slice; core+row #262 fixes remain outside scope.

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:featureparity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions