Enable Companion App to use session backed OpenClaw
Enable Companion App to use session-backed OpenClaw
1. Detect MXC / Session containment capability
- [ ] Detect Windows/OS capabilities and whether Session containment is available
- [ ] Select the appropriate setup path based on capability detection
2. Native Windows + MXC installer and setup experience
- [ ] Make the native Windows Gateway the primary local setup path
- [ ] Update the PowerShell installer/setup engine for MXC (
powershell -c "irm https://openclaw.ai/install.ps1 | iex") - [ ] Setup wizard UI changes for capability/prerequisite checks
- [ ] Gateway acquisition flow
- [ ] Session setup flow
- [ ] Re-entrancy and recovery handling
- [ ] Choose between creating a local Gateway or connecting to an existing one
3. Migrate existing WSL Gateway to local Windows Gateway
- [ ] Supported migration path from existing WSL-based Gateway to native Windows/MXC Gateway
- [ ] Migration UX and rollback support
- [ ] Aligns with golden-path goal: new local Gateway setup, existing Gateway connection, and migration to local Windows Gateway
4. Gateway lifecycle + management UI
- [ ] User-facing UI for managing a locally installed Gateway
- [ ] Detect and apply Gateway updates
- [ ] Recovery and removal flows
- [ ] Entry point for migrating to a local Gateway
- [ ] Successfully update Gateway through an Update button
5. Run local Gateway inside an MXC Session
- [ ] Start and maintain the local Gateway as a long-running workload inside a Session
- [ ] Lifecycle, restart, and recovery behavior
- [ ] Gateway runs in a Session while tool calls receive additional process containment
6. MXC process containment for Gateway tool calls
- [ ] Integrate the MXC sandbox/plugin with OpenClaw's tool-call path
- [ ] Individual tool invocations receive process containment and applicable policy before execution
- [ ] Wrap each tool call with MXC process and associated OpenClaw plugin toolhook
Codex review: this still needs some work.
Summary Keep open: native onboarding and isolated Gateway lifecycle are implemented, but supported WSL migration remains outside current setup, and collaborator-backed scope has not been retired.
Reproducibility: This is a capability request rather than a failing behavior report; current source distinguishes implemented native setup from the requested supported migration.
Root-cause cluster
Relationship: canonical
Canonical: https://github.com/openclaw/openclaw-windows-node/issues/1236
Summary: This issue remains the umbrella; verified merged work and closed narrower reports cover portions of its scope.
Members:
partial_overlap: https://github.com/openclaw/openclaw-windows-node/pull/1447 - Merged native acquisition, eligibility, and onboarding.partial_overlap: https://github.com/openclaw/openclaw-windows-node/pull/1553 - Merged package-owned isolated-session integration.partial_overlap: https://github.com/openclaw/openclaw-windows-node/pull/2017 - Merged native-versus-WSL management classification without supported migration.partial_overlap: https://github.com/openclaw/openclaw-windows-node/issues/1435 - Requested migration guidance and preservation guarantees; inactivity closure does not establish implementation.partial_overlap: https://github.com/openclaw/openclaw-windows-node/issues/1323 - Tracks the collaborator-requested session-aware routing addition.- 1 more in the report.
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.
Maintainer decision needed
- Question: Should supported WSL migration and complete native management and tool containment remain acceptance criteria for this umbrella?
- Recommendation: Refresh and retain the umbrella: Mark implemented setup and lifecycle work complete, then define the remaining deliverables and their owners.
- Why: Current implementation delivers onboarding and isolated lifecycle, but recorded human discussion does not retire the broader requested capabilities.
Next step Refresh the completed checklist and obtain an explicit maintainer decision on migration, native management, and containment scope before planning implementation.
Review details
Best possible solution:
Retain a refreshed umbrella with explicit migration, management, and containment acceptance criteria assigned to their existing owners.
Do we have a high-confidence way to reproduce the issue?
This is a capability request rather than a failing behavior report; current source distinguishes implemented native setup from the requested supported migration.
Is this the best way to solve the issue?
Extend the existing package-owned lifecycle and setup owners after defining migration and containment contracts; a second Companion-owned session or an assumed data-transfer path would be premature.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
- WSL migration lacks agreed preservation, credential-transfer, rollback, and recovery acceptance criteria.
- Package-level Gateway isolation and Windows-node sandboxing do not by themselves establish the requested containment guarantee for every Gateway tool call.
- The remaining native management and update-button scope needs reconciliation with current package acquisition and servicing ownership.
Codex review notes: model internal, reasoning medium; reviewed against 794f530aa933.
Label changes
Label changes:
No label changes.
Label justifications:
P2: This is a partially delivered feature program without a demonstrated emergency or blocked first-run case.impact:other: The remaining capability concerns native Gateway migration, lifecycle management, and containment integration.
Evidence reviewed
What I checked:
- Policy and current revision: Read the complete root AGENTS.md; checkout HEAD matches the supplied revision and GitHub confirms main as the default branch. The checkout stayed clean; no builds, tests, review helpers, or second reviewers ran. (
AGENTS.md:13, 794f530aa933) - Human scope and engagement: The issue remains assigned to msft-yiyang. Collaborator samanthamsong explicitly requested session-aware guidance and update/migration UI at https://github.com/openclaw/openclaw-windows-node/issues/1236#issuecomment-5514691890; the timeline records milestone engagement.
- Capability-based native setup exists: NativeGatewaySetupEligibility evaluates reported IsolationSessionCapability and preserves explicit WSL or existing-Gateway choices; NativeGatewaySetupEligibilityTests covers these decisions. (
src/OpenClaw.SetupEngine/NativeGatewaySetupEligibility.cs:23, 794f530aa933) - Native setup does not establish WSL migration: NativeGatewaySetupService explicitly excludes the WSL replacement pipeline. Onboarding documentation states that existing WSL distributions are not replaced and native setup avoids WSL cleanup and repair; searches across source, tests, and docs found no supported WSL-to-native transfer path. (
src/OpenClaw.SetupEngine/NativeGatewaySetupService.cs:69, 794f530aa933) - Package-owned isolated lifecycle is implemented: NativeGatewayPackageClient uses versioned gateway-service start and conditional stop operations. Onboarding documentation identifies openclaw/openclaw-windows-packaging as the package contract source and assigns isolated-session lifecycle to clawctl, an affirmative producer boundary rather than a Companion-owned session implementation. (
src/OpenClaw.Connection/NativeGateway/NativeGatewayPackageClient.cs:250, 794f530aa933) - Lifecycle tests protect ownership: Inspected tests require conditional cleanup for a created start and preserve an adopted service on detach or failed verification; these tests were read, not executed. (
tests/OpenClaw.Connection.Tests/IsolatedGatewayRuntimeTests.cs:241, 794f530aa933)
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-reviewcomments, 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-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only. - Maintainers can also comment
@clawsweeper reviewto request a fresh review only. - Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge; those execution lanes are retired.
- Maintainers can comment
@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.
Reviewed November 20, 2026, 11:24 PM ET / November 21, 2026, 04:24 UTC.
@msft-yiyang We also want a skill so that the node understands that its gateway is running in a session.
- any UI thats for updating or migrating to the gateway
This assigned issue has been automatically marked as stale after 30 days of inactivity. Please add an update or it will be closed.