#21000: fix: resolve option collision between browser and cookies set commands
docs
cli
size: XS
trusted-contributor
Cluster:
Cross-Platform Fixes
Fixes #20976
## What changed
- Renamed the global/parent '--url' option to '--gateway-url' in the gateway client options to avoid collision with the '--url' required option in the 'browser cookies set' subcommand.
- Updated GatewayRpcOpts type to use 'gatewayUrl' instead of 'url'
- Updated all usages in callGatewayFromCli and logs-cli.ts
## AI-assisted contribution
- This fix was generated by an AI agent (OpenClaw cron: gh-issues-fix)
- Testing depth: validated with pnpm build && pnpm check && pnpm test
- The fix addresses the root cause described in the issue by renaming the parent command's --url option to avoid collision with the cookies set subcommand's required --url option
<!-- greptile_comment -->
<h3>Greptile Summary</h3>
Renamed the global `--url` option to `--gateway-url` in gateway client options to prevent collision with the `--url` required option in the `browser cookies set` subcommand. Updated `GatewayRpcOpts` type and all usages in `callGatewayFromCli` and `logs-cli.ts`. The fix correctly resolves the option collision issue described in #20976.
<h3>Confidence Score: 5/5</h3>
- This PR is safe to merge with minimal risk
- The changes are straightforward and focused: renaming a single CLI option to avoid collision. All usages have been correctly updated in both type definitions and implementations. The fix directly addresses the reported issue and follows a clear renaming pattern. No logic changes, no security implications.
- No files require special attention
<sub>Last reviewed commit: 117ccfc</sub>
<!-- greptile_other_comments_section -->
<!-- /greptile_comment -->
Most Similar PRs
#21008: fix: Rename --url to --cookie-url in browser cookies set
by chilu18 · 2026-02-19
81.4%
#22804: fix: prioritize loopback for internal gateway calls (issue #22706)
by ambicuity · 2026-02-21
78.8%
#4243: fix: resolve Node.js punycode deprecation warning
by dylanneve1 · 2026-01-29
77.7%
#22716: fix: gateway status probe uses wss:// when TLS enabled; accept self...
by Fratua · 2026-02-21
77.3%
#22110: fix(tools): prefer loopback for internal tool-to-gateway RPC calls
by pierreeurope · 2026-02-20
77.3%
#9728: fix(gateway): browser.snapshot ignores profile parameter (#9723)
by divol89 · 2026-02-05
77.3%
#8745: fix(gateway): respect gateway.port config and --port CLI flag
by revenuestack · 2026-02-04
76.8%
#4653: fix(gateway): improve crash resilience for mDNS and network errors
by AyedAlmudarra · 2026-01-30
76.7%
#13960: fix(ui): preserve structured config validation error details
by constansino · 2026-02-11
76.7%
#21651: fix(gateway): token fallback + operator.admin scope superset in pai...
by lan17 · 2026-02-20
76.6%