On Windows, running agents-cli playground fails with Error: Got unexpected extra arguments because the adk.exe launcher (compiled with setargv.obj) automatically expands the * in --allow_origins "" to the list of files in the current directory. Quoting/escaping the asterisk string specifically on Windows (e.g. '""') resolves the issue.
I had to modify the playground command implementation on the machine to escape the wildcard on Windows inside the file: cmd_playground.py:
import sys
allow_origins = '""' if sys.platform == "win32" else ""
args = [
"uv",
"run",
"adk",
"web",
".",
"--host",
host,
"--port",
str(port),
"--allow_origins",
allow_origins,
]
I would like some bug reward for this and recognition. Thx :)
On Windows, running agents-cli playground fails with Error: Got unexpected extra arguments because the adk.exe launcher (compiled with setargv.obj) automatically expands the * in --allow_origins "" to the list of files in the current directory. Quoting/escaping the asterisk string specifically on Windows (e.g. '""') resolves the issue.
I had to modify the playground command implementation on the machine to escape the wildcard on Windows inside the file: cmd_playground.py:
import sys
allow_origins = '""' if sys.platform == "win32" else ""
args = [
"uv",
"run",
"adk",
"web",
".",
"--host",
host,
"--port",
str(port),
"--allow_origins",
allow_origins,
]
I would like some bug reward for this and recognition. Thx :)