fix(ai-vault): make SSH session history host-aware (#7367)
* fix(ai-vault): scan sessions by execution host * fix(ai-vault): route history resume by host * test(e2e): cover SSH AI Vault history * Generalize remote session scanning for all AI Vault agents Replace the Codex-only remote SSH session history scanner with a unified scanner supporting all registered agents. This ensures remote transcripts for Claude, Gemini, Devin, Droid, and others are scanned and listed alongside local history. - Propagate host metadata (host ID and platform) to scanned sessions - Scope remote actions by host, disabling local OS path actions on remote session logs - Resolve ambiguous project/worktree matching for overlapping paths by verifying matching host setup IDs - Update tests and E2E specs to validate multi-agent remote scanning --------- Co-authored-by: Jinjing <6427696+AmethystLiang@users.noreply.github.com>
This commit is contained in:
co-authored by
Jinjing
parent
331a30b454
commit
e94c83d164
@@ -5,6 +5,7 @@ import {
|
||||
type AgentStartupShell
|
||||
} from './tui-agent-startup-shell'
|
||||
import type { TuiAgent } from './types'
|
||||
import type { ExecutionHostId, ExecutionHostScope } from './execution-host'
|
||||
|
||||
export const AI_VAULT_AGENTS = [
|
||||
'claude',
|
||||
@@ -53,6 +54,8 @@ export type AiVaultSessionPreviewMessage = {
|
||||
|
||||
export type AiVaultSession = {
|
||||
id: string
|
||||
executionHostId: ExecutionHostId
|
||||
executionHostPlatform?: NodeJS.Platform | null
|
||||
agent: AiVaultAgent
|
||||
sessionId: string
|
||||
title: string
|
||||
@@ -71,6 +74,7 @@ export type AiVaultSession = {
|
||||
}
|
||||
|
||||
export type AiVaultScanIssue = {
|
||||
executionHostId?: ExecutionHostId
|
||||
agent: AiVaultAgent
|
||||
path: string
|
||||
message: string
|
||||
@@ -82,6 +86,7 @@ export type AiVaultListArgs = {
|
||||
// Active workspace/project paths. The global result is recency-capped, so these
|
||||
// guarantee a scoped view still surfaces its own (possibly older) sessions.
|
||||
scopePaths?: readonly string[]
|
||||
executionHostScope?: ExecutionHostScope
|
||||
}
|
||||
|
||||
export type AiVaultListResult = {
|
||||
|
||||
Reference in New Issue
Block a user