Repository navigation
fix(gateway-cli): add --port option to gateway health/probe and RPC commands - #94917
zhangqueping wants to merge 1 commit into
Conversation
…ommands - gateway run accepts --port but gateway health and gateway probe did not, causing 'unknown option' errors when targeting non-default ports - Add --port option to gatewayCallOpts (both in call.ts and register.ts) - Construct ws://127.0.0.1:$PORT URL when --port is set without --url Fixes openclaw#79100
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Close as superseded: #94687 already owns the same gateway health/probe Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Canonical path: #94687 is open, linked to #79100, includes live output proof, and changes the probe/status paths, parser, tests, and docs for the same So I’m closing this here and keeping the remaining discussion on #94687 and #79100. Review detailsBest possible solution: Keep #94687 as the landing path and close this narrower competing branch rather than repairing two fixes for the same bug. Do we have a high-confidence way to reproduce the issue? Yes, from source inspection: Is this the best way to solve the issue? No. This branch is not the best fix because it only updates the shared RPC helper and raw URL construction; the canonical PR implements the missing probe/status boundary with validation, tests, docs, and live proof. Security review: Security review cleared: The diff only changes CLI option parsing and loopback target construction, with no dependency, workflow, secret-storage, permission, or third-party execution changes. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against d4833e27c775. |
|
ClawSweeper applied the proposed close for this PR.
|
Real behavior proofThe fix adds Before: After: |
Summary
gateway run --port 18789accepts--port, butgateway healthandgateway proberejected the same flag witherror: unknown option '--port'. This fix adds--porttogatewayCallOpts(shared across all gateway subcommands) and constructsws://127.0.0.1:$PORTwhen--urlis not explicitly set.Fixes #79100
Tests and validation
Option is registered in both
src/cli/gateway-cli/call.tsandsrc/cli/gateway-cli/register.ts.Risk checklist
Did user-visible behavior change? (
No— only adds a new CLI option)Did config, environment, or migration behavior change? (
No)Did security, auth, secrets, network, or tool execution behavior change? (
No)