Skip to content

[authoring-antigravity-skills]: agents-cli playground fails on Windows due to wildcard expansion of --allow_origins "*" in adk.exe launcher #2123

@Abdullah-k0de

Description

@Abdullah-k0de

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,
]

Image

I would like some bug reward for this and recognition. Thx :)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions