-
Notifications
You must be signed in to change notification settings - Fork 77
feat(types): add targetClientId to HostBashRequest and PendingInteraction
#29309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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<string, string>; | ||
| /** When set, route this request only to the client with this ID. */ | ||
| targetClientId?: string; | ||
|
Comment on lines
+16
to
+17
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚩 broadcastMessage routing does not use targetClientId for client-specific delivery The Was this helpful? React with 👍 or 👎 to provide feedback. |
||
| } | ||
|
|
||
| export interface HostBashCancelRequest { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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; | ||
|
Comment on lines
+54
to
+55
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 The PR adds Bridge code that omits the field} else if (msg.type === "host_bash_request") {
pendingInteractions.register(msg.requestId, {
conversationId,
kind: "host_bash",
// targetClientId is missing here
});Prompt for agentsWas this helpful? React with 👍 or 👎 to provide feedback. |
||
| } | ||
|
|
||
| const pending = new Map<string, PendingInteraction>(); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚩 Swift client HostBashRequest struct does not include targetClientId
The Swift
HostBashRequeststruct atclients/shared/Network/MessageTypes.swift:1532-1551has explicitCodingKeysand does not include atargetClientIdproperty. When the daemon sends ahost_bash_requestwithtargetClientIdset, the Swift client will silently ignore it during JSON decoding (sinceDecodableskips unknown keys by default). If the client needs to act on this field (e.g., to check whether it's the intended target before executing), the struct and itsCodingKeyswill need updating in a follow-up PR.Was this helpful? React with 👍 or 👎 to provide feedback.