Repository navigation
feat(session-search): search every computer from the history panel - #20680
Merged
Merged
Conversation
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".
Contributor
|
This run was cancelled 🛑 The workflow was cancelled before completion. Please check the link below for details. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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."
allscope straight towindow.api.aiVault.searchSessions, which the desktop already merges across every enumerated host.sessionSearch.panel.chooseHoststring are gone.Not searched: Build box (search off) · Laptop (unreachable), from the newsessionSearch.panel.hostsSkippedstring.searchSessionstype and the web client's own-runtime check widen fromExecutionHostIdtoExecutionHostScope; the browser still answersno-serviceforall, which is now expressible instead of a@ts-expect-error.Validation
No Electron e2e case was added.
tests/e2e/ai-vault-panel-search.spec.tscannot take a two-line addition for this: exercising the merge needs the host menu switched to "All hosts" and a stubbedaiVault:searchSessionsreturning ahostsarray, which is a new test block rather than two lines.Base
This targets the
session-search-verifyintegration branch, which is main plus PR 6, PR 7, PR 8 and #20670. It will be rebased onto main once those merge.