mirror of
https://github.com/stablyai/orca.git
synced 2026-09-22 08:02:28 +00:00
perf: append agent browser argv without spread (#3935)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user