Skip to content

fix(codex): CUA readiness hits browser auth during app checks - #162467

Merged
RomneyDa merged 1 commit into
mainfrom
openclaw/investigate-openclaw-cua-bridge-auth-bug
Oct 1, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
openclaw/investigate-openclaw-cua-bridge-auth-bug

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

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 used cua.getState(), which also inventories browsers; with a native user Codex home authenticated by API key, that browser inventory returns unsupported Codex auth method: apikey even 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

  • Reproduced the mixed-surface result through the real cua.getState() entry point: app inventory succeeded while browser inventory returned the API-key auth error.
  • Verified cua.listApps() succeeds through the same live CUA runtime without entering browser inventory.
  • Regression test failed before the production change because readiness sent await cua.getState();, then passed after it sent await cua.listApps();.
  • Five focused Computer Use suites: 82/82 passed (64.67s wall on the rebased checkout).
  • Periodic health regression suite: 8/8 passed (node scripts/run-vitest.mjs extensions/codex/src/app-server/computer-use-health.test.ts --maxWorkers=1, 29.87s wall).
  • Previously failing CI scope reproduced locally after rebasing: core lint stripes 3/4/5 all passed.
  • 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.
  • Fresh autoreview of the rebased five-file diff: scoped clean, no P0/P1 findings.

No configuration, migration, or user action is required.

@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@RomneyDa
RomneyDa marked this pull request as ready for review October 1, 2026 06:17
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 1, 2026
@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 1, 2026, 11:25 AM ET / 15:25 UTC (Revision 3).

ClawSweeper review

What this changes

The 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
Reviewed head: 3ba48ac7af1c039ed4abd7826a476bef76daca37

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with synchronized documentation and coverage; the previous blockers are resolved.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its captured body reports the changed readiness expression succeeding through the same live CUA runtime that exposed the browser-auth error; focused tests are supplemental. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its captured body reports the changed readiness expression succeeding through the same live CUA runtime that exposed the browser-auth error; focused tests are supplemental. No stored-data contract changes.
Evidence reviewed 8 items Pinned introduced change: The introduced delta replaces only the unified readiness expression with await cua.listApps(); legacy tool selection, error handling, retries, and subscription cleanup remain intact.
Still needed on main: The fetched main revision still defines the unified probe as await cua.getState();.
Latest release comparison: The v2026.9.7 source also uses await cua.getState();. A missing local release blob was inspected through the read-only GitHub contents API.
Findings None None.
Security None None.

How this fits together

OpenClaw'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
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source 0, Tests 0, Docs +1. Total +1 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 0
Tests 3 3 3 0
Docs 1 4 3 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 8 7 +1

Review metrics

None.

Technical review

Best 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.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its captured body reports the changed readiness expression succeeding through the same live CUA runtime that exposed the browser-auth error; focused tests are supplemental. No stored-data contract changes.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This repairs a bounded false readiness failure for native Computer Use with API-key authentication.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its captured body reports the changed readiness expression succeeding through the same live CUA runtime that exposed the browser-auth error; focused tests are supplemental. No stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • jalehman: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-10-01T06:22:39.063Z sha 5cbf94b :: needs changes before merge. :: [P3] Update the documented unified readiness probe
  • reviewed 2026-10-01T15:14:26.442Z sha 7706be5925fd27af1919e5bf0f26c07f53031634 :: needs changes before merge. :: [P2] Update the periodic-health test to expect the native-app probe

@RomneyDa
RomneyDa force-pushed the openclaw/investigate-openclaw-cua-bridge-auth-bug branch from 5cbf94b to 7706be5 Compare October 1, 2026 15:07
@openclaw-barnacle openclaw-barnacle Bot added the docs Improvements or additions to documentation label Oct 1, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 1, 2026
@RomneyDa
RomneyDa force-pushed the openclaw/investigate-openclaw-cua-bridge-auth-bug branch from 7706be5 to 3ba48ac Compare October 1, 2026 15:18
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 1, 2026
@RomneyDa
RomneyDa merged commit 9f9dab3 into main Oct 1, 2026
114 of 115 checks passed
@RomneyDa
RomneyDa deleted the openclaw/investigate-openclaw-cua-bridge-auth-bug branch October 1, 2026 15:32
RomneyDa added a commit that referenced this pull request Oct 1, 2026
* 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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation extensions: codex P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant