Repository navigation
Description
Summary
Native Windows Gateway setup fails at StepVerify because Companion's 180-second readiness budget expires while the package-managed Gateway is still making startup progress. Companion then rolls back the launch by stopping the Gateway.
On the same installation, a previous manual launch reached gateway ready after 210.474 seconds and the browser Control UI subsequently connected successfully after entering the existing Gateway token.
This report distinguishes the observed timeout/rollback behavior from the underlying startup slowness, whose cause has not been established.
Environment
- Windows build: 10.0.28120.3393, x64
- Store-signed Gateway MSIX:
OpenClawFoundation.OpenClawGateway_2026.10.900.0_x64__rfcbke2p71se2 - Packaging commit:
62c79e281fe997c4452d7494b660f0ac3bde51a4 - Bundled OpenClaw:
2026.10.9, commit8b18b5578f66eab1501cba4cef2310d88bfb9a41 - Node.js:
24.22.1 - MXC SDK:
1.0.1; isolated-session integration v1 - Companion version was reported as
2026.9.8-1in an earlier diagnostics export; the exact Companion build generating this latest setup log has not been independently verified. - Gateway endpoint: loopback, configured port 58415
Steps observed
- Run native Gateway setup through Windows Companion with the Store Gateway already installed.
- Package acquisition reports that the package is already installed and no upgrade is available.
- Configuration validation succeeds.
- Companion starts the package-managed Gateway and polls for a verified listener.
- The launch is acknowledged after about 91 seconds, but the listener is not ready within 180 seconds.
- Companion fails StepVerify and rolls back the Gateway start.
Actual behavior and attached log excerpts
These are selected excerpts from the local diagnostic exports; credentials, user/profile paths and session identifiers are omitted. Times below are local UTC+02:00 unless explicitly marked UTC.
Successful manual startup earlier on the same installation
From openclaw-diagnostics-20261101-105442:
12:48:44 Starting the gateway in the isolated session on its configured port.
12:50:16 Gateway start finished: Starting. The supervised gateway launch was accepted, but the gateway is not listening yet.
12:52:04 http server listening
12:52:15 gateway ready
12:52:15 startup phase: ready 1.2ms total=210474.1ms
The Control UI later opened directly in the browser and connected using the existing Gateway token. This confirms a successful Gateway/UI connection, not successful model inference.
Latest failed Companion setup
From native-setup-20261101-110745.jsonl (timestamps in UTC):
11:09:19 config validate --json exited 0:
{"valid":true,"warnings":[]}
stderr: CLI cleanup timed out: shared-state after 5000ms
11:09:23 Native setup step: StepVerify.
11:09:27 [WS] Native Gateway start requested on port 58415 (budget 180s).
11:10:58 [WS] Native Gateway start acknowledged after 91,4s.
11:11:01 [WS] Native Gateway startup status: gateway unhealthy, session running, readiness startup-eligible (gateway-mode-local).
11:12:27 [WS] The package-managed Gateway did not report a verified listener within 180 seconds of starting.
11:12:27 [WS] Rolling back the Gateway start requested by this attempt.
11:12:29 Native Gateway setup failed during StepVerify: NativeGatewayStartupTimeoutException
The exception identifies IsolatedGatewayRuntime.StartAndWaitAsync, then EnsureRunningCoreAsync, and NativeGatewaySetupSession.AuthorizeCoreAsync.
Gateway was still progressing immediately before rollback
From the newest launch log in openclaw-diagnostics-20261101-111309:
startup phase: cli.main.gateway-run-bootstrap 101604.0ms total=162436.5ms
13:12:11 loading configuration…
13:12:14 resolving authentication…
13:12:14 starting...
startup phase: cli.bootstrap.gateway-lock 11075.9ms total=177750.3ms
13:12:26 shutdown budget at startup: drain=315000ms shutdown=325000ms reserve=10000ms exitMargin=5000ms; source=Gateway stop policy=330000ms
startup phase: gateway.server-start-import starting total=177918.8ms
There is no gateway ready entry for this latest attempt before rollback. Logs also show long agent database activation/preparation and other bootstrap phases; they do not establish database corruption or a specific root cause for the slowness.
Expected behavior / request
Please review recovery behavior when a verified supervised launch remains alive and progresses beyond the default readiness window. Possible approaches include a longer documented budget or a resumable pending-start state, while preserving ownership checks and avoiding concurrent launches.
The current source exposes OPENCLAW_NATIVE_GATEWAY_START_TIMEOUT, but the normal GUI failure does not explain how a user should apply it and restart Companion safely. Clear GUI recovery guidance would help.
Related: #1903 concerns an already-starting native Gateway being rejected during automatic connection. This report concerns setup's explicit 180-second timeout followed by rollback.
Diagnostic handling
The complete local exports include configuration and backup files and are not uploaded publicly. The relevant error excerpts are included above. No tokens, credentials or personal paths are included in this report.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Projects
- StatusShow more project fieldsBacklog
Activity
clawsweeper commentedon Nov 1, 2026
Codex review: this still needs some work.
Summary
This issue establishes a current setup failure: main still stops an owned launch at the default readiness deadline, before the reported 210-second startup can finish; changing that deliberate limit needs maintainer judgment.
Reproducibility: Current source and an existing deterministic test establish timeout followed by owned-start rollback; no tests or live Windows reproduction were run, and the reported 210-second startup remains reporter evidence.
Maintainer decision needed
Next step
Choose a bounded inline recovery policy, then establish a failing slow-start regression before implementing a Retry with more time action.
Review details
Best possible solution:
Provide an inline Retry with more time action that preserves finite deadlines, cancellation, launch ownership and fresh listener verification.
Do we have a high-confidence way to reproduce the issue?
Current source and an existing deterministic test establish timeout followed by owned-start rollback; no tests or live Windows reproduction were run, and the reported 210-second startup remains reporter evidence.
Is this the best way to solve the issue?
A bounded in-product longer retry addresses the recovery gap without trusting log text as progress or removing rollback, but its allowance needs approval before changing the tested policy.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning medium; reviewed against a4dd026cc5f8.
Label changes
Label changes:
P0: Native first-run setup is blocked on the reported supported installation, and increasing its readiness allowance requires an environment change and Companion restart outside the wizard.impact:ux-release-blocker: Retry setup repeats the same default deadline; the available in-product diagnostics and terminal launcher do not themselves recover the slow-start case.issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.clawsweeper:source-repro: Current issue advisory state selects this label.clawsweeper:no-new-fix-pr: Current issue advisory state selects this label.clawsweeper:needs-maintainer-review: Current issue advisory state selects this label.clawsweeper:needs-product-decision: Current issue advisory state selects this label.Label justifications:
P0: Native first-run setup is blocked on the reported supported installation, and increasing its readiness allowance requires an environment change and Companion restart outside the wizard.impact:ux-release-blocker: Retry setup repeats the same default deadline; the available in-product diagnostics and terminal launcher do not themselves recover the slow-start case.Evidence reviewed
What I checked:
src/OpenClaw.Connection/NativeGateway/IsolatedGatewayRuntime.cs:27, a4dd026cc5f8)src/OpenClaw.Connection/NativeGateway/IsolatedGatewayRuntime.cs:125, a4dd026cc5f8)tests/OpenClaw.Connection.Tests/IsolatedGatewayRuntimeTests.cs:484, a4dd026cc5f8)src/OpenClaw.Tray.WinUI/Strings/en-us/Resources.resw:7916, a4dd026cc5f8)src/OpenClaw.Connection/NativeGateway/IsolatedGatewayRuntime.cs:28, e5122db3c943)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.Reviewed November 1, 2026, 6:34 AM ET / 11:34 UTC.
larroy commentedon Nov 3, 2026
Fix proposed in #1993 (fix(setup): native Gateway setup rolls back a slow but progressing start after 180 seconds).
It raises the default native Gateway startup budget (
IsolatedGatewayRuntime.DefaultStartupTimeoutSeconds) from 180 to 300 seconds. The credential handoff, setup connection phase, chooser verification and execution window deadlines derive from it and stay longer than the runtime's own ceiling, so setup no longer rolls back a start that becomes ready between 180 and 300 seconds. Ownership checks, rollback rules and fresh listener verification are unchanged, andOPENCLAW_NATIVE_GATEWAY_START_TIMEOUTstill overrides the budget.unhealthywhile polled, listener at 210 s). It failed before the fix with the samedid not report a verified listener within 180 secondsmessage and now passes with no rollback.Still needed: native setup on a slow ARM64 host with Store Gateway 2026.10.900.0, showing
budget 300sin the setup log, readiness after more than 180 s, and noRolling back the Gateway startentry.Longer term, a startup progress field in the package's
gateway-service status --jsonwould let Companion fail on lack of progress instead of a fixed budget; that would be an openclaw-windows-packaging change.fix(setup): native Gateway setup rolls back a slow but progressing st…