Skip to content

refactor: remove native Channels page - #1930

Merged
bkudiess merged 5 commits into
mainfrom
bkudiess-remove-channels-page
Nov 6, 2026
Merged

bkudiess merged 5 commits into
mainfrom
bkudiess-remove-channels-page

Conversation

@bkudiess

@bkudiess bkudiess commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Companion kept a native Channels page that duplicated the channel setup and management the Gateway Dashboard already provides.

User Impact

User impact: the native Channels page is removed. Users connect and manage channels in the Gateway Dashboard, which now opens at its Channels view from every former entry point. The Dashboard itself and the read-only channel health on the Connection page, in the tray tooltip, and in the Command Center are unchanged.

  • Now opens the Dashboard Channels view: the channels and activity hub pages (openclaw://hub/channels, openclaw://hub/activity, MCP app.navigate) and the command palette's "Go to Channels"; openclaw://activity without a recognized filter, openclaw://history, openclaw://notifications, openclaw://notification-history, and openclaw://activity-stream; the owner-menu "Pair device" item; tray actions that targeted those hub tags; the "Open Channels" action on channel-problem notifications; the "Open Activity Stream" button on the one-time tip notification; and verified setup receipts for Channels, WhatsApp, or Telegram.
  • Unchanged: openclaw://activity?filter=session|usage|node still opens Sessions, Usage, or Instances, and openclaw://channels still copies the channel summary.
  • Setup Ready screen: it now offers only "Talk to my agent". The "Connect channels" card, the "What would you like to do first?" prompt, and the "Recommended" badge are removed. This is a product decision for this PR; users connect channels in the Dashboard afterwards.
  • Setup hand-off safety: a setup receipt stays bound to the Gateway and identity that completed setup. Changed authority blocks the browser hand-off, and a browser failure keeps the receipt for an explicit Retry. Receipts saved by earlier builds still load. New receipts no longer store the unused ChannelId field.
  • Saved pins: a Channels pin saved by an earlier build is no longer shown. Its stored tag is preserved and no migration was added.
  • Corrections to earlier versions of this description:
    • Legacy hub/activity links open the Dashboard Channels view, not native Notifications.
    • It said tray channel start/stop was unchanged. The tray has had no channel start/stop item since Companion application refactoring #272 (Companion application refactoring). This PR removes the unreachable handler, and channels are managed in the Dashboard.
    • It said the persisted receipt format, including ChannelId, was unchanged. New receipts omit ChannelId; receipts that still carry it load normally.

Why This Change Was Made

The page duplicated functionality the Gateway already owns. This removes the page and the code only it used, and routes the former entry points through WorkspaceNavigation.Dispatch to the existing GatewayDashboardLauncher. A small DashboardBrowser seam lets full-app tests observe and fail the final browser hand-off. It is a pass-through outside fixture mode and runs strictly after the authority check. The last commit removes channel leftovers that no reachable code used any more.

What was removed
  • Used only by the page: the page with its models, diagnostics, localization, fixture support, and tests; the operator client wrappers for channels.status, channels.logout, web.login.start, and web.login.wait, plus the detailed channels.start wrapper; and ChannelConfigPatchBuilder, which merged channel bot tokens into config.patch.
  • Lost their last reachable caller with the page: the StartChannelAsync and StopChannelAsync wrappers (channels.start and channels.stop) and the derived SetupNativeTarget.ChannelId.
  • Already unreachable on main: the tray channel toggle and its channel: action branch (their menu item was removed in Companion application refactoring #272), the channelsummary tray action, MenuDisplayHelper.GetChannelStatusIcon, ChannelHealth.DisplayText, and four unused localization keys in each of the six locales.

Evidence

Head 4f8389592bad581b3f3f3a12a2be67105849f8b7 (tree 8efdf508166fec18ef9ac13da2542d03a96d12cb). CI is green on this head: run 42144527287, attempt 3. Every job that ran passed, and 7 release, publish, signing, and version-reservation jobs were skipped. Attempts 1 and 2 each failed one UI-job test unrelated to this PR (a known chat layout test host crash, then a voice-history fixture timeout that also failed on an unrelated PR; see Validation), so after each I reran only the failed jobs. CI built merge commit bd5647462b06b5e9ea4abf8421905e8e23c4a034, whose tree equals this head tree, so it tested exactly this code. It also ran the real WSL Gateway jobs (Setup and connect, Network recovery, and Revocation recovery; all passed), which cover setup and connect but not the Channels hand-off. CodeQL run 42144527261 passed both scans on this head.

The four full-app tests below start the real Companion against the isolated synthetic fixture Gateway with the operating-system browser launch suppressed and logged. They prove the hand-off reaches the browser step with the right target. They do not show a real browser opening the Dashboard.

Behavior Proof (class GatewayFixtureUiTests unless named) Result
A valid receipt reaches the bound Gateway through App, WindowManager, SetupNativeHandoffLauncher, and GatewayDashboardLauncher with its credential resolver LegacyChannelsReceipt_OpensTheGatewayDashboardChannelsView Passed in CI on this head. One openclaw.setup.verify, receipt consumed, no failure dialog, one dispatch to http://<host>:<port>/channels. Reaching dispatch means the resolver returned a credential; none is visible.
A revoked identity blocks dispatch before any browser launch LegacyChannelsReceipt_RevokedIdentityIsRejectedBeforeAnyDashboardLaunch, screenshot 1 Passed in CI on this head. The persisted identity is rotated while verification is held; the dialog offers Close only, the receipt is consumed, and there are zero launches.
A replaced Gateway blocks dispatch SetupNativeChatPresentationTests.SetupDashboardDispatchRequiresTheOriginalGatewayAndIdentity Passed in CI on this head. Launcher-level unit coverage only; not repeated in the full app (see Not verified).
A browser failure keeps the receipt and Retry opens the Dashboard LegacyChannelsReceipt_BrowserFailureKeepsTheReceiptAndRetryOpensTheDashboard, screenshot 2 Passed in CI on this head. One simulated failure shows Retry and Close with the receipt kept; Retry dispatches (a second verification) and consumes the receipt.
Channels navigation and a failed-browser retry ChannelsNavigation_OpensTheGatewayDashboardAndOffersRetryWhenTheBrowserFails, screenshot 3 Passed in CI on this head. app.navigate to channels and the owner-menu "Pair device" each dispatch to /channels. With one failure armed, "Pair device" shows "Dashboard could not open." with Retry, and Retry dispatches again.
A receipt saved by an earlier build still loads SetupDashboardHandoffStoreTests.PendingReceipt_WithLegacyChannelId_StillLoads (unit test; no real earlier build was run) Passed in CI on this head. WhatsApp and Telegram receipts that still carry the old ChannelId field load with their destination and session key. A local mutation that rejects unknown JSON members ([JsonUnmappedMemberHandling(Disallow)] on SetupNativeTarget) failed 2 of the class's 51 results. SetupDashboardHandoffStore.cs is identical to main, the SetupNativeDestination values (Chat 0, WhatsApp 1, Telegram 2, Channels 3) are unchanged, and the fixture tests issue receipts with the production store.
Screenshots: the three hand-off failure dialogs

The screenshots come from the test-results-ui artifact of CI run 42144527287, attempt 1, produced by ./scripts/test-gateway-fixture.ps1 -Screenshots on a GitHub-hosted windows-2025-vs2026 runner. The only endpoint visible is the throwaway loopback fixture Gateway. The machine name shown is the runner's, and there are no credentials, user names, or local paths.

Dialog "Could not open your setup destination" after the Gateway identity changed, offering Close only

  1. Identity revoked while setup verification was held: the changed-authority dialog offers Close only, and the app log has no browser launch line for this run.

Dialog after a verified setup receipt hit a browser failure, offering Retry and Close

  1. Browser launch failed for a verified receipt: the dialog offers Retry and Close, the receipt is kept, and Retry then dispatched to /channels.

Dashboard could not open dialog from Pair device with Retry and Close, and a Connection toast

  1. Owner-menu "Pair device" with one browser failure armed: "Dashboard could not open" with Retry and Close, plus a toast with a Connection button.
App log lines, screenshot hashes, and supporting tests

App log lines from the same CI artifact. The app log redacts the host, and each run uses its own loopback port.

run 485f0cf7d8e54686ab3ad48181870182 (valid receipt)
[INFO] Gateway fixture mode: suppressed Dashboard browser launch: http://<host>:49186/channels

run ae812442f26e42ae910a1e7f03005503 (identity revoked)
[WARN] Native setup destination rejected changed authority (SetupNativeOwnershipException).

run 09fa99f6e21f45578c6dc147bfcb049d (browser failure, then Retry)
[INFO] Gateway fixture mode: simulated Dashboard browser failure: http://<host>:49345/channels
[WARN] Native setup destination failed (InvalidOperationException); phase: none; result: Unavailable.
[INFO] Gateway fixture mode: suppressed Dashboard browser launch: http://<host>:49345/channels

run 42058ec198f940dc9c62777facbd9a4f (navigation)
[INFO] Gateway fixture mode: suppressed Dashboard browser launch: http://<host>:65459/channels
[INFO] Gateway fixture mode: suppressed Dashboard browser launch: http://<host>:65459/channels
[INFO] Gateway fixture mode: simulated Dashboard browser failure: http://<host>:65459/channels
[INFO] Gateway fixture mode: suppressed Dashboard browser launch: http://<host>:65459/channels

The fixture Gateway request logs in the same artifact record openclaw.setup.verify 1 time for the valid receipt, 1 for the revoked identity, 2 for the browser failure and Retry, and 0 for navigation.

Screenshot file SHA-256 Bytes
channels-receipt-identity-revoked.png F4A8BE13CD5A8AEBFEB4F44486C3053FB1F72D3EDCA4144202A3198301DF5CD3 89,960
channels-receipt-browser-failed.png E8BEFDC2324FDEF5F87A4BDBE962146B14E63BE78B9211645D99274591B0A1B6 88,737
channels-navigation-browser-failed.png F523B9462C7C3EBE0DA70AF3ACD7CB09EBA1D57AC1BD3B706A89B2352C14CC1B 76,288

Supporting tests. Unless noted, each passed in the CI Tray test results for this head:

  • DashboardBrowserTests (6 tests, 7 cases): ordinary runs hand the exact URL to Windows and ignore the failure marker; fixture runs never reach Windows and log only the redacted URL; the simulated failure is consumed once; concurrent launches consume the marker exactly once (FixtureRun_ConcurrentLaunchesConsumeTheFailureMarkerExactlyOnce); an invalid fixture context fails closed.
  • SetupNativeChatPresentationTests.SetupDashboardDispatchRequiresTheOriginalGatewayAndIdentity: dispatch needs the original Gateway and identity.
  • WorkspaceRoutingBoundaryTests.RetiredChannelRoutes_OpenDashboardInsteadOfAnEmptySettingsPage and the DeepLinkParserTests route theories: retired Channels and Activity routes open the Dashboard, and the filtered Activity links keep their pages.
  • SetupDashboardHandoffStoreTests.PendingReceipt_WithLegacyChannelId_StillLoads: receipts that still carry the old ChannelId field load.
  • PinnedPagesTests.Visible_OmitsUnknownTags_ButStorageKeepsThem: a retired pin is hidden but its tag is preserved.
  • AiReadyPageRenderingTests.VerifiedReadyPage_ShowsChatActionWithoutIssuingOrFinalizing (Tray UI test, Light and Dark): the Chat-only Ready page. Passed for both themes in the Tray UI step of CI attempts 2 and 3.

Change Type

  • Bug fix
  • Feature
  • Refactor
  • Docs or instructions
  • Tests or validation
  • Security hardening
  • Chore or infrastructure

Scope

  • Tray or WinUI UX
  • Windows node capability
  • Local MCP or winnode
  • Gateway, connection, or pairing
  • Setup or onboarding
  • Permissions, privacy, or security
  • Tests, CI, or docs

Required proof pools

  • windows-winui-interactive: the CI full-app fixture tests prove the Channels hand-offs with the operating-system browser launch suppressed. A local interactive run on the maintainer's real desktop showed the deep link and Search "Go to Channels" opening the Dashboard Channels view in Microsoft Edge (see Real Behavior Proof). The receipt, "Pair device", and Retry paths are proven with the fixture only.

Validation

Results for head 4f8389592bad581b3f3f3a12a2be67105849f8b7 (tree 8efdf508166fec18ef9ac13da2542d03a96d12cb). The local build, Shared, Tray, focused, and documentation runs used the uncommitted working tree that was then committed unchanged as this head; that association was recorded manually from the diff hash and file write times. The SetupEngine run used the committed head.

  • .\build.ps1 - passed (exit 0).
  • dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore - passed: 4,820 total, 4,795 passed, 25 skipped, 0 failed. That is 36 fewer than the previous head because the removed GetChannelStatusIcon (5), ChannelHealth.DisplayText (26), and StartChannel_RequiresSuccessfulGatewayAcknowledgement (5) cases are gone.
  • dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore - passed: 5,041 passed, 0 skipped, 0 failed (26 fewer: the removed GetChannelStatusIcon theory cases).
  • dotnet test .\tests\OpenClaw.SetupEngine.Tests\OpenClaw.SetupEngine.Tests.csproj --no-restore - passed: 2,594 total, 2,590 passed, 4 skipped, 0 failed.
  • Focused SetupDashboardHandoffStoreTests (51 results) - passed 51/51. With [JsonUnmappedMemberHandling(Disallow)] temporarily added to SetupNativeTarget, 2 failed; after removing it, 51/51 passed again.
  • .\scripts\validate-docs.ps1 - passed (72 Markdown files, 7 proof pools). git diff --check - clean. The diff against main is 98 files, +1,212 and -9,172 lines.
  • CI run 42144527287, attempt 1: every job passed except UI, functional, and accessibility tests. Its Tray UI step passed 205 tests, then the test host crashed in ReactorChatLayoutProofTests.ReasoningPicker_ReflectsInheritedDefaultWithoutOverridingExplicitChoices, a known crash listed in docs/CI_FAILURES.md. This PR changes no chat or Reactor files. CI Gate failed only because it aggregates that job. In the same attempt the mock Gateway scenarios passed 61/61 and the fixture profile app tests passed 34/34. I reran the failed jobs once. In attempt 2 the Tray UI step passed (643 discovered, 636 passed, 7 skipped), the fixture profile app tests passed 34/34, and the mock Gateway scenarios passed 60/61, including all four Channels hand-off tests. The one failure, GatewayFixtureUiTests.HistoricalFractionalVoiceConversationRendersWithoutLoadingPlaceholder, timed out after its 20-second fixture wait for the restored historical voice reply (fixture run 336dbee1c8734382af4aa61974b7975f). This PR does not change the chat timeline, voice, or session-restore code. Its only change to that test file outside the pinned-pages test adds an optional timeout to the shared WaitUiAsync helper, which this test does not pass, so it kept the 20-second default. The test passed in attempt 1 on the same merge commit and failed the same way on unrelated feat: find conversations and settings through shared navigation search #2016 (feat: find conversations and settings through shared navigation search) in run 42126153991, attempt 2. I reran the failed jobs once more. In attempt 3 every job passed: the Tray UI step passed 636 of 643 discovered (7 skipped), the mock Gateway scenarios passed 61/61, the fixture profile app tests 34/34, the functional UI tests 19/19, and the accessibility tests 21 executed, 21 passed.
  • CI Tray tests for this head (test-results-tray artifact): 5,041 passed, including every supporting test listed under Evidence.
  • CodeQL run 42144527261 (pull_request, this head, attempt 1): C# security and Actions security passed.
Earlier head 92f95d9 (superseded results)

These ran on head 92f95d9bf9e96986fb285be3a00f45b2d6220f9c, before the final cleanup commit, and are kept for history. They are not claimed for the current head.

  • dotnet test .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -r win-x64 --filter 'FullyQualifiedName~NativeSharedFlowTests|FullyQualifiedName~AiReadyPageRenderingTests' - passed: 39.
  • Local fixture app run: 60/61 passed. ApprovalCardsGateAllowAndResolveThroughGateway failed in the screenshot helper (Sequence contains no elements) and passed 4 of 4 reruns with the same executable. A focused local run of the four new tests plus seven neighboring test cases (pinned pages, shared root dialog, and settings disconnect pruning) passed 11/11.
  • DashboardBrowserTests passed 10 consecutive runs. Its concurrency regression test failed on the earlier check-then-delete code (6 of 8 concurrent launches took the failure marker) and on a rename-based claim (8 of 8). It passes with the in-process lock (25 rounds of 8 launches).
  • CI run 42124340738: attempt 1 failed only GatewayHandshakeObservationTests.RefusedTransport_ReportsNetworkWithoutClassifyingStackFrames (expected Network, actual Server), a port-dependent test unrelated to this PR, and attempt 2 passed. An earlier failure that this PR did cause (PinnedPages_DisconnectRetainsDisabledRowsAndFocus_AndReconnectEnablesSameRows) was fixed on that head.
  • CodeQL run 42131088587: both scans passed on that head.

Real Behavior Proof

  • Environment tested (CI fixture run): the full Companion app launched against the isolated synthetic loopback fixture Gateway (OPENCLAW_GATEWAY_FIXTURE=1, isolated OPENCLAW_TRAY_* data directories, Windows browser launch suppressed and logged) on a GitHub-hosted windows-2025-vs2026 runner in CI run 42144527287. No real Gateway, browser, or user profile was used in this run. The separate real-profile run is described below.
  • PR head or commit tested: 4f8389592bad581b3f3f3a12a2be67105849f8b7 (tree 8efdf508166fec18ef9ac13da2542d03a96d12cb), built by CI as merge commit bd5647462b06b5e9ea4abf8421905e8e23c4a034 with the same tree.
  • Exact steps or command run: CI ran ./scripts/test-gateway-fixture.ps1 -AppPath .\src\OpenClaw.Tray.WinUI\bin\Debug\net10.0-windows10.0.22621.0\win-x64\OpenClaw.Tray.WinUI.exe -ArtifactsDirectory .\TestResults\GatewayFixture -Screenshots.
  • Evidence after fix: the three screenshots, the app log lines, and the fixture Gateway request counts under Evidence, plus the CI trx for the four tests (all passed).
  • Observed result: the valid receipt reached one suppressed dispatch to /channels after one verification. The revoked identity was rejected with Close only and no dispatch. The browser failure kept the receipt, offered Retry, and the retry dispatched after a second verification. Navigation and "Pair device" dispatched to /channels, and the armed failure produced the "Dashboard could not open" dialog and Retry.
  • Real-profile run (local, maintainer-approved, text only): on 2026-11-05 at 20:00 PST (04:00 UTC on 2026-11-06), the local Debug build of this head (src\OpenClaw.Tray.WinUI\bin\Debug\net10.0-windows10.0.22621.0\win-x64\OpenClaw.Tray.WinUI.exe, built from the working tree that was committed unchanged as this head, as recorded under Validation) ran without isolation on the maintainer's real profile against the existing paired local Gateway at 127.0.0.1:18789 (Control UI 2026.10.6). No Connection, setup, or pairing setting was changed. The app connected with its stored device token (log: "Pairing status: Paired", "Node status: Connected").
    • Deep link: running OpenClaw.Tray.WinUI.exe openclaw://hub/channels forwarded the link to the running app (log: Received deep link via IPC, Handling deep link). Microsoft Edge opened a new tab at http://127.0.0.1:18789/channels, with no token in the URL, showing the Dashboard Settings > Channels view: "No channels connected yet. Pick one below to get started.", guided setup rows for WhatsApp, Telegram, Discord, Google Chat, Slack, Signal, iMessage, and Nostr, "More channels…", and "DM access requests".
    • Search: Ctrl+E Search > "Go to Channels" (subtitle "Gateway channels") opened a second Edge tab at the same URL with the same view. The app stayed on Home, and no native Channels page appeared.
    • Evidence: the Edge address bar value 127.0.0.1:18789/channels and the page text, read through UI Automation, and the app log lines above. No screenshot is attached because the Dashboard sidebar showed the maintainer's personal chat history.
  • Screenshot or artifact links verified? (Yes/No/N/A): Yes. The three attachment links were downloaded after publishing and their SHA-256 hashes match the table under Evidence.
  • Not verified or blocked:
    • A replaced Gateway and the final authorizer hold are covered at launcher level only. The full-app test covers identity revocation.
    • Hand-off from a receipt written by a real earlier-build installer was not exercised. The unit test above covers loading a receipt that carries the old ChannelId field. That an earlier build ignores the field's absence is by code inspection only: it computed ChannelId from the destination and never read it from JSON.
    • ConnectionPage saved-row "Open Dashboard" and other direct Launcher.LaunchUriAsync callers bypass the new seam and are unchanged. The tests only exercise launches made through the app's GatewayDashboardLauncher.
    • The real-profile run covered only the openclaw://hub/channels deep link and Search "Go to Channels". Setup receipt hand-offs, "Pair device", the other legacy links, and Retry after a browser failure were proven only with the fixture, which suppresses the browser. No WSL Gateway was used. An earlier isolated native Gateway attempt (OpenClaw 2026.10.9) failed before Gateway startup because the isolated Node runtime install was denied access. That task-owned patch was torn down.
    • The full-app fixture tests ran locally only on the previous head. On this head they ran in CI.
    • The shared autoreview helper was not run because it sends code to an external service. An independent review of the previous head found one P2 (the once-only failure marker was not atomic across concurrent launches), fixed with an in-process lock and a regression test. An independent review of the final cleanup commit reported no P0 to P3 findings.
    • Isolation: no clean real-profile comparison is claimed. A non-isolated Companion and a Gateway session host that this work did not start were running on the same machine during the local runs. One earlier unit-test run on this branch coincided with changes to five chat-metadata and log files under the real per-user local profile; attribution was not established. The real-profile run used the real profile on purpose. A metadata-only before/after listing of %APPDATA%\OpenClawTray and %LOCALAPPDATA%\OpenClawTray showed only writes a connected session makes: the log, diagnostics, and last chat state grew or were rewritten, run.marker was removed, and gateways.json and the device identity file were rewritten at unchanged sizes during the handshake. No file contents were read.

Security Impact

  • New permissions or capabilities? (Yes/No): No.
  • Secrets or tokens handling changed? (Yes/No): No. Credential storage and resolution are unchanged. The page's channel credential form, which sent bot tokens to the Gateway through config.patch, is removed with the page. In fixture mode the new seam logs only the origin and first path segment of the target, never the credential or query. Outside fixture mode it is a pass-through.
  • New or changed network calls? (Yes/No): No. None were added. The client no longer sends channels.status, channels.start, channels.stop, channels.logout, web.login.start, or web.login.wait, nor the page's config.patch requests for channel credentials. Channel navigation reuses the existing Gateway Dashboard launcher.
  • Command or tool execution surface changed? (Yes/No): No.
  • Data access scope changed? (Yes/No): No.
  • If any answer is Yes, explain the risk and mitigation: N/A. The one security-relevant surface is the setup hand-off authority chain (the GatewayDashboardLauncher authorizer hook, WindowManager.OpenSetupDashboard, and the consume-once rule in SetupNativeHandoffLauncher). It is re-routed but not weakened. The fixture seam is gated on the fixture isolation context, runs strictly after the authorizer, fails closed on an invalid fixture context, and does nothing outside fixture mode.

Compatibility and Migration

  • Backward compatible? (Yes/No): No for the UI: the native Channels page is intentionally removed and the setup Ready screen is Chat-only. Setup receipts saved by earlier builds still load, and deep links and app.navigate targets keep working and open the Gateway Dashboard Channels view. New receipts omit the unused ChannelId field.
  • Config or environment changes? (Yes/No): No.
  • Migration needed? (Yes/No): No. A Channels pin saved by an earlier build is hidden, and its stored tag is preserved.
  • If yes, list the exact upgrade steps: N/A.

Review Conversations

  • I replied to or resolved every bot review conversation addressed by this PR.
  • I left unresolved only conversations that still need maintainer judgment.

This PR has no inline review threads or reviews. ClawSweeper posts its findings as a top-level comment. Findings on earlier heads were addressed, and its latest review (head 92f95d9b) reported none.

@clawsweeper

clawsweeper Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

🦞👀
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.

@clawsweeper clawsweeper Bot added P2 Normal priority bug or improvement with limited blast radius. merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 30, 2026
@clawsweeper

clawsweeper Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex review: needs maintainer review before merge.

What this changes

This PR removes native channel management, redirects former entry points to the Gateway Dashboard, and makes setup completion Chat-only.

Example: Open openclaw://hub/channels.

  • Before: Companion opens its native Channels page.
  • After: Companion opens the connected Gateway Dashboard's /channels view.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Coherent owner-approved removal with preserved compatibility and authority boundaries, supported by current-head app evidence and passing CI within the documented fixture limits.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (logs): Current-head Windows Companion fixture runs exercise navigation, allowed receipt dispatch, persisted-identity revocation with zero dispatches, and browser-failure retry; launcher coverage additionally changes authority between credential resolution and final dispatch, while inspected screenshots show the resulting recovery dialogs.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: Companion exposes channel setup and management alongside the Gateway Dashboard's management surface.
Reason: The established feature owner explicitly chooses one management surface, with compatibility handling for existing entry points and receipts.

Merge readiness

✅ Ready for maintainer review

Keep open: the feature owner's deliberate channel-management cutover is not on main, and this review found no actionable introduced defect.

Priority: P2
Reviewed head: 4f8389592bad581b3f3f3a12a2be67105849f8b7

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The supplied fixture runs stop at browser dispatch and do not demonstrate a real browser loading the Gateway Dashboard.
Agent review details

How this fits together

Companion receives navigation requests and saved setup receipts, resolves Gateway credentials, validates setup authority, and hands an authenticated Dashboard URL to Windows.

flowchart TD
A[Links and navigation] --> B[WorkspaceNavigation]
B --> E[GatewayDashboardLauncher]
C[Saved setup receipt] --> D[Setup verification and authority]
D --> E
E --> F[DashboardBrowser]
F --> G[Windows browser]
Loading

Technical review

Best possible solution:

Retire the duplicate native owner and reuse existing navigation, Dashboard launching, and receipt validation while preserving read-only health and saved-state compatibility.

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

This is an intentional refactor rather than a reported defect; main still contains the native workflow being retired.

Is this the best way to solve the issue?

The invariant is that retiring channel management must preserve navigation compatibility, receipt authority, explicit retry, and read-only health, which the existing owners and focused browser adapter support.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 4aee38a1bfaa.

Provenance checked

  • Native Channels page and its exclusive protocol helpers changes intended behavior with a stated reason (Rebuild the Channels page #430: Provide native status cards, configuration, channel controls, and QR linking.)
  • Verified setup destinations and receipt authority changes intended behavior with a stated reason (feat: guide Windows onboarding from setup to native AI tasks #1531: Carry verified Gateway, identity, agent, model, and session ownership into useful post-setup tasks.)
  • Post-restart Ready admission keeps the original intent (d318127: Finish setup and verify the selected Gateway and model before presenting Ready.)
  • Rejected configuration secret protection keeps the original intent (0a68951: Keep submitted credentials out of failed configuration responses and diagnostics.)
  • Saved page pins changes intended behavior with a stated reason (7967d50: Offer Gateway-scoped native page shortcuts while retaining unknown stored tags.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Karen: Raw commit 3a58bf3 adds src/OpenClaw.Tray.WinUI/Presentation/SetupNativeNavigationRequest.cs:18 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 3a58bf34902f; files: src/OpenClaw.Tray.WinUI/Presentation/SetupNativeNavigationRequest.cs)
  • Scott Hanselman: Raw commit 0a68951 adds src/OpenClaw.Shared/OpenClawGatewayClient.cs:1709 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 0a68951e794d; files: src/OpenClaw.Shared/OpenClawGatewayClient.cs)

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Production and test delta Production +271/-4692; tests +805/-2290 Production excludes localization, documentation, and icons; the retained browser seam and authority/retry coverage support a substantial removal of duplicate functionality.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: A deliberate user-facing management and onboarding change with limited blast radius.
  • merge-risk: 🚨 compatibility: Native Channels, its saved-pin visibility, and the setup choice intentionally change; the feature owner explicitly accepts this cutover and preserves legacy routes and receipt loading.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (3 earlier review cycles)
  • reviewed 2026-10-30T01:07:15.973Z sha 93a9e93 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-30T16:05:44.404Z sha 8e76740 :: needs real behavior proof before merge. :: none
  • reviewed 2026-11-05T23:37:48.332Z sha 92f95d9 :: needs maintainer review before merge. :: none

Reviewed November 5, 2026, 10:10 PM ET / November 6, 2026, 03:10 UTC (Revision 4).

@bkudiess bkudiess mentioned this pull request Oct 30, 2026
6 of 16 tasks
@bkudiess

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 30, 2026
Remove the native Channels page, its visualization, and the models,
diagnostics, localization, fixtures and tests that only it used. Users
connect and manage channels in the Gateway Dashboard.

- WorkspaceNavigation.Dispatch is the single owner that routes the channels
  and activity entry points to the Dashboard channels view.
- Channel health and the tray Start/Stop channel actions are unchanged, and
  persisted setup receipts keep their ChannelId so older receipts still load.
- Setup Ready offers Chat only. A legacy WhatsApp, Telegram or Channels
  receipt opens the Dashboard channels view. Dispatch is rejected when the
  verified Gateway or identity changed or the setup deadline already
  expired, a failed browser launch keeps the receipt for retry, and a
  launched browser consumes it because it cannot be withdrawn.

Co-authored-by: Copilot App <[email protected]>
@bkudiess
bkudiess force-pushed the bkudiess-remove-channels-page branch from 8e76740 to 5835b47 Compare November 5, 2026 20:25
Route the final Dashboard browser hand-off through DashboardBrowser. Fixture
runs log the redacted launch target instead of opening a browser and can ask
for one simulated failure, so full-app tests can observe whether dispatch
happened. Ordinary runs pass the URL straight to Windows. The seam sits after
GatewayDashboardLauncher's final authority check and cannot widen it.

- Add full-app fixture tests for an allowed Channels receipt, a receipt whose
  identity was revoked (no launch), a failed launch kept for explicit Retry,
  and Channels navigation with Retry.
- Consume the simulated failure under a lock. Renaming the marker is not an
  exclusive claim on Windows, so concurrent launches could all take it; a
  regression test covers eight simultaneous launches.
- Pin the disconnected-pages fixture test to Usage, which still exists.
- Document the fixture Dashboard behavior and update the ownership ledger.

Co-authored-by: Copilot App <[email protected]>
@bkudiess

bkudiess commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. proof: sufficient Contributor real behavior proof is sufficient. 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. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. labels Nov 5, 2026
@bkudiess
bkudiess marked this pull request as ready for review November 5, 2026 23:39
Remove channel code that has no reachable caller now that the native
Channels page is gone. Channel setup and management stay in the Gateway
Dashboard.

Already dead on main:
- The tray "channel:" toggle (ToggleChannel/ToggleChannelAsync). Its
  menu producer was removed in #272.
- IOperatorGatewayClient.StartChannelAsync. Its only caller was that
  toggle; the Channels page used StartChannelDetailedAsync.
- MenuDisplayHelper.GetChannelStatusIcon, used only by tests.
- The "channelsummary" tray dispatcher case, which nothing produces.
  The Command Center and openclaw://channel-summary still use
  CopyChannelSummary.
- ChannelHealth.DisplayText and its label map, with no production reader.
- Four unused resource strings in all six locales.

Dead after the page removal:
- IOperatorGatewayClient.StopChannelAsync, last called by the page.
- SetupNativeTarget.ChannelId, read only by the page's setup navigation.
  New receipts no longer write it. Receipts written by earlier builds
  still load because unknown JSON members are ignored. The replaced test
  now proves that instead of pinning the old field.

Also update the ConnectionPageChannelMetrics comment and answer the
channel-management open question in WINDOWS_NODE_ARCHITECTURE.md.

Co-authored-by: Copilot App <[email protected]>
@bkudiess

bkudiess commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@bkudiess
bkudiess merged commit 4db2960 into main Nov 6, 2026
26 checks passed
@bkudiess
bkudiess deleted the bkudiess-remove-channels-page branch November 6, 2026 06:57
bkudiess added a commit to bkudiess/openclaw-windows-node that referenced this pull request Nov 6, 2026
Resolve one conflict, in
tests/OpenClaw.Shared.Tests/GatewayFixtureProtocolTests.cs.

main removed the native Channels page (openclaw#1930) and deleted the three
channels.status rows from RealClient_InvalidOrUnknownParametersFailExplicitly.
This branch added two agent.identity.get rows at the same spot.

Keep the two agent.identity.get rows and drop the three channels.status
rows. main's deletion is preserved, and the fixture still rejects
malformed agent.identity.get requests.

No other file needed manual resolution.

Co-authored-by: Copilot App <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. P2 Normal priority bug or improvement with limited blast radius. proof: sufficient Contributor real behavior proof is sufficient. 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant