Repository navigation
Conversation
|
Codex review: found issues before merge. Reviewed July 10, 2026, 10:14 PM ET / July 11, 2026, 02:14 UTC. Summary PR surface: Source +153, Tests +515, Docs +10, Other +4. Total +682 across 35 files. Reproducibility: yes. from source inspection. Start a tailnet-configured Gateway while no Tailnet IPv4 is bindable so it falls back to loopback, make Tailscale available without restarting Gateway, then run Review metrics: 2 noteworthy metrics.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Determine readiness from the running Gateway's inspected listener topology: use loopback for a loopback-only fallback, probe the configured interface when that listener is present, and retain same-PID ownership verification before delivering an authenticated loopback URL. Do we have a high-confidence way to reproduce the issue? Yes, from source inspection. Start a tailnet-configured Gateway while no Tailnet IPv4 is bindable so it falls back to loopback, make Tailscale available without restarting Gateway, then run Is this the best way to solve the issue? No, not in the current head. Adding a loopback alias and proving same-process ownership are appropriate, but endpoint readiness must reflect the listener topology established at Gateway startup rather than current interface discovery alone. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b7156ce68884. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +153, Tests +515, Docs +10, Other +4. Total +682 across 35 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
Review history (1 earlier review cycle)
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8067cc5fb7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| token, | ||
| includeTokenInUrl, | ||
| dashboardUrl, | ||
| probeUrl: loopbackAliasHost ? configuredLinks.wsUrl : links.wsUrl, |
There was a problem hiding this comment.
Keep dashboard usable after tailnet falls back to loopback
When gateway.bind=tailnet starts while no Tailnet address is bindable, startup intentionally falls back to 127.0.0.1 only (resolveGatewayBindHost returns loopback in that case). If Tailscale comes up later, resolveControlUiLinks will now produce the current Tailnet IP, so this line probes ws://<tailnet-ip>:<port> before delivering the loopback dashboard URL; readiness then treats that refused Tailnet probe as a stopped/unhealthy gateway even though the running gateway is available on loopback. Use the loopback probe until listener/status evidence proves the Tailnet listener exists, or the dashboard regresses for this documented fallback path.
Useful? React with 👍 / 👎.
|
Land-ready proof for exact head
Known proof gap: the existing Chrome bridge was unavailable, so this has real CLI, clipboard, listener, and process-lifetime proof but no browser screenshot. No token or private address is included here. @clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
Merged via squash.
|
* fix: prefer loopback for local tailnet dashboard * fix(gateway): preserve local access for specific binds --------- Co-authored-by: haruaiclone-droid <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
gateway.bind: "custom"could expose the Gateway only on the configured interface while local clients still connected to127.0.0.1. The dashboard then either failed or selected a non-loopback URL carrying the control token.gateway --forcecould also miss an interface-specific listener, and invokingdashboardfrom a dirty watched checkout could rebuild the shareddisttree under the running Gateway.Closes #98476.
Why This Change Was Made
127.0.0.1as a required same-process alias before a specific IPv4 listener; fail startup on alias or primary-listener collisions.gateway --force, so interface-specific stale processes are found.dashboardas a stamped Gateway client inrun-node, including a post-lock recheck, so it does not destructively rebuild a dirty watched checkout.The change removes one fallback surface (tailnet to wildcard) and adds no config or default surface. Existing
gateway.bindvalues and the loopback fallback remain supported.User Impact
Custom IPv4 binds keep local dashboard and approval clients on loopback while preserving the configured network listener. Credential-bearing dashboard URLs fail closed when listener ownership cannot be proven. Watch mode remains stable when dashboard commands run, and
--forcenow finds interface-specific listeners.Evidence
TERM=dumb pnpm gateway:watchremained alive with exactly127.0.0.1:18789and the configured private IPv4 listener owned by one PID.pnpm openclaw dashboard --no-open --yesruns exited 0, emitted no build output, returned only the loopback URL, kept the token out of terminal output, and preserved the same listener topology for 34 seconds.