Description
The network requests command fails with a validation error if the --filter option is not provided, even when you want to see all requests without filtering.
Environment
- agent-browser version: 0.5.0
- OS: Ubuntu 24.04 (Hetzner VPS)
- Access method: Headless via mosh + tmux
- Node.js: v22.14.0
- Chromium: 143.0.7499.4 (installed via
agent-browser install --with-deps)
Steps to Reproduce
-
Open a page and let it load:
agent-browser open "https://example.com"
-
Try to list network requests without a filter:
agent-browser network requests
Expected Behavior
Should list all captured network requests (or an empty list if none).
Actual Behavior
Error: Validation error: filter: Expected string, received null
Workaround
Provide an empty filter string:
agent-browser network requests --filter ""
Suggested Fix
The --filter option should be optional with a default value of "" (empty string) or the validation should accept null as a valid value.
Description
The
network requestscommand fails with a validation error if the--filteroption is not provided, even when you want to see all requests without filtering.Environment
agent-browser install --with-deps)Steps to Reproduce
Open a page and let it load:
agent-browser open "https://example.com"Try to list network requests without a filter:
Expected Behavior
Should list all captured network requests (or an empty list if none).
Actual Behavior
Workaround
Provide an empty filter string:
agent-browser network requests --filter ""Suggested Fix
The
--filteroption should be optional with a default value of""(empty string) or the validation should acceptnullas a valid value.