Skip to content

fix(macos): keep onboarding green across gateway plugin restart - #101218

Merged
steipete merged 2 commits into
mainfrom
claude/affectionate-pasteur-a4b021
Jul 6, 2026
Merged

steipete merged 2 commits into
mainfrom
claude/affectionate-pasteur-a4b021

Conversation

@steipete

@steipete steipete commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where first-run macOS onboarding would declare "None of the found options worked" on the Connect your AI page even though the Codex candidate had just passed its live test and been persisted. Activating Codex installs the codex provider plugin, and the gateway restarts itself to load it (config reload rule for plugins.installs); that restart drops the app's WebSocket after the server already tested and saved the model, so the app reported the transport error as a candidate failure. Also fixes the finish page showing "Couldn't load skills from the Gateway — Gateway not configured" during a healthy install.

Why This Change Was Made

A transport drop during crestodian.setup.activate means "outcome unknown", not "failed": the app now polls crestodian.setup.detect after a drop and counts the attempt as connected only when the server persisted exactly the model that candidate would have written; any other detect answer keeps the original failure path. The finish-page skills load previously ran once when the pager pre-built all pages (before the local gateway existed) and latched the error; it now retries when the user actually lands on the page.

User Impact

Fresh installs that reuse a Codex login now complete onboarding on the first pass — "Your AI is ready" instead of a spurious failure card that forced a manual "Check again". The finish page shows the bundled skills list instead of a stale "Gateway not configured" warning.

Evidence

  • Reproduced end-to-end in a clean macOS 26.5 Parallels VM (fresh ~/.openclaw, codex + claude CLIs installed, codex auth present): before the fix, gateway logs show res OK crestodian.setup.activate 7589ms followed ~5s later by http server listening (10 plugins: ... codex ...) while the app displayed "gateway receive: Socket is not connected" and "None of the found options worked", with openclaw.json already carrying agents.defaults.model.primary = openai/gpt-5.5.
  • After the fix, the same VM scenario (codex plugin removed, config trimmed, onboarding rerun) rides through the restart: gateway logs show activate OK at 8317ms then the plugin-loading restart, and the UI lands on "Your AI is ready — openai/gpt-5.5 via Codex" with no manual retry. Finish page renders the skills list with no error.
  • swiftformat --lint clean on both files; swift build --product OpenClaw green on top of latest main after rebase (manual-provider catalog changes in the same file merged cleanly).

Activating the Codex candidate installs the codex plugin and the gateway
restarts itself to load it, dropping the activate RPC socket after the
server already persisted success. Onboarding then claimed every option
failed. Reconcile transport drops against crestodian.setup.detect before
reporting failure, and stop latching the finish-page skills load error
that fires while the pager pre-builds pages before the gateway exists.
@openclaw-barnacle openclaw-barnacle Bot added app: macos App: macos size: XS maintainer Maintainer-authored PR labels Jul 6, 2026
@clawsweeper

clawsweeper Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: fix(macos): keep onboarding green across gateway plugin restart This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@steipete
steipete merged commit c5161f9 into main Jul 6, 2026
84 of 86 checks passed
@steipete
steipete deleted the claude/affectionate-pasteur-a4b021 branch July 6, 2026 23:32
@steipete

steipete commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 7, 2026
…claw#101218)

* fix(macos): keep onboarding green across gateway plugin restart

Activating the Codex candidate installs the codex plugin and the gateway
restarts itself to load it, dropping the activate RPC socket after the
server already persisted success. Onboarding then claimed every option
failed. Reconcile transport drops against crestodian.setup.detect before
reporting failure, and stop latching the finish-page skills load error
that fires while the pager pre-builds pages before the gateway exists.

* chore(i18n): refresh native inventory line numbers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: macos App: macos maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant