Skip to content

fix(codex): keep ordinary turns available without Computer Use - #155448

Open
BsnizND wants to merge 1 commit into
openclaw:mainfrom
BsnizND:codex/jay-text-delivery
Open

BsnizND wants to merge 1 commit into
openclaw:mainfrom
BsnizND:codex/jay-text-delivery

Conversation

@BsnizND

@BsnizND BsnizND commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes: ordinary Codex text and image turns fail to start when the optional Computer Use plugin, marketplace entry, or MCP server is unavailable.

User Impact

User impact: ordinary Codex turns remain available without Computer Use; explicit Computer Use status, installation, and invocation-time approval/security behavior remain intact.

Why This Change Was Made

Non-strict Codex app-server startup treats unavailable optional Computer Use setup as non-blocking. Existing autoInstall setups still install or re-enable the plugin before startup, and explicit strictReadiness setups still require a successful readiness check. Periodic health checks discover the available MCP tool dynamically, while explicit status/install commands continue to explain and repair availability.

Related: #155440

Evidence

  • Real native runtime, deliberately nonexistent Computer Use marketplace: non-strict startup logged the setup failure and returned ORDINARY_CODEX_TURN_OK from openai/gpt-6-astra (ok: true, status: ok).
  • The same real setup with strictReadiness: true failed before model execution with AgentHarnessPreflightError, preserving the released opt-in contract.
  • Focused regression suite: 310 tests passed across both owning shards in 64.57 seconds, including a startup-level assertion that autoInstall issues plugin/install before the ordinary turn.
  • pnpm check:changed: passed on exact head 32b7907eff375931b94d9ea02ff67a31ac4f1cbd.
  • pnpm docs:check-links: 14,317 links checked, 0 broken.
  • Fresh external autoreview after the compatibility correction: clean through P2, patch correctness confidence 0.84.
  • Full pnpm test:extension codex exercised all batches. The remaining current-main transport-stdio.sandbox.test.ts fixture failure is tracked in fix: Codex sandbox tests fail after host capability context change #155440; the unrelated native-skill isolation suite passes 9/9 with an empty CODEX_HOME.
  • No visual UI changed, so screenshots are not applicable.
  • Live Jay-to-Codex deployment proof will follow landing and installation on the target runtime.

@clawsweeper

clawsweeper Bot commented Sep 22, 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.

@BsnizND
BsnizND marked this pull request as ready for review September 22, 2026 04:51
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation extensions: codex size: L labels Sep 22, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 22, 2026
@clawsweeper

clawsweeper Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 29, 2026, 7:24 AM ET / 11:24 UTC (Revision 3).

ClawSweeper review

What this changes

The Codex plugin lets ordinary text and image turns start after non-strict Computer Use setup fails, while retaining auto-install, strict readiness, and periodic health checks.

Merge readiness

⛔ Blocked before merge - 4 items remain

The PR remains useful because current main still blocks ordinary Codex turns when configured Computer Use setup fails. Its runtime proof supports the proposed recovery, but the patch changes a documented availability requirement for existing configurations without a maintainer decision on that compatibility tradeoff.

Priority: P2
Reviewed head: 32b7907eff375931b94d9ea02ff67a31ac4f1cbd
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Direct native-run evidence supports the behavior, while the unresolved documented-default change limits patch readiness.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The captured PR body reports a real native Codex run at the pinned head with a missing marketplace: the non-strict ordinary turn succeeds and the strict sibling fails before model execution. Focused tests cover auto-install; no stored-data contract changes are introduced.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The captured PR body reports a real native Codex run at the pinned head with a missing marketplace: the non-strict ordinary turn succeeds and the strict sibling fails before model execution. Focused tests cover auto-install; no stored-data contract changes are introduced.
Evidence reviewed 7 items Introduced startup behavior: The pinned PR hunk makes Computer Use setup errors non-blocking when strictReadiness is false.
Current main contract: Current main still wraps a non-cancellation Computer Use setup failure as a harness preflight error. Its documentation says configured Computer Use must be available before a thread starts and describes enabled as requiring Computer Use.
Existing setting defaults: Computer Use can be inferred enabled from existing settings, while strictReadiness defaults to false; affected users need not have explicitly chosen non-strict availability.
Findings 1 actionable finding [P1] Preserve configured Computer Use availability on upgrade
Security None None.

How this fits together

OpenClaw's Codex plugin prepares a native Codex app-server for agent turns. Computer Use setup runs before the ordinary thread starts, while Codex owns subsequent MCP tool calls.

flowchart TD
  A[Agent turn] --> B[Codex startup]
  B --> C[Computer Use setup]
  C --> D{Strict readiness?}
  D -->|Yes, setup fails| E[Preflight error]
  D -->|No, setup fails| F[Ordinary turn starts]
  F --> G[Optional health checks]
Loading

Decision needed

Question Recommendation
Should existing Computer Use configurations continue to require MCP availability before a Codex turn, or should unavailable setup become best effort by default? Preserve the default gate: Keep existing configurations fail-closed on missing MCP availability and add an explicit best-effort mode for ordinary turns.

Why: Both behaviors are defensible, but the PR changes a documented setting contract for existing users; runtime correctness alone cannot authorize that product choice.

Before merge

  • Preserve configured Computer Use availability on upgrade (P1) - Existing documentation defines enabled Computer Use as required before a turn starts, and current main enforces that even with strictReadiness false. This new catch lets an existing configured agent proceed without the MCP tools after setup fails; strictReadiness true is not equivalent because it also requires a live probe. Preserve the existing default and make best-effort startup explicit unless a product owner approves the compatibility break. This concern was visible at the earlier reviewed head; the late discovery is mine.
  • Resolve merge risk (P1) - Existing agents configured to require Computer Use can now start without its MCP tools after setup fails. Setting strictReadiness restores a gate but also adds a live probe, so it does not preserve the prior availability-only behavior.
  • Complete next step (P2) - A Codex product owner should decide the existing-configuration availability policy, then require the branch to implement and prove that choice before merge.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

  • [P1] Preserve configured Computer Use availability on upgrade — extensions/codex/src/app-server/attempt-startup.ts:334-343
Agent review details

Security

None.

PR surface

Source +27, Tests -214, Docs +1. Total -186 across 10 files.

View PR surface stats
Area Files Added Removed Net
Source 3 46 19 +27
Tests 6 205 419 -214
Docs 1 38 37 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 10 289 475 -186

Review metrics

Metric Value Why it matters
Existing setting contract 1 availability default changed Configured Computer Use no longer gates ordinary turns when setup is unavailable.

Merge-risk options

Maintainer options:

  1. Add an opt-in best-effort mode (recommended)
    Preserve current configured startup behavior and make ordinary-turn recovery an explicit operator choice.
  2. Own the upgrade change
    A Codex product owner can accept the changed default with explicit upgrade guidance and proof for existing configurations.

Technical review

Best possible solution:

Preserve the existing configured availability gate by default and offer best-effort ordinary turns through an explicit optional mode, with upgrade and fresh-setup proof for both modes.

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

Yes, from current-main source: configure Computer Use with an unavailable marketplace and strictReadiness false; startup still throws a preflight error. The contributor reports the corresponding real native after-fix run, but this review did not execute either version.

Is this the best way to solve the issue?

No. The startup owner is the right place to handle optional setup failure, but changing the behavior of existing enabled configurations requires an explicit compatibility choice or opt-in mode.

Full review comments:

  • [P1] Preserve configured Computer Use availability on upgrade — extensions/codex/src/app-server/attempt-startup.ts:334-343
    Existing documentation defines enabled Computer Use as required before a turn starts, and current main enforces that even with strictReadiness false. This new catch lets an existing configured agent proceed without the MCP tools after setup fails; strictReadiness true is not equivalent because it also requires a live probe. Preserve the existing default and make best-effort startup explicit unless a product owner approves the compatibility break. This concern was visible at the earlier reviewed head; the late discovery is mine.
    Confidence: 0.91
    Late finding: first raised on code an earlier review cycle already covered.

Overall correctness: patch is incorrect
Overall confidence: 0.9

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 13b3bf2c5580.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: The improvement affects Codex users with unavailable optional desktop setup, a bounded subset of agent turns.
  • merge-risk: 🚨 compatibility: The branch changes the documented meaning of configured Computer Use for existing installations.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (live_output): The captured PR body reports a real native Codex run at the pinned head with a missing marketplace: the non-strict ordinary turn succeeds and the strict sibling fails before model execution. Focused tests cover auto-install; no stored-data contract changes are introduced.
  • proof: sufficient: Contributor real behavior proof is sufficient. The captured PR body reports a real native Codex run at the pinned head with a missing marketplace: the non-strict ordinary turn succeeds and the strict sibling fails before model execution. Focused tests cover auto-install; no stored-data contract changes are introduced.

Evidence

What I checked:

Likely related people:

  • Josh Lehman: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Resolve the existing-configuration compatibility choice with the Codex product owner.
  • Prove both fresh setup and upgrade behavior for the selected availability policy.

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-09-22T05:00:30.102Z sha 6be32866af2b4a16eb70d7559ac6386096f383f3 :: needs real behavior proof before merge. :: [P1] [P1] Preserve explicitly enabled strict readiness | [P1] [P1] Retain plugin installation for existing auto-install setups
  • reviewed 2026-09-22T06:07:31.968Z sha 32b7907 :: needs maintainer review before merge. :: none

@BsnizND
BsnizND force-pushed the codex/jay-text-delivery branch from 6be3286 to 32b7907 Compare September 22, 2026 05:32
@BsnizND

BsnizND commented Sep 22, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 22, 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. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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. clawsweeper-recovery-stuck labels Sep 27, 2026
@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

This branch has not been deployed

No deployments
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 merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: L stale Marked as stale due to inactivity 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.

1 participant