Skip to content

feat(setup): guide channel readiness handoff - #1159

Closed
clawsweeper wants to merge 1 commit into
mainfrom
fix/1156-guided-terminal-handoff
Closed

clawsweeper wants to merge 1 commit into
mainfrom
fix/1156-guided-terminal-handoff

Conversation

@clawsweeper

Copy link
Copy Markdown

Summary

  • distinguish a connected Gateway and paired Windows device from mobile/chat channel readiness on setup completion
  • let users finish directly into Channels through a typed post-setup destination while preserving existing owners
  • make the gateway-host plugin handoff explain why terminal use is required, give the exact copyable command, state the expected result, and provide return-to-app verification
  • document the boundary and add focused setup/tray contract coverage

Addresses #1156.
Contributes to #843.

Validation

  • git diff --check: passed before commit
  • autoreview --mode local --stream-engine-output: clean, no accepted/actionable findings (confidence 0.93)
  • build.ps1, Shared tests, Tray tests, and SetupEngine tests: not run, blocked before sync because this Linux controller has no dotnet/PowerShell and Crabbox could not establish SSH to three native Windows desktop leases

Crabbox attempts:

  • Azure / windows / normal / desktop / blue-hermit-8666: lease ended before SSH became usable
  • Azure / windows / normal / desktop / golden-krill: lease ended before SSH became usable
  • AWS broker / windows / normal / desktop / jade-krill: SSH endpoint was never populated or reachable

CI remains required for the automated suites at this head.

Real behavior proof

Not verified / blocked. No Crabbox native Windows lease reached source sync, so current-head isolated setup and visible completion-to-Channels proof could not be captured. Before readiness, a current-head Windows run must show:

  1. setup completion with Gateway/device readiness separate from the channel card
  2. Set up or verify channels restarts into Channels
  3. a non-running channel exposes the copyable gateway-host plugin command, expected result, and Refresh guidance

Ownership and safety

  • SetupWindow continues to own setup completion and startup preference persistence.
  • App remains the composition/restart owner and routes only the typed destination.
  • ChannelsPage remains the owner of Gateway channel state and verification.
  • No channel command is inferred or automated, no parallel Gateway client is created, and no credentials are logged or displayed.

Review

  • Rubber-duck/source review traced success, failure, default Chat, Channels, restart, and single-instance forwarding paths.
  • Structured autoreview was clean; no findings were accepted or rejected.

@clawsweeper

clawsweeper Bot commented Aug 13, 2026

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@clawsweeper clawsweeper Bot added P2 Normal priority bug or improvement with limited blast radius. 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 Aug 13, 2026
@clawsweeper

clawsweeper Bot commented Aug 13, 2026 •

Copy link
Copy Markdown

Codex review: needs real behavior proof before merge. Reviewed August 26, 2026, 3:20 AM ET / 07:20 UTC.

ClawSweeper review

What this changes

The PR adds a setup-completion route to Channels and clearer guidance for gateway-hosted channel plugin setup.

Merge readiness

⛔ Blocked until real behavior proof is added - 6 items remain

Keep open. The PR has a useful onboarding goal, but it needs a targeted rebase onto the current activation/window owners and current-head native Windows proof before merge.

Priority: P2
Reviewed head: 6a3cb68de4d86b942db50c548dc4d96adbfcc8d2

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The patch has a focused goal and useful source coverage, but current-main integration and real Windows behavior remain unproven.
Proof confidence 🦪 silver shellfish (2/6) Needs real behavior proof before merge: The PR has no after-fix current-head Windows behavior proof; add a redacted isolated walkthrough of completion, restart into Channels, and the gateway-host install handoff before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦐 gold shrimp (3/6) 2 actionable review findings remain.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: The PR has no after-fix current-head Windows behavior proof; add a redacted isolated walkthrough of completion, restart into Channels, and the gateway-host install handoff before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 5 items Current-main routing ownership: Current main moved launch routing into ActivationRouter, whose post-setup resolver currently supports only Chat; the PR's old App integration must be reapplied through that owner.
Current-main setup-window owner: WindowManager now owns SetupWindow creation and event subscriptions, so resolving the dirty merge requires carrying the destination through its callback seam.
Branch implementation provenance: The PR introduced the destination-aware restart handler and post-setup launch value on the pre-refactor App path.
Findings 2 actionable findings [P1] Rebase the destination through the current routing owners
[P2] Localize the new completion and handoff copy
Security None None.

Live Verification

Command: .\run-app-local.ps1 -Isolated -AllowNonMain

Result: FAIL (failed) — execution before step 1 run: sh -lc pnpm install --ignore-scripts --frozen-lockfile failed: ! Corepack is about to download https://registry.npmjs.org/pnpm/-/pnpm-11.24.0.tgz

sh -lc pnpm install --ignore-scripts --frozen-lockfile failed: ! Corepack is about to download https://registry.npmjs.org/pnpm/-/pnpm-11.24.0.tgz

Assertions:

  • FAIL expect_output: Launching OpenClaw Tray
  • FAIL expect_output: Started OpenClaw Tray

How this fits together

Setup completion reports gateway and device readiness, then restarts the tray with a requested destination. The tray routes that request into the Hub, whose Channels page reads live gateway channel state and presents any gateway-host install handoff.

flowchart LR
  A[Setup completion] --> B[Choose channel verification]
  B --> C[Tray restart request]
  C --> D[Activation routing]
  D --> E[Hub Channels page]
  E --> F[Gateway channel status]
  F --> G[User verifies channel]
Loading

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: The PR has no after-fix current-head Windows behavior proof; add a redacted isolated walkthrough of completion, restart into Channels, and the gateway-host install handoff before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Rebase the destination through the current routing owners (P1) - This branch changes the pre-refactor App restart path, but current main moved the matching setup-window and launch responsibilities into WindowManager and ActivationRouter; the current router accepts only chat after setup. Resolve the dirty merge by carrying Channels through those owners and cover normal restart plus existing-instance forwarding, otherwise the new button cannot reliably reach Channels after rebasing.
  • Localize the new completion and handoff copy (P2) - The added completion card introduces English-only user-visible text, and the changed channel guidance adds another hard-coded sentence. The onboarding documentation requires localized user-facing strings, so non-English users receive an untranslated new flow.
  • Resolve merge risk (P1) - The branch is dirty against the extracted activation and setup-window owners; an incomplete conflict resolution can drop the Channels destination after restart.
  • Resolve merge risk (P1) - No current-head native Windows proof demonstrates the completion, restart, and Channels handoff.
  • Complete next step (P2) - The current-main rebase is concrete, but an external contributor must also provide native Windows real-behavior proof before merge.

Findings

  • [P1] Rebase the destination through the current routing owners — src/OpenClaw.Tray.WinUI/App.xaml.cs:4162-4201
  • [P2] Localize the new completion and handoff copy — src/OpenClaw.SetupEngine.UI/Pages/CompletePage.xaml:90-98
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Patch scope 90 added, 10 removed across 8 files The change spans setup UI, tray activation, channel guidance, documentation, and source-contract tests.
Current-main drift 2 merged tray-ownership refactors after the PR base The affected App responsibilities now belong to WindowManager and ActivationRouter.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #1156
Summary: This PR is the stated candidate implementation for the narrower open setup-handoff issue.

Members:

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

Merge-risk options

Maintainer options:

  1. Rebase through current routing owners (recommended)
    Carry the Channels destination through WindowManager and ActivationRouter, cover normal restart and forwarding to an existing tray instance, then add Windows proof.
  2. Pause for a fresh integration branch
    Keep the linked setup issue as the canonical work until a fresh branch can integrate with the current tray architecture and provide visible proof.

Technical review

Best possible solution:

Rebase the typed destination onto WindowManager and ActivationRouter, localize the new copy, and attach a redacted isolated Windows walkthrough showing completion through verified Channels state.

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

No. The PR reports that no current-head native Windows run was captured, and CI/source-contract tests do not exercise the visible restart-to-Channels flow.

Is this the best way to solve the issue?

No. The desired guided handoff is sound, but this branch must be rebased onto the current activation and window owners before it is maintainable.

Full review comments:

  • [P1] Rebase the destination through the current routing owners — src/OpenClaw.Tray.WinUI/App.xaml.cs:4162-4201
    This branch changes the pre-refactor App restart path, but current main moved the matching setup-window and launch responsibilities into WindowManager and ActivationRouter; the current router accepts only chat after setup. Resolve the dirty merge by carrying Channels through those owners and cover normal restart plus existing-instance forwarding, otherwise the new button cannot reliably reach Channels after rebasing.
    Confidence: 0.96
  • [P2] Localize the new completion and handoff copy — src/OpenClaw.SetupEngine.UI/Pages/CompletePage.xaml:90-98
    The added completion card introduces English-only user-visible text, and the changed channel guidance adds another hard-coded sentence. The onboarding documentation requires localized user-facing strings, so non-English users receive an untranslated new flow.
    Confidence: 0.9

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add merge-risk: 🚨 compatibility: The post-setup route can be lost or misrouted when merged against the refactored activation and window ownership paths.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🦪 silver shellfish, so this older rating label is no longer current.

Label justifications:

  • P2: This is a bounded onboarding improvement, but it is not yet a verified release-blocking regression.
  • merge-risk: 🚨 compatibility: The post-setup route can be lost or misrouted when merged against the refactored activation and window ownership paths.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR has no after-fix current-head Windows behavior proof; add a redacted isolated walkthrough of completion, restart into Channels, and the gateway-host install handoff before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

What I checked:

Likely related people:

  • karkarl: Authored the merged activation and window-manager extraction that owns the required rebase seams. (role: recent tray architecture contributor; confidence: high; commits: 17a8b0363a82, 3a097bc85f7b; files: src/OpenClaw.Tray.WinUI/Services/ActivationRouter.cs, src/OpenClaw.Tray.WinUI/Services/WindowManager.cs, src/OpenClaw.Tray.WinUI/App.xaml.cs)
  • RomneyDa: Authored the linked scoped issue and a recent setup fix on current main. (role: related setup issue author and recent setup contributor; confidence: medium; commits: 3365e6e1b8b8; files: src/OpenClaw.SetupEngine.UI/Pages/CompletePage.xaml.cs)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Rebase the destination through WindowManager and ActivationRouter with tests for both restart paths.
  • Add a redacted native Windows recording or screenshots showing completion-to-Channels and non-running-channel guidance.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • 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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-13T20:28:52.730Z sha 6a3cb68 :: needs real behavior proof before merge. :: none

@clawsweeper

Copy link
Copy Markdown
Author

ClawSweeper feedback follow-up (current head 6a3cb68de4d86b942db50c548dc4d96adbfcc8d2):

  • Exact-head Windows CI is green, including test, both architecture builds, and all three E2E shards.
  • I retried native UI proof on 2026-08-15 using Crabbox AWS Windows desktop lease cbx_129687b80dc6 (violet-crab). Source sync succeeded, but the stock image lacks .NET 10, Node LTS, Windows SDK 26100, WebView2, and App Installer / winget; scripts/setup-dev.ps1 could not repair it.
  • Azure provisioning failed before lease creation because the available low-priority core quota is 3 and the Windows class requires 16.

The requested visible setup-completion to Channels walkthrough remains not verified. This PR stays draft; green automation is recorded but is not being presented as UI proof.

@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Aug 26, 2026
@shanselman

Copy link
Copy Markdown
Collaborator

Closing this stale conflicting draft because the channel-handoff behavior lacks current UI proof and should be rebuilt against the current architecture. The underlying requests remain preserved in #1156 and #843.

@shanselman shanselman closed this Sep 4, 2026
@shanselman
shanselman deleted the fix/1156-guided-terminal-handoff branch September 7, 2026 06:30
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. 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants