Skip to content

docs(gateway): document sandbox host port for multiple gateways - #164275

Merged
obviyus merged 1 commit into
openclaw:mainfrom
Satoshi-Kusumoto:docs/multi-gateway-sandbox-port
Oct 7, 2026
Merged

obviyus merged 1 commit into
openclaw:mainfrom
Satoshi-Kusumoto:docs/multi-gateway-sandbox-port

Conversation

@Satoshi-Kusumoto

Copy link
Copy Markdown
Contributor

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, while mcp.apps.sandboxPort can 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 +1 sandbox host port, while the current multi-gateway port mapping omits it.

Validation:

  • pnpm check:docs
  • git diff --check

Documentation-only change; no runtime tests were run.

@clawsweeper

clawsweeper Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime size: XS labels Oct 3, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 3, 2026
@clawsweeper

clawsweeper Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 3, 2026, 7:31 AM ET / 11:31 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: 92b98eec99c3207052533baf693c03f2a11c6848

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-backed documentation correction with no blocking correctness or security findings.
Proof confidence 🌊 off-meta tidepool Not applicable: Real behavior proof is not required because this PR only changes files under docs/.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Real behavior proof is not required because this PR only changes files under docs/.
Evidence reviewed 8 items Pinned introduced change: The merge-base-to-head diff changes only multi-gateway prose and its isolation table; it adds the sandbox listener default and existing override without changing frontmatter or runtime behavior.
Current-main runtime contract: The sandbox port resolver uses the configured port when supplied, otherwise Gateway port plus the offset of one, and rejects invalid or identical ports.
Widget and MCP App applicability: The Gateway passes its effective port and mcp.apps.sandboxPort to the shared resolver. MCP Apps retain eager startup while board widgets can acquire the listener lazily, matching the added conditional wording.
Findings None None.
Security None None.

How this fits together

Each 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
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Docs +1. Total +1 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 1 9 8 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 9 8 +1

Review metrics

None.

Technical review

Best 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.

Labels

Label changes:

  • add P3: This is a low-risk documentation improvement for operators planning multiple Gateway instances.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Real behavior proof is not required because this PR only changes files under docs/.

Label justifications:

  • P3: This is a low-risk documentation improvement for operators planning multiple Gateway instances.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Real behavior proof is not required because this PR only changes files under docs/.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@obviyus
obviyus merged commit 9aa7455 into openclaw:main Oct 7, 2026
72 of 74 checks passed
@obviyus

obviyus commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator

Landed in 9aa7455. Thanks! Checked against sandbox-host.ts: the sandbox listener derives from the gateway port + 1 unless mcp.apps.sandboxPort is set, so it belongs in the multi-gateway port spacing guidance.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 8, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants