Skip to content

Enable Companion App to use session backed OpenClaw #1236

Open

Description

@msft-yiyang

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

Activity

  1. added
    clawsweeper:needs-maintainer-review
    clawsweeper:needs-product-decision
    clawsweeper:no-new-fix-pr
    issue-rating: 🌊 off-meta tidepool
    P3
    on Aug 26, 2026
  2. clawsweeper commented on Aug 26, 2026

    @clawsweeper

    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: #1236
    Summary: This issue remains the umbrella; verified merged work and closed narrower reports cover portions of its scope.

    Members:

    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 Enable Companion App to use session backed OpenClaw #1236 (comment); 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-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; those execution lanes are retired.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

    Reviewed November 20, 2026, 11:24 PM ET / November 21, 2026, 04:24 UTC.

  3. samanthamsong commented on Sep 2, 2026

    @samanthamsong
    Collaborator

    @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
  4. added
    P0
    and removed
    P3
    on Sep 4, 2026
  5. added this to the 9/30 MXC Release milestone on Sep 4, 2026
  6. added
    P2
    impact:other
    and removed
    P0
    on Oct 3, 2026
  7. added
    clawsweeper:intake:feature
    and removed
    clawsweeper:needs-maintainer-review
    clawsweeper:intake:feature
    on Oct 21, 2026
  8. github-actions commented on Nov 21, 2026

    @github-actions
    Contributor

    This assigned issue has been automatically marked as stale after 30 days of inactivity.
    Please add an update or it will be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2clawsweeper:needs-product-decisionclawsweeper:no-new-fix-primpact:otherissue-rating: 🌊 off-meta tidepoolstale

Type

No type

Fields

Priority

None yet

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions