Repository navigation
docs(gateway): document sandbox host port for multiple gateways - #164275
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed October 3, 2026, 7:31 AM ET / 11:31 UTC. ClawSweeper reviewWhat this changesThe PR adds the isolated widget and MCP App sandbox listener’s default port and configuration override to the multi-gateway isolation guidance. Merge readiness✅ Ready for maintainer review Keep open: this is a useful, accurate documentation correction that current main and the latest release still lack. No actionable patch defect was found. Priority: P3 Review scores
Verification
How this fits togetherEach Gateway uses a base network port and additional ports for isolated app content and browser control. The multi-gateway guide helps operators assign distinct ports to instances sharing a host. flowchart LR
A[Gateway instance configuration] --> B[Base Gateway port]
A --> C[Optional sandbox port override]
B --> D[Sandbox port selection]
C --> D
D --> E[Isolated widget and App listener]
B --> F[Browser control and CDP ports]
E --> G[Per-instance port planning]
F --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceDocs +1. Total +1 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the multi-gateway port checklist consistent with the shared sandbox listener’s existing default and override. Do we have a high-confidence way to reproduce the issue? Not applicable: this documents existing behavior, and current-main source directly confirms the port calculation and override. Is this the best way to solve the issue? Yes: adding the missing listener to the existing isolation and port-mapping guidance is a focused correction that matches the authoritative runtime. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e40ed06f23cb. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Landed in 9aa7455. Thanks! Checked against |
…claw#164275) List the sandbox host listener (gateway port + 1 unless mcp.apps.sandboxPort is set) among the derived ports to keep apart when running multiple Gateways. Co-authored-by: Ayaan Zaidi <[email protected]>
Related: #69039
What Problem This Solves
Multi-gateway documentation lists the derived browser control and CDP ports, but omits the separate sandbox host listener.
User Impact
Operators planning multiple Gateways may not realize that the sandbox host can also require a unique derived port.
Why This Change Was Made
The sandbox host normally derives from
gateway.port + 1, whilemcp.apps.sandboxPortcan override it. Documenting that port alongside the other derived Gateway ports keeps multi-instance port planning complete.Evidence
The MCP Apps documentation and runtime both specify the
+1sandbox host port, while the current multi-gateway port mapping omits it.Validation:
pnpm check:docsgit diff --checkDocumentation-only change; no runtime tests were run.