-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
[Bug]: macOS onboarding rejects a logged-in Codex CLI on fresh installs #102614
Copy link
Copy link
Closed
Closed
Copy link
Labels
P0Emergency: data loss, security bypass, crash loop, or unusable core runtime.Emergency: data loss, security bypass, crash loop, or unusable core runtime.bugSomething isn't workingSomething isn't workingclawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.impact:ux-release-blockerA non-technical user is blocked without terminal, logs, config, or support.A non-technical user is blocked without terminal, logs, config, or support.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.maintainerMaintainer-authored PRMaintainer-authored PRmaturity:stableIssue affects a taxonomy feature currently scored M4/M5.Issue affects a taxonomy feature currently scored M4/M5.
Description
Metadata
Metadata
Assignees
Labels
P0Emergency: data loss, security bypass, crash loop, or unusable core runtime.Emergency: data loss, security bypass, crash loop, or unusable core runtime.bugSomething isn't workingSomething isn't workingclawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.impact:ux-release-blockerA non-technical user is blocked without terminal, logs, config, or support.A non-technical user is blocked without terminal, logs, config, or support.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.maintainerMaintainer-authored PRMaintainer-authored PRmaturity:stableIssue affects a taxonomy feature currently scored M4/M5.Issue affects a taxonomy feature currently scored M4/M5.
Type
Fields
Priority
None yet
Bug type
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
Fresh macOS onboarding detects and recommends a logged-in Codex CLI, but rejects it because the live setup test runs before the required Codex runtime plugin is installed.
Steps to reproduce
@openai/codex, log in withcodex login --with-api-key, and confirmcodex login statusreports a successful API-key login.OPENAI_API_KEYin the GUI or Gateway environment.Expected behavior
The onboarding live test should provision the Codex runtime required to exercise the detected Codex CLI, complete one real inference turn, and persist
openai/gpt-5.5only after that turn succeeds.Actual behavior
Codex is detected and officially logged in, but
openclaw plugins info codex --jsonreportsPlugin not found: codex. The setup test enables the absent plugin in an ephemeral config, falls through to direct OpenAI auth, and reports a false Codex login failure.OpenClaw version
OpenClaw 2026.6.11 (9566ade); source defect confirmed unchanged on
mainat 3f2466c.Operating system
macOS 26.5.2 guest in Parallels Desktop 26.4.0 on macOS.
Install method
Current-main signed macOS app build plus globally installed current-main npm tarballs in OpenClaw's managed Node runtime.
Model
openai/gpt-5.5 via the Codex app-server harness.
Provider / routing chain
OpenClaw macOS onboarding -> local Gateway -> Codex runtime plugin -> locally installed Codex CLI app-server -> OpenAI.
Additional provider/model setup details
The Codex CLI login was verified independently before onboarding.
OPENAI_API_KEYwas removed from the app and Gateway environment so the test could not silently use the direct OpenAI API-key route.Logs
Screenshots, recordings, and evidence
Observed through Computer Use in a fresh Parallels VM. The same VM successfully completed current-main OpenAI-key onboarding and a live macOS-app chat turn before the isolated Codex variant.
Impact and severity
Affected: fresh macOS users who already have a logged-in Codex CLI but no direct OpenAI API key exposed to OpenClaw.
Severity: high for this route because onboarding incorrectly rejects the usable local credential.
Frequency: 1/1 isolated attempts; deterministic from the install ordering.
Consequence: users cannot finish the recommended Codex onboarding path and are told to re-authenticate even though Codex authentication is valid.
Additional information
src/crestodian/setup-inference.tscurrently runs the Codex live test before callingensureCodexRuntimePluginForModelSelection. The test config can enable a plugin only if it is already installed, so a fresh system cannot reach the Codex app-server harness.