fix: make Back work within channel setup#108007
Conversation
25d85f7 to
0150562
Compare
0150562 to
27b4d0e
Compare
|
Codex review: needs maintainer review before merge. Reviewed July 20, 2026, 12:28 AM ET / 04:28 UTC. Summary PR surface: Source +215, Tests +738. Total +953 across 9 files. Reproducibility: no. high-confidence before-fix reproduction was established in this read-only review. The PR supplies focused tests and an after-fix terminal recording, but those do not independently demonstrate the prior current-main failure. Review metrics: none identified. 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:
Copy recommended automerge instructionNext step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Have the setup-area owner confirm the scoped rollback and accepted-install retention contract, then merge only after the exact current head has completed its required checks. Do we have a high-confidence way to reproduce the issue? No high-confidence before-fix reproduction was established in this read-only review. The PR supplies focused tests and an after-fix terminal recording, but those do not independently demonstrate the prior current-main failure. Is this the best way to solve the issue? Unclear. The Back-navigation implementation is coherent and the earlier changelog blocker was removed, but a setup-area owner must decide whether the proposed persistence boundary is the best permanent shared contract. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against 1ee42427ea66. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +215, Tests +738. Total +953 across 9 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 (10 earlier review cycles; latest 8 shown)
|
bafd9da to
6fd84fe
Compare
|
/clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
/clawsweeper re-review |
6fd84fe to
2722461
Compare
|
Merged via squash.
|
* fix: support Back within channel setup * docs: note channel setup Back navigation * fix: keep navigation outcome type private * style: format navigation outcome type * chore: leave changelog to release prep
Related: #100906
AI-assisted: yes
What Problem This Solves
Fixes an issue where terminal users setting up a channel could not revise an earlier answer or return from the selected channel's first prompt to the channel picker. Full onboarding and
openclaw channels addreached the same shared channel coordinator through different navigation wrappers, so Back was unavailable or stopped at the wrong boundary.Why This Change Was Made
Adds a typed, channel-scoped navigation outcome in the shared prompt navigator and lets the channel setup coordinator own prompt replay and rollback. Left-arrow Back revisits reversible prompts inside the selected channel; Back from that channel's first prompt returns to channel selection. Ctrl-C remains full wizard cancellation.
The scope closes before installs, key writes, authentication handshakes, and other declared persistent effects. Wizard-local config, selection/account bookkeeping, and post-write hooks are discarded when returning to the picker, while metadata for an already accepted external plugin install is retained so the installed package remains managed.
This PR is intentionally terminal-only. It does not add Control UI buttons or a Gateway navigation transport; those clients continue their existing behavior.
User Impact
Users running
openclaw onboardor interactiveopenclaw channels addcan use the terminal's left-arrow Back navigation within channel setup without restarting the entire wizard. Sensitive text answers are not cached for forward replay, and durable work is not repeated.Terminal Proof
openclaw-channel-back-navigation-demo.mp4
What this shows:
openclaw channels addenters ClickClack, Discord, and Google Chat setup, and left-arrow Back returns from each channel's first prompt to the shared channel picker. The run ends with Ctrl-C cancellation, so no configuration is saved.State: Current PR head (
6fd84fe7335), rebased ontomainat783a5d21cfc. The recording uses Node 22.23.1. Real loading pauses were trimmed; all shown wizard interactions are from this branch.Evidence
fnm exec --using=22.23.1 node scripts/run-vitest.mjs src/wizard/navigation-prompter.test.ts src/flows/channel-setup.test.ts src/commands/channels.add.test.ts src/wizard/setup.test.ts extensions/reef/src/setup.test.ts— 94 tests passed across four Vitest shards after resolving the Reef rebase conflict against the newer identity-storage implementation../node_modules/.bin/oxfmt --checkon all nine changed files — passed.git diff --check origin/main...HEAD— passed on the current head.packages/net-policyworkspace link foripaddr.jsunresolved. A clean-install retry reproduced that import failure before any test assertion. Fresh CI and ClawSweeper review remain the source of truth for the frozen current head.