Repository navigation
fix(codex): CUA readiness hits browser auth during app checks - #162467
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed October 1, 2026, 11:25 AM ET / 15:25 UTC (Revision 3). ClawSweeper reviewWhat this changesThe PR checks native app inventory for Codex Computer Use readiness and updates the corresponding documentation, tests, and fixture. Merge readiness✅ Ready for maintainer review The fix remains necessary: current main and the latest release still use the combined probe. Both previous findings are resolved, and no remaining actionable patch defect was found. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw's Codex plugin checks desktop-control readiness through Codex app-server. Status commands, strict startup, and periodic health checks consume the result. flowchart TD
A[Status or startup check] --> C[Shared readiness probe]
B[Periodic health check] --> C
C --> D{Available tool surface}
D --> E[Legacy app inventory]
D --> F[Unified native app inventory]
E --> G[Readiness result]
F --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource 0, Tests 0, Docs +1. Total +1 across 5 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep readiness scoped to native app control through the existing shared probe, with browser authentication owned by the desktop runtime. Do we have a high-confidence way to reproduce the issue? Yes, the reported path is concrete: run unified Computer Use readiness with an API-key-authenticated native Codex home. Source confirms the combined probe on main; the member author reports the browser-auth failure and successful native-only alternative. Is this the best way to solve the issue? Yes. Changing the existing probe expression matches the native capability boundary while preserving legacy discovery, MCP error handling, and cleanup. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b84ca7e1d0b8. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
5cbf94b to
7706be5
Compare
7706be5 to
3ba48ac
Compare
* fix(sessions): restore Windows cron setup and session admission (#160075) Windows cron isolated-agent runs and session transcript discovery failed with DataCloneError because the request carried the Windows process-environment proxy into the transcript worker. Exact-entry and discovery requests now capture a plain, bounded storage environment and the worker restores Windows lookup semantics. Closes #157067. Closes #159339. Supersedes #157109 and #157348 (closed with credit). Landed under the pre-existing-red rule (#161124 and session-store main reds). (cherry picked from commit a181c3f) * fix(codex): avoid browser auth in CUA readiness (#162467) (cherry picked from commit 9f9dab3) * chore(release): prepare 2026.9.7-1 * chore(release): prepare 2026.9.8 * fix(gateway): normalize quiescence recovery diagnostics Keep the retained watchdog recovery error consistent with the single-line workspace sync error surfaced to operators on single-digit days. Preserve raw ps start identities for signal guards and existing watchdogs. Make the existing exhaustion regression calendar-independent with padded lstart input, retaining the exact recoveryError assertion and proving that all stopped workers resume after process probes recover. Verified the original UTC failure and the deterministic pre-fix failure. The full quiescence script file passes under UTC, the exact regression passes in the default timezone, and 15 sibling tests pass. Core typecheck, formatting, diff checks, and independent review also pass. --------- Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Fixes: Codex Computer Use readiness enters the browser-auth path when it only needs to verify native app control.
User Impact
User impact: native Computer Use readiness no longer depends on browser inventory or its separate authentication requirements.
Why This Change Was Made
The unified CUA runtime exposes native app control through
cua.listApps(). The existing probe usedcua.getState(), which also inventories browsers; with a native user Codex home authenticated by API key, that browser inventory returnsunsupported Codex auth method: apikeyeven though native app control is healthy.Probe the capability OpenClaw actually requires instead. This preserves the native user home's configuration and leaves browser authentication under the Desktop CUA owner. The Computer Use guide now documents the native-app-only readiness boundary.
Evidence
cua.getState()entry point: app inventory succeeded while browser inventory returned the API-key auth error.cua.listApps()succeeds through the same live CUA runtime without entering browser inventory.await cua.getState();, then passed after it sentawait cua.listApps();.node scripts/run-vitest.mjs extensions/codex/src/app-server/computer-use-health.test.ts --maxWorkers=1, 29.87s wall).pnpm check:docs: passed formatting, Markdown/MDX lint, link audit, config examples, glossary, and changelog mirrors.node scripts/check-changed.mjs: passed extension formatting, lint, type checks, boundary checks, and repository ratchets.No configuration, migration, or user action is required.