Skip to content

feat(session-search): search every computer from the history panel - #20680

Merged
Jinwoo-H merged 1 commit into
session-search-verifyfrom
session-search-panel-all-hosts
Sep 14, 2026
Merged

Jinwoo-H merged 1 commit into
session-search-verifyfrom
session-search-panel-all-hosts

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​155 $\color{#cf222e}{\Huge{\mathbf{−}}}$​5 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​150
Prod 5 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​72 $\color{#cf222e}{\Huge{\mathbf{−}}}$​33 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​39

The Agent Session History panel's "All computers" scope produced no search at all: the hook parsed the scope down to a single execution host id and bailed when that was null, so the panel answered "Choose one computer to search its sessions."

  • The panel hook now passes the all scope straight to window.api.aiVault.searchSessions, which the desktop already merges across every enumerated host.
  • Each hit is stamped with the host it came back on, falling back to local when a host omitted attribution; single-host behaviour is byte-for-byte unchanged.
  • The choose-host message and its sessionSearch.panel.chooseHost string are gone.
  • Hosts the merge could not search are named under the results header in one muted line, e.g. Not searched: Build box (search off) · Laptop (unreachable), from the new sessionSearch.panel.hostsSkipped string.
  • The preload searchSessions type and the web client's own-runtime check widen from ExecutionHostId to ExecutionHostScope; the browser still answers no-service for all, which is now expressible instead of a @ts-expect-error.

Validation

ORCA_BACKGROUND_LAUNCH=1 pnpm tc
  (no output; exit 0)

ORCA_BACKGROUND_LAUNCH=1 pnpm test src/renderer/src/components/right-sidebar
   Test Files  234 passed (234)
        Tests  2050 passed (2050)

ORCA_BACKGROUND_LAUNCH=1 pnpm test src/renderer/src/web/preload-api
   Test Files  2 passed (2)
        Tests  5 passed (5)

ORCA_BACKGROUND_LAUNCH=1 pnpm run check:code-quality:changed
  code quality: 0 new finding(s) across 74 changed file(s).
  casting code quality: 0 new finding(s) across 74 changed file(s).
  type-aware code quality: 0 new finding(s) across 74 changed file(s).
  React Doctor: 0 new finding(s) across 74 changed file(s).
  casting SAFETY: rationale: 0 new finding(s) across 74 changed file(s).
  Changed-code quality gate passed since 875b86d1688f.

ORCA_BACKGROUND_LAUNCH=1 pnpm run check:react-doctor:changed
  (exit 0; the 5 reported issues are pre-existing on the integration branch, none new)

ORCA_BACKGROUND_LAUNCH=1 pnpm run verify:localization-catalog
  Verified 14543 localization key references against en.json.

ORCA_BACKGROUND_LAUNCH=1 pnpm run verify:localization-runtime-catalog
  en-runtime-required.json covers en.json: 1680 of 14331 English entries must ship in the boot bundle.

ORCA_BACKGROUND_LAUNCH=1 pnpm run verify:localization-extraction
  Extracted 12781 keys; 36 dynamic defaults are report-only, 1550 existing English entries are not statically referenced, and 52 inline defaults differ.

ORCA_BACKGROUND_LAUNCH=1 pnpm run verify:localization-coverage
  Localization coverage check passed with 13 allowlisted candidates.

No Electron e2e case was added. tests/e2e/ai-vault-panel-search.spec.ts cannot take a two-line addition for this: exercising the merge needs the host menu switched to "All hosts" and a stubbed aiVault:searchSessions returning a hosts array, which is a new test block rather than two lines.

Base

This targets the session-search-verify integration branch, which is main plus PR 6, PR 7, PR 8 and #20670. It will be rebased onto main once those merge.

The panel's "All computers" scope produced no request: the hook parsed the
scope into a single host id and stopped when that was null, so the panel
answered "Choose one computer to search its sessions." The desktop already
merges every enumerated host behind `aiVault:searchSessions`, so pass the
scope straight through and stamp each hit with the host it came back on.

Hosts the merge could not search are named under the results header with a
short reason, since a silent partial answer reads as "no such session".
@pullfrog

pullfrog Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

This run was cancelled 🛑

The workflow was cancelled before completion. Please check the link below for details.

Pullfrog  | View workflow run | via Pullfrog | 𝕏

@Jinwoo-H
Jinwoo-H merged commit 3974546 into session-search-verify Sep 14, 2026
26 of 28 checks passed
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