Skip to content

feat(ui): redesign Channels page with guided channel setup wizard - #106469

Merged
steipete merged 17 commits into
mainfrom
claude/channels-setup-redesign-f23f39
Jul 13, 2026
Merged

steipete merged 17 commits into
mainfrom
claude/channels-setup-redesign-f23f39

Conversation

@steipete

@steipete steipete commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The Settings → Channels page was a wall of raw schema-driven config forms — every channel rendered every field (tokens, allowlists, JSON blobs) inline, with no guidance on how to actually connect a channel. A beginner landing on the page had no path from "I want OpenClaw on Telegram" to a working bot: the real setup knowledge (BotFather, Slack manifests, WhatsApp QR pairing) only existed in the CLI wizard (openclaw channels add) and the docs.

Why This Change Was Made

Rebuilds Channels in the unified settings design language (#106470) and adds a guided, step-by-step setup wizard to the web UI — without duplicating any setup logic:

  • Gateway (additive protocol): wizard.start gains flow: "channels" + channel params, routing to the shared channel-setup flow (openclaw channels add) over the existing WizardSession step protocol already used by the macOS/Android onboarding clients. The wizard branch of channelsAddCommand is extracted into a prompter-injectable runner (src/commands/channels/add-wizard.ts); the gateway entry never calls runtime.exit. On completion the runner reports the channels it actually configured, surfaced as an additive channels field on the terminal wizard.next result so the client keys channel-specific completion off the real outcome, not the preselection.
  • SetupChannelsOptions.deferDeviceLinkToClient: gateway clients render device linking natively, so the WhatsApp finalize surface skips its terminal QR login; the Control UI runs QR pairing through the existing web.login.start/wait RPCs instead.
  • Control UI: the page becomes "Your channels" (settings-language rows with 44px art tiles and dot statuses: Running / Configured / Needs attention) + "Add a channel" (guided-setup rows incl. a browse-all entry that reaches npm-installable catalog channels), following the unified settings design language (uppercase section headings, one flat group surface, hairline rows, status dots). A detail overlay keeps the full advanced surface: the migrated per-channel settings sections with live status facts, start/relink/logout actions, and the complete schema config form. The wizard modal renders the generic step vocabulary (select / multiselect / text-with-masking / confirm / note with copy button) plus per-channel helper links (BotFather, Discord developer portal, api.slack.com/apps, docs.openclaw.ai) and finishes WhatsApp setup with an embedded QR pairing phase.
  • Config writes from the wizard hot-reload channels via the existing chokidar config watcher; no restart needed.

Row/cover art reuses the bundled plugin-art set (CSP is img-src 'self', so remote brand icons can't load). The mock-dev harness gains channels/wizard fixtures so the flow is demoable and screenshot-testable offline.

User Impact

Setting up a channel is now: open Channels → click a card → follow 2–4 short steps → done (WhatsApp ends with a scannable QR right in the dialog). All ~20 channels with setup surfaces work through the same wizard automatically, and everything that was on the old page (full config form, status detail, health JSON) is still there behind the card detail view. CLI behavior is unchanged; the macOS/Android wizard clients are unaffected (protocol change is additive).

Channels hub Guided setup
hub wizard select
Token step (masked) Channel detail (advanced config)
wizard token detail

Evidence

  • Remote (Blacksmith Testbox): pnpm check:changed fully green (all typecheck lanes, lint, Plugin SDK API baseline, guards), pnpm build clean, pnpm plugin-sdk:surface:check green.
  • Tests (Testbox): src/gateway/gateway.test.ts 11/11 incl. new wizard.start flow=channels routing + configured-channels round-trip; src/wizard/session.test.ts; extensions/whatsapp/src/channel.setup.test.ts 19/19 incl. new deferDeviceLinkToClient test; new ui/src/pages/channels/wizard-controller.test.ts (state machine: step/answer, validation errors, stale-start session cancel, gateway-reported channels).
  • Protocol regenerated (pnpm protocol:gen + Swift/Kotlin); Swift diff is additive optional fields.
  • Interactive proof: drove the mock harness end-to-end (hub → wizard select → masked token step → done; detail overlay with config form; Escape/cancel paths) — screenshots above are from that harness.
  • Codex autoreview (gpt-5.5, xhigh) iterated to clean: four wizard-session lifecycle findings were fixed (disconnect leak, stale-start leak, dirty-config guard, channel attribution moved server-side); final run reported no actionable findings.

@openclaw-barnacle openclaw-barnacle Bot added channel: whatsapp-web Channel integration: whatsapp-web app: web-ui App: web-ui gateway Gateway runtime scripts Repository scripts commands Command implementations size: XL maintainer Maintainer-authored PR labels Jul 13, 2026
@steipete
steipete force-pushed the claude/channels-setup-redesign-f23f39 branch from dcf8d53 to 9672137 Compare July 13, 2026 15:05

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dcf8d53b97

ℹ️ 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".

Comment on lines +56 to +60
context.channelWizardRunner(
{
channel: readStringValue(params.channel),
onConfigured: (channels) => wizardSession.setConfiguredChannels(channels),
},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Lock cancellation before channel setup writes

When a Control UI user closes/cancels the channel wizard during an install, final config write, or post-write hook, this runner has no beforePersistentEffect tied to wizardSession.lockCancellation(). runChannelsAddWizardFlow already calls beforePersistentEffect before durable plugin/config effects, so without passing one here WizardSession.cancel() can mark/purge the session as cancelled while the runner still installs a plugin or commits openclaw.json in the background.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in a659ea2: the channels flow now passes beforePersistentEffect: () => wizardSession.lockCancellation() (src/gateway/server-methods/wizard.ts), so cancel() cannot mark the session cancelled once installs/config writes begin.

Comment on lines +245 to +247
return html`
<div class="channels-wizard__message">${t("channels.setup.doneTitle")}</div>
<div class="channels-wizard__note">${t("channels.setup.doneBody")}</div>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Render skipped setup as no changes

If the user selects Finished/Skip without configuring anything, the gateway finishes with channels missing/empty after runChannelsAddWizardFlow reports “No channel changes made.” This branch still renders “Channel configured” and “Configuration saved,” so the modal shows a false success state for a no-op setup; handle channels.length === 0 as a no-change completion instead.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in a659ea2: the done panel renders a dedicated no-changes state when the terminal result reports no configured channels (ui/src/pages/channels/wizard-view.ts, channels.setup.doneNoChanges*).

@steipete
steipete force-pushed the claude/channels-setup-redesign-f23f39 branch from 9672137 to b374027 Compare July 13, 2026 16:15

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b374027e5a

ℹ️ 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".

Comment thread ui/src/pages/channels/channels-page.ts Outdated
await context.channels.refresh(true);
if (channels.includes("whatsapp")) {
// Jump straight into QR pairing; the wizard modal renders the QR phase.
await context.channels.startWhatsApp(false);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve the WhatsApp account for QR pairing

When the wizard configures WhatsApp with a non-default account id, this completion path loses that id: runChannelsAddWizardFlow enables promptAccountIds, but the terminal result only carries channel ids, and startWhatsApp(false) sends web.login.start without accountId. In that case the gateway starts QR login for the provider's default account instead of the account the wizard just wrote, so scanning the modal's QR leaves the newly configured account unlinked; carry the configured WhatsApp account id through the wizard result and pass it to the web-login start/wait calls.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in a659ea2: the terminal wizard result now carries the configured channel/account pairs (additive accounts field), and the QR phase starts web.login.start/wait with that accountId (src/wizard/session.ts, ui/src/pages/channels/wizard-host.ts, ui/src/lib/channels/index.ts).

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Jul 13, 2026
@clawsweeper

clawsweeper Bot commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 13, 2026, 12:39 PM ET / 16:39 UTC.

Summary
Adds a guided Control UI channel-setup wizard backed by an additive Gateway wizard flow, a shared CLI/Gateway setup runner, client-deferred WhatsApp linking, and redesigned channel hub and detail views.

PR surface: Source +1343, Tests +309, Other +144. Total +1796 across 27 files.

Reproducibility: yes. the three defects are source-reproducible on this head: cancellation lacks a durable-effect lock, the terminal result contains no account identity, and empty completion reaches unconditional success UI. A real Gateway run has not yet been supplied.

Review metrics: 1 noteworthy metric.

  • Gateway protocol additions: 3 optional fields added. flow, channel, and terminal channels expand a cross-client protocol used by generated Swift/Kotlin models, so completion identity and compatibility must be correct before merge.

Stored data model
Persistent data-model change detected: serialized state: src/wizard/session.ts, unknown-data-model-change: src/wizard/session.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster
Relationship: canonical
Canonical: #106469
Summary: This PR is the canonical guided channel-setup implementation; the merged settings-language PR overlaps only in Channels page presentation and does not implement the wizard.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge readiness
Overall: 🦪 silver shellfish
Proof: 🦪 silver shellfish
Patch quality: 🦪 silver shellfish
Result: blocked until real behavior proof from a real setup is added.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • [P1] Fix cancellation locking, no-change completion, and account-scoped WhatsApp pairing.
  • [P1] Add redacted real-Gateway proof for successful channel setup, including a named WhatsApp account.
  • Rebase onto current main and rerun focused Gateway, wizard, WhatsApp, protocol-generation, and Control UI checks.

Proof guidance:

  • [P1] Needs real behavior proof before merge: The screenshots show the mock Gateway harness, not a real config write and channel authentication; add a redacted real-Gateway recording, terminal output, or logs covering at least one token channel and named-account WhatsApp QR setup, then update the PR body to trigger review or ask a maintainer to comment @clawsweeper re-review.

Risk before merge

  • [P1] Cancelling the modal can report cancellation while durable plugin installation or config mutation continues after the session is purged.
  • [P1] A non-default WhatsApp account can finish setup but receive a QR for the default account, potentially persisting or replacing credentials under the wrong account target.
  • [P1] A skipped setup is reported as successfully configured, leaving users with a false completion state.
  • [P1] The branch is behind current main and needs a review refresh against the merged settings-language implementation before its large UI changes can be safely assessed.

Maintainer options:

  1. Repair account and lifecycle semantics (recommended)
    Carry configured account IDs through the terminal protocol, lock cancellation at the existing persistent-effect boundary, distinguish no-change completion, rebase, and add real setup proof before merge.
  2. Pause the guided setup surface
    Close or substantially narrow the PR if maintainers do not want the Gateway wizard protocol to become the permanent Control UI channel-setup contract.

Next step before merge

  • [P1] Fix the three blocking defects, obtain contributor-owned real setup proof, rebase onto current main, and then have the likely UI/protocol owner decide whether to sponsor the new permanent setup surface.

Maintainer decision needed

  • Question: Should OpenClaw adopt a Control UI channel-setup wizard over the Gateway wizard protocol once account-scoped completion, cancellation, and no-change semantics are corrected?
  • Rationale: This adds a substantial first-time setup surface and a new cross-client Gateway protocol contract; implementation repair cannot decide whether that permanent product/API direction is desired.
  • Likely owner: steipete — The adjacent merged settings redesign and this proposed workflow make steipete the strongest available owner for the Control UI direction.
  • Options:
    • Sponsor after repair (recommended): Keep the shared wizard direction, require the three correctness fixes and real Gateway proof, then complete maintainer protocol and UX review.
    • Pause the protocol expansion: Keep channel setup in the established CLI and docs until maintainers choose a narrower or different Control UI integration boundary.

Security
Needs attention: Account identity is dropped before WhatsApp QR login, creating a concrete credential-association risk that must be fixed before merge.

Review findings

  • [P1] Lock cancellation before channel setup writes — src/gateway/server-methods/wizard.ts:57-61
  • [P2] Render empty completion as no changes — ui/src/pages/channels/wizard-view.ts:286
  • [P1] Carry the WhatsApp account through QR completion — packages/gateway-protocol/src/schema/wizard.ts:94
Review details

Best possible solution:

Keep the shared prompter-injected setup runner and additive protocol approach, but make completion account-scoped, lock cancellation before durable effects, model no-change as a distinct terminal outcome, rebase onto current main, and prove fresh and named-account setup through a real Gateway.

Do we have a high-confidence way to reproduce the issue?

Yes, the three defects are source-reproducible on this head: cancellation lacks a durable-effect lock, the terminal result contains no account identity, and empty completion reaches unconditional success UI. A real Gateway run has not yet been supplied.

Is this the best way to solve the issue?

No, not yet. Reusing the established channel wizard through an additive protocol is the right ownership boundary, but the proposed result shape and lifecycle handling are incomplete for supported named-account and cancellation behavior.

Full review comments:

  • [P1] Lock cancellation before channel setup writes — src/gateway/server-methods/wizard.ts:57-61
    Pass the runner's persistent-effect callback through to wizardSession.lockCancellation(). Without that gate, closing the Control UI session can mark and purge it as cancelled while plugin installation, config commit, or post-write hooks continue in the background.
    Confidence: 0.99
  • [P2] Render empty completion as no changes — ui/src/pages/channels/wizard-view.ts:286
    Handle a missing or empty configured-channel result separately from successful setup. The runner can finish with “No channel changes made,” but this view currently tells the user that configuration was saved and the channel was configured.
    Confidence: 0.98
  • [P1] Carry the WhatsApp account through QR completion — packages/gateway-protocol/src/schema/wizard.ts:94
    Return configured account identity rather than channel IDs alone and pass the selected WhatsApp accountId to web.login.start and web.login.wait. Interactive setup supports named accounts, so the current result starts pairing for the default account instead of the account just configured. This was discovered late on code unchanged since the prior b374027 review.
    Confidence: 0.99
    Late finding: first raised on code an earlier review cycle already covered.

Overall correctness: patch is incorrect
Overall confidence: 0.99

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against d8fb5b404ead.

Label changes

Label changes:

  • add merge-risk: 🚨 security-boundary: The current terminal result drops account identity, allowing WhatsApp QR credentials to be associated with the default account instead of the account the user selected.

Label justifications:

  • P2: This is a valuable but non-emergency setup improvement with blocking defects limited to the new workflow.
  • merge-risk: 🚨 compatibility: The PR refactors the existing CLI setup runner and expands a generated cross-client Gateway protocol, so regressions can affect CLI and native wizard consumers despite additive schemas.
  • merge-risk: 🚨 security-boundary: The current terminal result drops account identity, allowing WhatsApp QR credentials to be associated with the default account instead of the account the user selected.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦪 silver shellfish.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The screenshots show the mock Gateway harness, not a real config write and channel authentication; add a redacted real-Gateway recording, terminal output, or logs covering at least one token channel and named-account WhatsApp QR setup, then update the PR body to trigger review or ask a maintainer to comment @clawsweeper re-review.
Evidence reviewed

PR surface:

Source +1343, Tests +309, Other +144. Total +1796 across 27 files.

View PR surface stats
Area Files Added Removed Net
Source 20 1799 456 +1343
Tests 5 309 0 +309
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 148 4 +144
Total 27 2256 460 +1796

Security concerns:

  • [medium] Preserve account identity for channel credentials — packages/gateway-protocol/src/schema/wizard.ts:94
    A named-account setup can invoke QR login without accountId, causing the credential flow to target the provider default account rather than the account selected and written by the wizard.
    Confidence: 0.99

What I checked:

  • Cancellation remains unsafe around persistent effects: The channel-flow runner is created without wiring WizardSession.lockCancellation() into the runner's existing persistent-effect boundary, so a cancelled and purged UI session can continue plugin installation or config writes in the background. (src/gateway/server-methods/wizard.ts:57, b374027e5aab)
  • Terminal protocol loses account identity: The new terminal result reports only channel IDs, although interactive channel setup supports named account IDs; this is insufficient for account-scoped completion such as WhatsApp QR pairing. (packages/gateway-protocol/src/schema/wizard.ts:94, b374027e5aab)
  • Named-account setup is an established current behavior: Current channel CLI documentation states that interactive setup prompts for account IDs and writes account-scoped bindings, confirming that named accounts are a supported path the UI wizard must preserve. Public docs: docs/cli/channels.md. (docs/cli/channels.md:80, d8fb5b404ead)
  • No-change completion is presented as success: The wizard completion UI uses the configured-success copy even when the terminal channel list is absent or empty, contradicting the runner's no-channel-changes outcome. (ui/src/pages/channels/wizard-view.ts:286, b374027e5aab)
  • Prior findings remain on the same reviewed head: The current head is still b374027e5aabc329d8493f25586aeb63293536ce, the SHA reviewed in the previous ClawSweeper cycle, so the cancellation and no-change findings have not received a code update. (b374027e5aab)
  • Real behavior evidence is mock-only: The PR body explicitly says the screenshots and interactive walkthrough came from the offline mock Gateway harness; it does not show a real Gateway writing channel config or completing real channel authentication. (b374027e5aab)

Likely related people:

  • steipete: Authored this proposal and the merged unified-settings refactor that most recently established the current Channels UI structure and design boundary. (role: feature owner and adjacent merged-area contributor; confidence: high; commits: 2ac723282c84; files: ui/src/pages/channels/view.ts, ui/src/components/settings-ui.ts, ui/src/styles/settings.css)
  • BunsDev: Recent shipped work maintained WhatsApp QR refresh behavior across web.login.wait consumers, making this person relevant to account-scoped QR completion and client login behavior. (role: recent adjacent WhatsApp login contributor; confidence: medium; files: ui/src/pages/channels/channels-page.ts, src/gateway/server-methods/web-login.ts)
  • rubencu: Recent merged channel CLI work maintained channel discovery and guided-add behavior adjacent to the shared channels add runner being extracted here. (role: recent channel CLI contributor; confidence: medium; files: src/commands/channels/add.ts, docs/cli/channels.md)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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
  • 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.
Review history (1 earlier review cycle)
  • reviewed 2026-07-13T16:23:13.285Z sha b374027e5aabc329d8493f25586aeb63293536ce :: needs real behavior proof before merge. :: [P1] Lock cancellation before durable channel setup effects | [P2] Render an empty configured-channel result as no changes

@clawsweeper clawsweeper Bot added the merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. label Jul 13, 2026
@steipete
steipete force-pushed the claude/channels-setup-redesign-f23f39 branch from b374027 to 230088a Compare July 13, 2026 16:54

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 230088ae89

ℹ️ 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".

const result = await client.request<WizardNextResult>(
"wizard.start",
{ flow: "channels", ...(channel ? { channel } : {}) },
{ timeoutMs: WIZARD_STEP_TIMEOUT_MS },

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Honor wizard RPC timeout options

In Control UI this third argument is dropped: ChannelWizardHost passes the real GatewayBrowserClient, whose request wrapper only forwards (method, params) to the protocol client (ui/src/api/gateway.ts:619). When wizard.start stalls before returning a session id, the intended 120s timeout never fires and closing the modal cannot send wizard.cancel, leaving the gateway wizard session running and blocking later setup attempts; plumb request options through the browser client or enforce a local timeout.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in a659ea2 with a local timeout: wizard.start/next race a 120s ceiling in the controller (requestWithTimeout), and the stale-response path still cancels any session id that arrives late, so the gateway session cannot be wedged.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c233ace4e5

ℹ️ 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".

<span class="settings-row__desc">${description}</span>
</div>
<div class="settings-row__control">
<button type="button" class="btn btn--sm" @click=${() => props.onStartSetup(key)}>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restore detail access for unconfigured channels

For channels that are not yet configured, the redesigned hub renders only this Set up button; unlike connected rows, it never calls onShowDetail, and renderChannelDetail() is only mounted for selectedChannel. That removes the advanced schema form (renderChannelConfigSection) for unconfigured channels, so any channel without a complete interactive setup path—or users needing to edit fields not covered by the wizard—can no longer be configured from Control UI. Add a detail/advanced path for available rows instead of making the wizard the only action.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in a659ea2: available rows now open the detail overlay (tile/text is a real button), keeping the advanced schema config form reachable for unconfigured channels; Set up stays as the row control (ui/src/pages/channels/view.ts).

Comment on lines +35 to +38
if (this.deps.getContext()?.runtimeConfig.state.configFormDirty) {
this.blockedByDirtyConfig = true;
this.deps.requestUpdate();
return;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Surface dirty-config blocking inside the detail modal

When Run setup is clicked from an open channel detail after editing the advanced form, this guard sets only blockedByDirtyConfig; the warning is rendered on the page behind the still-open openclaw-modal-dialog fullscreen backdrop, so the user sees no feedback and the setup appears broken. Close the detail or render the save/reload warning inside the modal before returning.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in a659ea2: the save-or-reload warning also renders inside the detail overlay body when Run setup is blocked by a dirty config draft (ui/src/pages/channels/view.detail.ts).

@steipete
steipete force-pushed the claude/channels-setup-redesign-f23f39 branch from c233ace to 227b3bc Compare July 13, 2026 17:16

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 227b3bc5f2

ℹ️ 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".

this.stepIndex += 1;
this.setState({
phase: "step",
channel: this.channel,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve picked channel for browse-all wizard steps

When setup is launched from “More channels” (onStartSetup(null)), this.channel remains null after the user answers the channel select, and this branch passes that null into every follow-up step until the terminal result. renderChannelWizard derives the modal title/art and renderHelperLinks from wizard.channel, so the credential steps after choosing Telegram/Slack/etc. are rendered as generic and lose the channel-specific setup/docs links. Preserve the selected channel before applying the next step, or have the gateway include the active channel on step results.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in a659ea2: the controller adopts the picked channel from select answers for presentation (title/art/helper links) while completion behavior still keys off the gateway-reported accounts.

steipete added 8 commits July 13, 2026 11:40
Adds wizard.start flow=channels gateway RPC (additive protocol change) that
drives the shared channel-setup wizard (openclaw channels add) over the
session step protocol. Control UI Channels page becomes a card hub with
plugin-art covers, guided per-channel setup modal (WhatsApp QR pairing via
web.login.*, BotFather/Slack/Discord helper links), and a detail overlay
hosting the full schema config form.
steipete added 9 commits July 13, 2026 11:40
…result

Replaces the Control UI's channel-adoption heuristic with the authoritative
outcome: the channels flow reports its actual selection after config commit,
the wizard session surfaces it as an additive channels field on the terminal
wizard.next result, and the UI keys WhatsApp QR linking off that.
…guage

Hub becomes settings-language rows (44px art tiles, status dots, uppercase
section headings, hairline groups) instead of a card gallery; the detail
overlay hosts the migrated per-channel settings sections with Run setup in
the header. Wizard dialog and tile/cover styles move to spacing tokens.
Split mock-dev channel/plugin fixtures into their own modules, move wizard
runner types/defaults to server-methods/wizard.ts, extract the channels page
wizard host and nostr profile HTTP ops, and unexport internal-only types
(incl. the unused config-form SECTION_META barrel re-export).
- lock wizard cancellation before durable installs/config writes
- report configured channel accounts on the terminal wizard result and
  start WhatsApp QR pairing for that account (web.login accountId)
- forward request options through the browser gateway client so wizard
  RPC timeouts apply
- render skipped setup as a no-change completion
- keep detail/advanced config reachable for unconfigured channels
- surface the dirty-config warning inside the detail overlay
- adopt the picked channel for wizard title/links in browse-all flows
@steipete
steipete force-pushed the claude/channels-setup-redesign-f23f39 branch from 227b3bc to a659ea2 Compare July 13, 2026 18:48
@steipete
steipete merged commit e3c5821 into main Jul 13, 2026
14 checks passed
@steipete
steipete deleted the claude/channels-setup-redesign-f23f39 branch July 13, 2026 18:49

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a659ea29fc

ℹ️ 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".

accountId: accountIds[channel] ?? DEFAULT_ACCOUNT_ID,
})),
);
await prompter.outro("Channels updated.");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Do not prompt after locking wizard cancellation

When the Control UI channel wizard reaches the durable commit point, beforePersistentEffect now calls wizardSession.lockCancellation(), but the flow still emits this final outro note after the commit/hooks. If the user closes the modal while the commit is finishing or on the final “Channels updated” note, wizard.cancel returns false because cancellation is locked, the client drops its sessionId, and the server session remains running forever waiting for an answer to this note, blocking later wizard.start calls with “wizard already running.” Make the gateway flow terminal after durable effects, or unlock/avoid any client prompt after the lock.

Useful? React with 👍 / 👎.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 14, 2026
…enclaw#106469)

* feat(ui): redesign Channels page with guided channel setup wizard

Adds wizard.start flow=channels gateway RPC (additive protocol change) that
drives the shared channel-setup wizard (openclaw channels add) over the
session step protocol. Control UI Channels page becomes a card hub with
plugin-art covers, guided per-channel setup modal (WhatsApp QR pairing via
web.login.*, BotFather/Slack/Discord helper links), and a detail overlay
hosting the full schema config form.

* test(ui): cover channel wizard controller; refresh channels view test props

* chore(mock): use non-token-shaped wizard placeholder

* test(gateway): scanner-safe auth local in channels wizard test

* fix(ui): cancel gateway wizard session on channels page disconnect

* fix(ui): adopt browse-all channel pick and guard dirty config before setup

* fix(ui): cancel gateway session created by a stale wizard.start

* fix(ui): adopt multiselect channel picks; drop redundant String()

* fix(ui): track all wizard-adopted channels so WhatsApp QR runs regardless of pick order

* feat(gateway): report configured channels on terminal channel-wizard result

Replaces the Control UI's channel-adoption heuristic with the authoritative
outcome: the channels flow reports its actual selection after config commit,
the wizard session surfaces it as an additive channels field on the terminal
wizard.next result, and the UI keys WhatsApp QR linking off that.

* refactor(ui): align channels hub with the unified settings design language

Hub becomes settings-language rows (44px art tiles, status dots, uppercase
section headings, hairline groups) instead of a card gallery; the detail
overlay hosts the migrated per-channel settings sections with Run setup in
the header. Wizard dialog and tile/cover styles move to spacing tokens.

* chore(i18n): translate channels hub/setup strings; refresh raw-copy baseline

* refactor: satisfy LOC ratchet and dead-export gates

Split mock-dev channel/plugin fixtures into their own modules, move wizard
runner types/defaults to server-methods/wizard.ts, extract the channels page
wizard host and nostr profile HTTP ops, and unexport internal-only types
(incl. the unused config-form SECTION_META barrel re-export).

* chore(i18n): retranslate channels strings on rebased locale bundles

* fix(test): drop redundant String() in channels wizard e2e

* fix: address channel-wizard review findings

- lock wizard cancellation before durable installs/config writes
- report configured channel accounts on the terminal wizard result and
  start WhatsApp QR pairing for that account (web.login accountId)
- forward request options through the browser gateway client so wizard
  RPC timeouts apply
- render skipped setup as a no-change completion
- keep detail/advanced config reachable for unconfigured channels
- surface the dirty-config warning inside the detail overlay
- adopt the picked channel for wizard title/links in browse-all flows

* fix(ui): local wizard RPC timeout; translate no-change completion strings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui channel: whatsapp-web Channel integration: whatsapp-web commands Command implementations gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant