perf: append agent browser argv without spread (#3935)

This commit is contained in:
Neil
2026-05-30 13:43:13 -07:00
committed by GitHub
parent 3f75261deb
commit 196b66b8ed
+6 -1
View File
@@ -2055,7 +2055,12 @@ export class AgentBrowserBridge {
args.push('--cdp', String(port))
}
args.push(...commandArgs, '--json')
// Why: exec passthrough can produce a large argv array; spreading it into
// push risks V8 argument limits before execFile receives the command.
for (const commandArg of commandArgs) {
args.push(commandArg)
}
args.push('--json')
const stdout = await this.runAgentBrowserRaw(sessionName, args, execOptions)
const translated = translateResult(stdout)