From a9118a09c94d6d072f3e98198d1d94a80c1916c3 Mon Sep 17 00:00:00 2001 From: Credence Date: Sun, 3 May 2026 02:06:04 +0000 Subject: [PATCH] feat(types): add targetClientId to HostBashRequest and PendingInteraction --- assistant/src/daemon/message-types/host-bash.ts | 2 ++ assistant/src/runtime/pending-interactions.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/assistant/src/daemon/message-types/host-bash.ts b/assistant/src/daemon/message-types/host-bash.ts index b72526e7fba..3b0b1711e00 100644 --- a/assistant/src/daemon/message-types/host-bash.ts +++ b/assistant/src/daemon/message-types/host-bash.ts @@ -13,6 +13,8 @@ export interface HostBashRequest { timeout_seconds?: number; /** Extra environment variables to inject into the subprocess (e.g. VELLUM_UNTRUSTED_SHELL). */ env?: Record; + /** When set, route this request only to the client with this ID. */ + targetClientId?: string; } export interface HostBashCancelRequest { diff --git a/assistant/src/runtime/pending-interactions.ts b/assistant/src/runtime/pending-interactions.ts index 74f2ae04379..4aa441be869 100644 --- a/assistant/src/runtime/pending-interactions.ts +++ b/assistant/src/runtime/pending-interactions.ts @@ -51,6 +51,8 @@ export interface PendingInteraction { confirmationDetails?: ConfirmationDetails; /** For ACP permissions: resolves directly without a Conversation object. */ directResolve?: (decision: UserDecision) => void; + /** When set, the host_bash request should be routed to this specific client. */ + targetClientId?: string; } const pending = new Map();