Skip to content

fix(macos): complete Codex onboarding and model picker - #124829

Merged
steipete merged 27 commits into
openclaw:mainfrom
hannesrudolph:fix/macos-onboarding-codex-activation
Aug 18, 2026
Merged

steipete merged 27 commits into
openclaw:mainfrom
hannesrudolph:fix/macos-onboarding-codex-activation

Conversation

@hannesrudolph

@hannesrudolph hannesrudolph commented Aug 16, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes first-run macOS onboarding treating an implicit model label as working AI, leaving native Codex credentials unusable during activation, handing users to a different surface than normal reopen, and exposing only the single persisted Codex model instead of the account's current app-server model catalog. It also preserves the working Codex OAuth and account model catalog across later configuration reloads, such as switching the default model or updating the agent identity.

Why This Change Was Made

Onboarding now live-verifies effective inference, activates Codex against the native user home, publishes the committed runtime generation, and lands on the normal Dashboard. Explicit model-picker reads ask the selected agent harness for its account-scoped catalog; the Codex harness projects app-server model/list rows into OpenClaw's prepared catalog while preserving static metadata and alternate physical routes. Replacement runtime owners merge external-auth overlays over the durable auth store instead of allowing an empty authoritative overlay to erase durable OAuth. Chat startup and preloaded metadata reads remain on prepared facts and do not wait for live discovery.

User Impact

Users with an existing Codex or ChatGPT subscription can complete macOS onboarding without signing in again. Setup activates the detected Codex route automatically, opens the normal Dashboard without a false authentication warning, and the model picker can show the Codex models currently available to that account. Those credentials and model rows now survive later hot reloads and relaunches.

Evidence

  • pnpm test src/agents/prepared-model-runtime.auth-store.test.ts src/agents/prepared-model-runtime.test.ts src/agents/prepared-model-runtime.lifecycle.test.ts src/gateway/server-methods/models-list-result.plugin-runtime.test.ts src/gateway/server-methods/models-list-result.openai-routes.test.ts src/gateway/server-methods/models-list-result.configured-static.test.ts - 109 tests passed after merging current origin/main.
  • pnpm lint:core - passed after merging current origin/main.
  • pnpm build - passed after merging current origin/main, including plugin SDK export validation and the Control UI build.
  • pnpm test src/system-agent/setup-inference.test.ts extensions/codex/harness.test.ts ui/src/pages/chat/chat-view.test.ts - 416 onboarding tests passed for the earlier feature changes.
  • swift test --package-path apps/macos --filter OnboardingAISetupTests - 94 tests passed for the earlier feature changes.
  • swift test --package-path apps/macos --filter OnboardingSystemAgentChatTests - 15 tests passed for the earlier feature changes.
  • swift test --package-path apps/macos --filter MenuContentSmokeTests - 8 tests passed for the earlier feature changes.
  • Earlier VM acceptance completed first-run onboarding, showed the Codex account catalog as available, retained it after relaunch, and completed Terra and Luna turns through agentHarnessId: codex without reroute or fallback.
  • Current VM acceptance built the exact PR head together with the prewarming branch, restored only the Base snapshot, installed the self-contained app, and completed onboarding from the bundled OpenClaw 2026.8.1 / Node 24.15.0 runtime.
  • After the Sol-to-Luna configuration reload and several turns, three explicit Luna turns completed through agentHarnessId: codex with rerouted: false. The picker still returned eight account models with no unavailable rows, OpenAI OAuth remained ok, and the Codex runtime auth route remained usable.
  • After merging the latest origin/main, pnpm tsgo:prod, pnpm check:test-types, pnpm test:extensions:package-boundary:compile, pnpm deadcode:report, and pnpm plugin-sdk:surface:check passed.
  • The focused five-shard regression suite passed 47 tests, including the new-session no-false-authentication state and the SDK surface budget test.
  • pnpm lint:core, pnpm lint:extensions, pnpm format:check, and swift build --package-path apps/macos --product OpenClaw passed.

Maintainer Rework (steipete)

Review found the feature direction sound (live-verified onboarding, auth-store overlay merge at the replacement-generation owner, harness loadModelCatalog hook with a justified +1 SDK surface budget; the projection matches the Codex app-server model/list contract in codex-rs/app-server-protocol/src/protocol/v2/model.rs). The following issues were fixed on top:

  • Custodian handoff restored (apps/macos): landing every onboarding finish on the plain dashboard stranded the custodian first-run flow (memory import, channels, permissions, hatch). Fresh activations now hand off to /custodian?onboarding=1; live-verified pre-existing setups reopen the normal dashboard (matching the removed already-configured shortcut). Tests pin the destination per path.
  • Discovery config honored (extensions/codex/src/app-server/model-catalog.ts): the manifest documents discovery.enabled (bundled fallback list) and discovery.timeoutMs (default 2500 ms); the catalog used the generic 60 s request timeout and ignored the gate. Now enabled === false returns no live rows (static catalog stands) and the list call is bounded by discovery.timeoutMs ?? 2500.
  • Remote transport fail-closed (src/system-agent/setup-inference-plan-helpers.ts): prepared Codex auth silently rewrote an explicit websocket/unix app-server to local stdio (keeping a dangling url), moving the credential boundary onto the local host — pre-existing on main, but this PR widened it with homeScope: "user" and asserted it in a test. Setup now fails with actionable guidance and leaves the config untouched; regression test updated.
  • Refactor: one canonical resolveModelCatalogIdentityKey (three near-identical copies existed), dedupeByKey collapses two duplicate merge loops, donor enrichment is Map-based, the one-off harness-augment wrapper is inlined, the test-only listModels injection seam is dropped for vi.mock, and the post-activation refresh error now preserves its root cause.
  • Test isolation: the post-startup Codex login integration test failed on any developer machine with an ambient OPENAI_API_KEY or a real Codex login (live discovery reached the real app-server). It now stubs the env key and disables discovery for that scenario.
  • Superseded UI edits dropped: main's fix(ui): stop restart errors from masquerading as model auth #125513 (offline status, noModelsAvailable) is a strict superset of this PR's empty-catalog fix; all UI files resolve to main's side. SDK surface budget merged to 4332.

Known tradeoff: explicit (non-prepared) models.list reads perform a live bounded model/list per request; the Control UI caches for 60 s with in-flight dedupe and codex caches its catalog for 5 min upstream, so no gateway-side cache was added. The bundled runAttempt now prefers attempt-scoped plugin config over the launch snapshot (resolveAttemptPluginConfig), which is what keeps the account catalog and OAuth usable after hot reloads.

Maintainer Evidence

  • Focused vitest suites green: setup-inference, models-list (plugin-runtime, openai-routes, configured-static), prepared-model-runtime (core/auth-store/lifecycle), prepared-model-catalog-worker integration, codex harness + model-catalog.
  • swift test --filter "OnboardingAISetupTests|OnboardingSystemAgentChatTests|OnboardingViewSmokeTests": 135 tests, 3 suites, all passed.
  • check:changed full lane green (format, tsgo core+tests, lint, guards, SDK surface budget, dead-export scan); pnpm build green.
  • Live proof on an isolated dev gateway (OPENCLAW_STATE_DIR=/tmp/oc-live-124829, port 19923, real ChatGPT-subscription Codex login, homeScope: "user"):
    • models.list view=configured refresh=true with discovery enabled returned the account's 7 Codex models (gpt-5.6-sol/terra/luna, gpt-5.5, gpt-5.4, gpt-5.4-mini, gpt-5.2) with per-model reasoning-effort lists projected from live model/list, all available: true, agentRuntime: codex.
    • Flipping discovery.enabled=false in config (hot reload) degraded the same call to the static bundled catalog (includes gpt-5.3-codex-spark / gpt-daybreak-blue-latest, absent from the account list) — and OpenAI rows stayed available: true across the reload, proving durable OAuth survives replacement generations.
    • A live turn via openclaw.chat through the codex-routed session (model: gpt-5.6-terra, agentRuntime: codex) returned the exact requested marker.
  • Codex autoreview (structured, Sol/xhigh) on the final branch diff: clean, no actionable findings.

@clawsweeper

clawsweeper Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@clawsweeper clawsweeper Bot added merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 16, 2026
@clawsweeper

clawsweeper Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 18, 2026, 2:08 AM ET / 06:08 UTC.

ClawSweeper review

What this changes

Adds automatic macOS Codex activation, persisted prepared-auth handling, and dynamic model-catalog discovery for the macOS onboarding and agent runtime.

Merge readiness

⛔ Blocked by patch quality or review findings - 10 items remain

This PR remains necessary, but it is not ready to merge: receipt-backed recovery of a fresh activation can skip custodian onboarding, and paginated model discovery can exceed its advertised timeout.

Priority: P1
Reviewed head: 27dc9607b4a454b9016e522bb01fc74375f16267

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The implementation has two concrete correctness defects on first-run recovery and bounded discovery behavior.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-owned PR is exempt from the external-contributor proof gate; its body nevertheless records claimed macOS and runtime evidence.
Patch quality 🦪 silver shellfish (2/6) 2 actionable review findings remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-owned PR is exempt from the external-contributor proof gate; its body nevertheless records claimed macOS and runtime evidence.
Evidence reviewed 5 items Receipt-backed activation bypasses first-run handoff: A completed owner-bound activation receipt is recovered and passed as an existing-model activation, but the handoff classifies all existing-model connections as pre-existing inference and clears the receipt before selecting the destination. A recovered fresh activation can therefore reach the dashboard instead of custodian onboarding.
Discovery timeout is applied once per page: The plugin manifest describes discovery.timeoutMs as the maximum wait before fallback, while the page loop passes that full timeout to each request and permits up to 20 pages.
Current main does not contain the catalog implementation: Comparison with current main shows this PR's model-catalog loading implementation is not already present; merged PR #125513 only overlaps the UI catalog-state portion.
Findings 2 actionable findings [P1] Preserve receipt-backed activation during handoff selection
[P2] Bound paginated discovery by one total deadline
Security None None.

Live Verification

Command: swift test --package-path apps/macos --filter OnboardingSystemAgentChatTests

Result: FAIL (partial)

swift test --package-path apps/macos --filter OnboardingSystemAgentChatTests
runner@runnervmzvulz:~/work/clawsweeper/clawsweeper/target-pr$ swift test --package-path apps/macos --filter OnboardingSystemAgentChatTests
swift test --package-path apps/macos --filter OnboardingSystemAgentChatTests
Fetching https://github.com/openclaw/Peekaboo.git
Fetched https://github.com/openclaw/Peekaboo.git from cache (19.77s)
Fetching https://github.com/orchetect/MenuBarExtraAccess
Fetching https://github.com/apple/swift-algorithms
Fetching https://github.com/apple/swift-log.git
Fetched https://github.com/orchetect/MenuBarExtraAccess from cache (1.72s)
Fetched https://github.com/apple/swift-algorithms from cache (1.72s)
Fetching https://github.com/pointfreeco/swift-concurrency-extras
Fetched https://github.com/apple/swift-log.git from cache (1.73s)
Fetching https://github.com/sindresorhus/KeyboardShortcuts
Fetching https://github.com/openclaw/AXorcist.git
Fetched https://github.com/pointfreeco/swift-concurrency-extras from cache (0.87s)
Fetching https://github.com/steipete/ElevenLabsKit
Fetched https://github.com/openclaw/AXorcist.git from cache (1.41s)
Fetching https://github.com/sparkle-project/Sparkle
Fetched https://github.com/steipete/ElevenLabsKit from cache (0.59s)
Fetching https://github.com/swiftlang/swift-cmark.git
Fetched https://github.com/sindresorhus/KeyboardShortcuts from cache (1.66s)
Fetching https://github.com/apple/swift-numerics.git
Fetched https://github.com/apple/swift-numerics.git from cache (1.35s)
Fetching https://github.com/mgriebling/SwiftMath
Fetched https://github.com/swiftlang/swift-cmark.git from cache (2.07s)
Fetching https://github.com/groue/GRDB.swift.git
Fetched https://github.com/mgriebling/SwiftMath from cache (1.60s)
Fetching https://github.com/swiftlang/swift-subprocess.git
Fetched https://github.com/sparkle-project/Sparkle from cache (3.19s)
Fetching https://github.com/swiftlang/swift-markdown
Fetched https://github.com/swiftlang/swift-subprocess.git from cache (1.32s)
Fetching https://github.com/steipete/Commander.git
Fetched https://github.com/swiftlang/swift-markdown from cache (1.88s)
Fetching https://github.com/apple/swift-system
Fetched https://github.com/steipete/Commander.git from cache (1.40s)
Fetched https://github.com/apple/swift-system from cache (1.79s)















Assertions:

  • FAIL expect_output: Test Suite

How this fits together

macOS onboarding activates a prepared model setup, verifies its durable activation receipt, then routes new installations through custodian onboarding or existing installations to the dashboard. The Codex plugin discovers account models for the picker and selected agent runtime.

flowchart LR
  A[macOS first launch] --> B[Prepared model activation]
  B --> C[Activation receipt verification]
  C --> D{Activation ownership}
  D -->|Fresh or recovered| E[Custodian onboarding]
  D -->|Pre-existing setup| F[Dashboard]
  B --> G[Codex model discovery]
  G --> H[Model picker and agent runtime]
Loading

Before merge

  • Preserve receipt-backed activation during handoff selection (P1) - A completed owner-bound receipt represents a recovered fresh activation, but this branch treats every existing-model connection as pre-existing inference and clears the receipt before choosing the destination. After an interruption and reconnect, it sends a newly activated install to the dashboard and skips custodian first-run work. Select the handoff using receipt ownership before clearing it, and add a recovered completed-receipt regression test.
  • Bound paginated discovery by one total deadline (P2) - discovery.timeoutMs is documented as the maximum time before fallback, yet every model/list page receives the full timeout and the loop permits up to 20 pages. A paginated account can therefore stall discovery for many timeout intervals. Compute a single deadline and pass only the remaining time to each page, with a delayed multi-page regression test.
  • Resolve merge risk (P1) - A recovered fresh activation can silently skip first-run memory, permission, channel, and hatch setup.
  • Resolve merge risk (P2) - Paginated discovery can wait one full configured timeout per page rather than honoring the documented maximum.
  • Resolve merge risk (P1) - The positive production delta is net +360 lines; the catalog capability may justify an owner boundary, but the repair should avoid additional layering and retain only necessary code.
  • Resolve merge risk (P1) - Direct Codex app-server contract inspection is unavailable, so protocol compatibility cannot receive a merge-ready or proof-sufficient determination.
  • Complete next step (P2) - Maintainer-owned work needs the two source repairs, focused reruns, and a review refresh; the unavailable Codex contract prevents a protocol-ready recommendation.
  • Improve patch quality - Route receipt-backed recovered activation through custodian onboarding and prove it after relaunch.
  • Improve patch quality - Use one deadline across paginated model discovery and add a multi-page timeout regression.
  • Improve patch quality - Document the public loadModelCatalog harness callback alongside adjacent SDK hooks.

Findings

  • [P1] Preserve receipt-backed activation during handoff selection — apps/macos/Sources/OpenClaw/OnboardingView+Actions.swift:122-129
  • [P2] Bound paginated discovery by one total deadline — extensions/codex/src/app-server/model-catalog.ts:54-57
Agent review details

Security

None.

PR surface

Source +451, Tests +525, Other -93. Total +883 across 36 files.

View PR surface stats
Area Files Added Removed Net
Source 19 541 90 +451
Tests 8 549 24 +525
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 9 170 263 -93
Total 36 1260 377 +883

Review metrics

Metric Value Why it matters
Production versus test delta production +581/-221 (net +360); tests +679/-156 (net +523) The substantial production growth adds a new catalog and activation boundary, so the corrective changes should avoid further duplicate policy.

Stored data model

Persistent data-model change detected: serialized state: src/agents/prepared-model-catalog-worker.integration.test.ts, serialized state: src/agents/prepared-model-runtime.auth-store.ts, vector/embedding metadata: src/gateway/server-methods/models-list-configured-static.ts, vector/embedding metadata: src/gateway/server-methods/models-list-harness-catalog.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Repair recovery and deadline ownership (recommended)
    Route owner-bound recovered activations to custodian onboarding and carry one remaining-time budget through model-list pagination before requesting merge.
  2. Pause the catalog expansion
    Pause this PR if the Codex app-server contract cannot be inspected and validated before the onboarding change is otherwise needed.

Technical review

Best possible solution:

Preserve activation-receipt ownership through handoff selection, enforce one discovery deadline across pagination, document the public harness callback, then rerun focused macOS and Codex coverage with the Codex app-server contract available.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: seed and verify an owner-bound completed activation receipt after relaunch, then observe the plain-dashboard handoff; paginate delayed model-list responses to exceed the configured total timeout.

Is this the best way to solve the issue?

No. Selecting by existing-model kind loses activation ownership, and applying the timeout independently per request cannot satisfy the documented total bound.

Full review comments:

  • [P1] Preserve receipt-backed activation during handoff selection — apps/macos/Sources/OpenClaw/OnboardingView+Actions.swift:122-129
    A completed owner-bound receipt represents a recovered fresh activation, but this branch treats every existing-model connection as pre-existing inference and clears the receipt before choosing the destination. After an interruption and reconnect, it sends a newly activated install to the dashboard and skips custodian first-run work. Select the handoff using receipt ownership before clearing it, and add a recovered completed-receipt regression test.
    Confidence: 0.98
  • [P2] Bound paginated discovery by one total deadline — extensions/codex/src/app-server/model-catalog.ts:54-57
    discovery.timeoutMs is documented as the maximum time before fallback, yet every model/list page receives the full timeout and the loop permits up to 20 pages. A paginated account can therefore stall discovery for many timeout intervals. Compute a single deadline and pass only the remaining time to each page, with a delayed multi-page regression test.
    Confidence: 0.97

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 1c3e512096bc.

Labels

Label justifications:

  • P1: The patch can route a newly activated macOS installation past required first-run onboarding after recovery.
  • merge-risk: 🚨 compatibility: The altered activation handoff changes the first-run destination for persisted installations and upgrades.
  • merge-risk: 🚨 auth-provider: Prepared Codex authentication and discovered model availability directly determine whether the selected provider is usable.
  • merge-risk: 🚨 security-boundary: The change carries prepared credentials across onboarding and transport selection, while the upstream app-server contract remains unverified.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🌊 off-meta tidepool and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This maintainer-owned PR is exempt from the external-contributor proof gate; its body nevertheless records claimed macOS and runtime evidence.

Evidence

Acceptance criteria:

  • [P1] swift test --package-path apps/macos --filter OnboardingSystemAgentChatTests.
  • [P1] node scripts/run-vitest.mjs extensions/codex/src/app-server/model-catalog.test.ts.
  • [P1] Inspect the matching Codex app-server model/list contract before claiming protocol compatibility.

What I checked:

  • Receipt-backed activation bypasses first-run handoff: A completed owner-bound activation receipt is recovered and passed as an existing-model activation, but the handoff classifies all existing-model connections as pre-existing inference and clears the receipt before selecting the destination. A recovered fresh activation can therefore reach the dashboard instead of custodian onboarding. (apps/macos/Sources/OpenClaw/OnboardingView+Actions.swift:122, 27dc9607b4a4)
  • Discovery timeout is applied once per page: The plugin manifest describes discovery.timeoutMs as the maximum wait before fallback, while the page loop passes that full timeout to each request and permits up to 20 pages. (extensions/codex/src/app-server/models.ts:67, 27dc9607b4a4)
  • Current main does not contain the catalog implementation: Comparison with current main shows this PR's model-catalog loading implementation is not already present; merged PR fix(ui): stop restart errors from masquerading as model auth #125513 only overlaps the UI catalog-state portion. (extensions/codex/src/app-server/model-catalog.ts:54, 1c3e512096bc)
  • Feature-history provenance: The final maintainer rework introduced the custodian handoff selection and discovery configuration behavior under review. (apps/macos/Sources/OpenClaw/OnboardingView+Actions.swift:122, 27dc9607b4a4)
  • Codex protocol contract remains uninspected: The PR calls the Codex app-server model/list path, but the required sibling ../codex checkout was absent and network resolution prevented obtaining it. This prevents a protocol-contract or proof-sufficient claim, without changing the contributor-proof classification. (extensions/codex/src/app-server/models.ts:67)

Likely related people:

  • steipete: Authored the final maintainer rework that introduced the custodian handoff selection and discovery configuration path. (role: recent area contributor; confidence: high; commits: 27dc9607b4a4, 199ef3f8e7f4, 3fe02aad4dfd; files: apps/macos/Sources/OpenClaw/OnboardingView+Actions.swift, extensions/codex/src/app-server/model-catalog.ts)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@clawsweeper clawsweeper Bot added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 16, 2026
@hannesrudolph
hannesrudolph force-pushed the fix/macos-onboarding-codex-activation branch from 18a6921 to 5d4c01d Compare August 17, 2026 07:51
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: L and removed size: M labels Aug 17, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 17, 2026
@hannesrudolph
hannesrudolph force-pushed the fix/macos-onboarding-codex-activation branch from 5d4c01d to 01060a0 Compare August 17, 2026 17:15
@hannesrudolph
hannesrudolph requested a review from a team as a code owner August 17, 2026 23:17
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Aug 17, 2026
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Aug 18, 2026
hannesrudolph and others added 8 commits August 17, 2026 18:23
# Conflicts:
#	scripts/plugin-sdk-surface-report.mts
#	ui/src/pages/chat/chat-view.test.ts
#	ui/src/pages/chat/components/chat-model-controls.ts
#	ui/src/pages/chat/components/chat-model-picker.ts
#	ui/src/pages/new-session/model-control.test.ts
The manifest documents discovery.enabled (bundled fallback list) and
discovery.timeoutMs (default 2500ms) for model discovery; the new catalog
path used the generic 60s request timeout and ignored the enable gate.
Also drop the test-only listModels injection seam in favor of vi.mock.
configureCodexCliPreparedAuth silently rewrote an explicitly configured
websocket/unix app-server to local stdio (keeping a dangling url), moving
the credential boundary onto this host. Fail setup with actionable
guidance instead; also surface the root cause when the prepared model
catalog refresh fails after activation.
Three near-identical key helpers existed (models-list-result,
models-list-configured-static, harness/model-catalog). Export
resolveModelCatalogIdentityKey from the route-policy owner, collapse the
duplicate dedupe loops into dedupeByKey, make donor enrichment Map-based,
and inline the one-off harness-augment wrapper.
Landing every finish on the plain dashboard stranded the custodian
first-run flow (memory import, channels, permissions, hatch). Fresh
activations now hand off to custodian onboarding; live-verified
pre-existing setups reopen the normal dashboard, matching the removed
already-configured shortcut. Tests pin the destination per path.

Also isolate the post-startup Codex login test from developer machines:
ambient OPENAI_API_KEY and a real Codex login made it assert-fail.
@openclaw-barnacle openclaw-barnacle Bot removed the app: web-ui App: web-ui label Aug 18, 2026
@steipete
steipete merged commit 34c3d15 into openclaw:main Aug 18, 2026
244 checks passed
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 20, 2026
* fix(setup): refresh Codex registry with staged install

* fix(macos): verify inference before onboarding handoff

* fix(setup): use native Codex home for subscription auth

* fix(codex): honor attempt-scoped setup config

* fix(macos): align onboarding handoff with reopen

* fix(setup): await prepared model convergence

* fix(ui): avoid false auth state for empty catalog

* fix(setup): scope catalog convergence to Codex gateway

* fix(setup): publish the committed runtime catalog

* fix(models): project configured static runtime models

* fix(codex): expose app-server model catalog

* fix(models): preserve Codex auth across reloads

* fix(ci): align Codex onboarding checks

* test(ui): stabilize dock suppression environment

* fix(codex): honor discovery config in app-server model catalog

The manifest documents discovery.enabled (bundled fallback list) and
discovery.timeoutMs (default 2500ms) for model discovery; the new catalog
path used the generic 60s request timeout and ignored the enable gate.
Also drop the test-only listModels injection seam in favor of vi.mock.

* fix(setup): refuse prepared Codex auth over an explicit remote transport

configureCodexCliPreparedAuth silently rewrote an explicitly configured
websocket/unix app-server to local stdio (keeping a dangling url), moving
the credential boundary onto this host. Fail setup with actionable
guidance instead; also surface the root cause when the prepared model
catalog refresh fails after activation.

* refactor(agents): one canonical model-catalog identity key

Three near-identical key helpers existed (models-list-result,
models-list-configured-static, harness/model-catalog). Export
resolveModelCatalogIdentityKey from the route-policy owner, collapse the
duplicate dedupe loops into dedupeByKey, make donor enrichment Map-based,
and inline the one-off harness-augment wrapper.

* fix(macos): restore custodian handoff for fresh activations

Landing every finish on the plain dashboard stranded the custodian
first-run flow (memory import, channels, permissions, hatch). Fresh
activations now hand off to custodian onboarding; live-verified
pre-existing setups reopen the normal dashboard, matching the removed
already-configured shortcut. Tests pin the destination per path.

Also isolate the post-startup Codex login test from developer machines:
ambient OPENAI_API_KEY and a real Codex login made it assert-fail.

---------

Co-authored-by: Peter Steinberger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: macos App: macos extensions: codex gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants