Repository navigation
fix(macos): keep onboarding green across gateway plugin restart - #101218
Merged
Merged
Conversation
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.
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. |
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.activatemeans "outcome unknown", not "failed": the app now pollscrestodian.setup.detectafter 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
~/.openclaw, codex + claude CLIs installed, codex auth present): before the fix, gateway logs showres OK crestodian.setup.activate 7589msfollowed ~5s later byhttp server listening (10 plugins: ... codex ...)while the app displayed "gateway receive: Socket is not connected" and "None of the found options worked", withopenclaw.jsonalready carryingagents.defaults.model.primary = openai/gpt-5.5.swiftformat --lintclean on both files;swift build --product OpenClawgreen on top of latestmainafter rebase (manual-provider catalog changes in the same file merged cleanly).