From 50b270a86bb33d97e193bf72639b4dac1d1fb63e Mon Sep 17 00:00:00 2001 From: jianxing zhang Date: Wed, 1 Apr 2026 21:51:24 +0800 Subject: [PATCH] fix: widen HostExecApprovalParams.cwd to string | undefined Remote node exec may have no explicit cwd when the gateway's own process.cwd() is omitted. Allow undefined to flow through the approval request type. --- src/agents/bash-tools.exec-approval-request.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agents/bash-tools.exec-approval-request.ts b/src/agents/bash-tools.exec-approval-request.ts index 4f88be39b72..d0e13ca3cfb 100644 --- a/src/agents/bash-tools.exec-approval-request.ts +++ b/src/agents/bash-tools.exec-approval-request.ts @@ -11,7 +11,7 @@ export type RequestExecApprovalDecisionParams = { commandArgv?: string[]; systemRunPlan?: SystemRunApprovalPlan; env?: Record; - cwd: string; + cwd: string | undefined; nodeId?: string; host: "gateway" | "node"; security: ExecSecurity;