--args / AGENT_BROWSER_ARGS splits on every comma, including inside a --flag=a,b value (--window-position never reaches Chrome intact)
Version: agent-browser 0.36.0 (npm, agent-browser-win32-x64.exe), Windows 11, bundled Chrome for Testing 150.0.7871.24.
Problem: --args / AGENT_BROWSER_ARGS (and the config-file args string) split on every comma, including inside a --flag=a,b value.
Repro:
AGENT_BROWSER_ARGS="--window-position=-32000,-32000" agent-browser --session probe open about:blank
The launched chrome.exe command line contains:
--headless=new --window-size=1280,720 --window-position=-32000 -32000
(a space where the comma must be). Chrome ignores the malformed flag and the --headless=new window renders at its default (10,10) 1280x720 — on Windows that is a real, DWM-composited grey window on the user's desktop.
Newline-separated, double-quoted ("--window-position=-32000,-32000" arrives with literal quotes and still split) and backslash-escaped forms all split too; the escaped form hangs the engine. The config file's args key is the same comma-separated string, so no surface can carry a comma inside a value.
Expected: do not split inside a --flag=a,b value (only split on a comma followed by --), or accept a JSON array for args.
Workaround we ship: after daemon start, move the headless window with Win32 SetWindowPos (mutmutco/Jerv-JervCode#5160).
Source: vercel-labs/agent-browser