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.
This commit is contained in:
jianxing zhang 2026-04-01 21:51:24 +08:00 committed by Peter Steinberger
parent 302c6e30bb
commit 50b270a86b
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ export type RequestExecApprovalDecisionParams = {
commandArgv?: string[];
systemRunPlan?: SystemRunApprovalPlan;
env?: Record<string, string>;
cwd: string;
cwd: string | undefined;
nodeId?: string;
host: "gateway" | "node";
security: ExecSecurity;