Repository navigation
fix(onboarding): stop printing gateway token URLs - #124687
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 17, 2026, 7:11 PM ET / 23:11 UTC. ClawSweeper reviewWhat this changesThe PR removes reusable Gateway-token URLs from classic onboarding and SSH hints, while retaining the dashboard command’s structured handoff. Merge readinessThe patch cleanly removes the reusable-token output from classic onboarding while preserving the separate dashboard JSON and one-time browser-pairing contracts. Keep it open for explicit maintainer acceptance of the intentional classic-handoff compatibility change. Priority: P1 Review scores
Verification
How this fits togetherClassic onboarding collects Gateway settings and prints a final Control UI handoff in the terminal. The dashboard command is a separate recovery and integration path that emits structured data and creates one-time browser pairing links. flowchart LR
A[Classic onboarding settings] --> B[Final onboarding output]
B --> C[Safe Control UI URL]
C --> D[Terminal handoff]
D --> E[Dashboard recovery command]
F[Dashboard integrations] --> G[Structured URL and one-time pairing]
Decision needed
Why: The patch removes a reusable credential from terminal output but intentionally changes established click-through behavior for existing operators. Before merge
Agent review detailsSecurityNone. PR surfaceSource -57, Tests -5, Docs 0. Total -62 across 9 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Adopt the token-free classic handoff while preserving the dashboard JSON and one-time browser-pairing contracts, with the dashboard command as the named recovery path. Do we have a high-confidence way to reproduce the issue? Yes: current-main source builds and prints a Is this the best way to solve the issue? Yes: deleting the classic output builder at the final-output owner is the best repair; the remaining question is acceptance of the intentional compatibility change. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against beebeac11d42. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
2050585 to
bad68a0
Compare
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Maintainer security review accepts the token-free classic handoff on exact head The defect was the classic final-output owner constructing and printing a reusable Proof:
ClawSweeper rank-up/merge-risk move: explicitly accepted. The published dashboard contract already promises clean onboarding output and a short-lived browser bootstrap; preserving the reusable click-through would preserve the credential leak. No config, protocol, permission, or authentication-policy surface changes. |
|
Merged via squash.
|
* fix(onboarding): stop printing gateway token URLs Amp-Thread-ID: https://ampcode.com/threads/T-01a00ae0-190d-718b-8a76-b75f3e8d1fae * fix(onboarding): finish token-free handoff cleanup --------- Co-authored-by: Amp <[email protected]>
What Problem This Solves
Fixes an issue where classic onboarding could print a reusable Gateway token inside a dashboard URL, including through a dead headless SSH formatter path. Token-bearing terminal output is easy to retain in terminal transcripts, logs, recordings, and support bundles.
Why This Change Was Made
Classic onboarding now prints only the uncredentialed Control UI URL and the existing
openclaw dashboard --no-openrecovery command. The obsolete authenticated-URL builder, unused SSH token parameter, and token-specific onboarding copy are deleted. Maintainer security review explicitly accepts the token-free classic handoff because the published contract already promises a clean link and a short-lived dashboard bootstrap.The separate dashboard command is unchanged. Its backward-compatible JSON
url, short-lived one-timebrowserUrl, and browser pairing behavior remain covered. This PR is AI-assisted.User Impact
Operators no longer receive reusable Gateway credentials in classic onboarding or headless SSH output. They still receive a plain dashboard URL and a supported recovery command. Dashboard integrations retain their structured JSON handoff.
Evidence
Exact head:
bad68a070478b92f11594e984648d9aa0e64f65f, rebased ontoorigin/main27cb5d021fd1f7d8dd408871645038318609ce0a.classicLeaks: trueandsshLeaks: true(exit 42). No real credential was read or printed.#token=, or reusable-token labels; both CLI help surfaces use the new handoff wording. Two isolated live dashboard probes retained the legacy structured URL fields and distinct one-timebrowserUrlshape without printing either synthetic sentinel or full URLs.pnpm check:changed: passed for the selectedcore,coreTests, anddocslanes, including formatting, typechecking, lint, dependency/boundary guards, dead exports, import cycles, and repository ratchets.pnpm docs:listandpnpm check:docs: passed; 6,514 internal links checked with 0 broken links and 1,176 config examples validated.GREENfor this head.Contributor credit is preserved: the first repair commit is authored by Amp (
[email protected]), followed by Peter's maintainer cleanup commit.