Skip to content

fix(gateway): hosted setup exits no longer stop the gateway - #115671

Merged
steipete merged 1 commit into
mainfrom
codex/fix-hosted-wizard-runtime-exit
Jul 29, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/fix-hosted-wizard-runtime-exit

Conversation

@steipete-oai

Copy link
Copy Markdown
Contributor

Related: #110382

What Problem This Solves

Fixes an issue where completing or failing hosted onboarding or channel setup could terminate the shared Gateway process because the wizard was given the process-exiting CLI runtime.

Why This Change Was Made

Run both Gateway-hosted wizard flows using the existing non-exiting runtime. Treat a successful exit as completion and keep nonzero exits as wizard-session errors. The change intentionally does not modify Gateway protocol, Swift clients, daemon installation, wizard cancellation, session ownership, configuration, or defaults.

Original report and broader investigation: @TheAngryPit in #110382. This narrower replacement preserves the contributor's fix idea without the unrelated protocol and lifecycle changes.

User Impact

Hosted setup and channel wizards can complete or fail without disconnecting the Gateway or interrupting other users. Gateway health remains available after either result.

Evidence

  • Fail-first: all four owner regressions reproduced host-process exits for setup/channel wizard flows with exit codes 0 and 23.
  • Fail-first: the same four failures reproduced through a real authenticated Gateway and actual WebSocket wizard.start/wizard.next requests.
  • Fixed: 7/7 Gateway wizard owner tests pass.
  • Fixed: 6/6 real authenticated WebSocket tests pass, including existing setup/channel flows and successful Gateway health RPC after each hosted exit.
  • Clean Codex Sol xhigh autoreview (0.96).
  • Full remote changed-code typecheck, formatting, lint, and repository security gates: pass.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: S maintainer Maintainer-authored PR labels Jul 29, 2026
@steipete
steipete force-pushed the codex/fix-hosted-wizard-runtime-exit branch from ecec566 to ae6dcd8 Compare July 29, 2026 07:12
Keep successful and failed setup/channel wizard exits inside their owning session. Preserve the shared Gateway and existing protocol; prove both flows with authenticated WebSocket E2E.

Co-authored-by: TheAngryPit <[email protected]>
@steipete
steipete force-pushed the codex/fix-hosted-wizard-runtime-exit branch from ae6dcd8 to c6b4e91 Compare July 29, 2026 08:12
@steipete
steipete merged commit 1dd28f1 into main Jul 29, 2026
120 checks passed
@steipete
steipete deleted the codex/fix-hosted-wizard-runtime-exit branch July 29, 2026 09:40
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

pull Bot pushed a commit to yann0001/openclaw that referenced this pull request Jul 29, 2026
* origin/main:
  fix(gateway): keep Responses replacement streams consistent (openclaw#115799)
  fix(gateway): hosted setup exits no longer stop the gateway (openclaw#115671)
  fix(cron): protect sessions throughout model preparation (openclaw#115804)
  fix(ui): preserve model names alongside aliases (openclaw#115789)
  fix(qa): prepare shared Slack live flows
  fix(ui): stabilize memory engine selection (openclaw#115750)
  fix(web-fetch): release abandoned fallback response bodies (openclaw#115759)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 30, 2026
…#115671)

Keep successful and failed setup/channel wizard exits inside their owning session. Preserve the shared Gateway and existing protocol; prove both flows with authenticated WebSocket E2E.

Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: TheAngryPit <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 30, 2026
* origin/main:
  fix(gateway): keep Responses replacement streams consistent (openclaw#115799)
  fix(gateway): hosted setup exits no longer stop the gateway (openclaw#115671)
  fix(cron): protect sessions throughout model preparation (openclaw#115804)
  fix(ui): preserve model names alongside aliases (openclaw#115789)
  fix(qa): prepare shared Slack live flows
  fix(ui): stabilize memory engine selection (openclaw#115750)
  fix(web-fetch): release abandoned fallback response bodies (openclaw#115759)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants