Repository navigation
fix(codex): restore Computer Use after desktop plugin replacement - #156556
Conversation
Desktop bundles can retain a skills-only computer-use plugin after moving the MCP server to unified-computer-use. Prepare the official unified launch descriptor in each managed home and use that source for native installation, cache refresh, readiness, and health checks. Preserve custom identities, native MCP policy, legacy desktops, and separate browser plugins. Track the official source tree so same-version asset updates refresh the prepared plugin without modifying the desktop bundle or importing its user cache. Validation: producer regression red/green, same-version hook refresh red/green, scoped Computer Use and auth-bridge tests, both extension type graphs, and the complete unskipped check-changed gate.
|
🦞👀 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 September 25, 2026, 11:26 AM ET / 15:26 UTC (Revision 4). ClawSweeper reviewWhat this changesThe bundled Codex plugin prepares the newer desktop Computer Use runtime in isolated agent homes and refreshes its marketplace wrapper when the desktop plugin set changes. Merge readiness✅ Ready for maintainer review Keep this PR open. Current main and the latest release still use the legacy marketplace wrapper, while the branch addresses the replacement desktop plugin. Installed macOS evidence shows a native Computer Use call completing after the fix; the latest sibling-refresh correction has focused regression coverage. No definite introduced defect was found. Priority: P1 Review scores
Verification
How this fits togetherOpenClaw prepares an isolated Codex home before an agent turn. Codex app-server then discovers the prepared desktop plugin, installs or checks its MCP server, and exposes Computer Use to the turn. flowchart LR
A[Agent Computer Use settings] --> B[Selected macOS desktop]
B --> C[Managed marketplace wrapper]
A --> C
C --> D[Codex app-server]
D --> E[Computer Use readiness]
E --> F[Agent turn]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +383, Tests +363, Docs +20. Total +766 across 12 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep desktop runtime preparation and refresh in the Codex plugin, with isolated-home ownership and native MCP restrictions preserved across desktop updates. Do we have a high-confidence way to reproduce the issue? Yes. An installed 2026.9.5 Gateway failed before the model turn, and current main retains the same legacy wrapper; an unmodified 2026.9.6 installation was not separately exercised. Is this the best way to solve the issue? Yes. Preparing the selected desktop's unified plugin in the existing managed marketplace owner is a focused repair, and the branch preserves custom identities and native policy checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 25d74027a95d. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
…fied-computer-use # Conflicts: # extensions/codex/src/app-server/computer-use-marketplace.ts
|
Fixed: managed macOS Computer Use follows desktop plugin replacement while keeping the prepared marketplace current. With thanks to @bdjben. |
…enclaw#156556) Restore managed macOS Computer Use after desktop plugin replacement and keep sibling plugin sources available across marketplace updates. Reviewed-by: @shakkernerd Co-authored-by: Shakker <[email protected]>
Backport Telegram #157349: bb6bb77 Backport OpenCode #158056: beadb8c Backport Codex #156556: 07347ac Preserve Telegram replaceability and current-writer authority through every network queue and repeated flood wait. Restore OpenCode v1/v2 catalog and activity using the released 2.0.16 contract, isolated cwd and preserved launcher resolution. Normalize the documented empty activity watermark. Prepare the selected desktop's unified Computer Use artifacts without preseeding a renamed cache identity. Effective native disable and MCP/tool policy precede feature enablement and replacement installation. The development-snapshot operation-ID/filter/flag accusations were disproven against released tag 3a103fe0aff726a4edc7492f03f7b88195d9e4c9; do not migrate working released APIs to an unrelated development contract. Independent correction review and 55 focused cases pass; unchanged original proof is retained. The identical marketplace selector moved to its existing owner and the cache-policy regression to a standalone file for frozen budgets. Their 23 boundary cases, lint, frozen ratchets and Madge pass. Installed CLI, Telegram Test Server and signed macOS/TCC gaps remain explicit. Publication is held by the prepared PR size-policy decision. Co-authored-by: Ayaan Zaidi <[email protected]> Co-authored-by: Ben Badejo <[email protected]> Co-authored-by: Shakker <[email protected]> Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: steipete <[email protected]> Co-authored-by: jalehman <[email protected]>
What Problem This Solves
Fixes agent turns and heartbeats failing Computer Use readiness after a macOS desktop update replaces the legacy
computer-useMCP plugin withunified-computer-use.User Impact
Managed macOS agents can start ordinary turns and use Computer Use with the newer desktop distribution. The legacy default follows the replacement automatically, including an explicitly configured
pluginName: "computer-use"with its default server name. Explicit custom identities and native MCP restrictions keep their configured behavior. The managed unified runtime exposes the computer surface; separate browser integrations retain their existing ownership.Why This Change Was Made
The affected desktop ships a skills-only legacy plugin and a disabled unified MCP template. Registering the old plugin succeeds, but no legacy MCP server appears, so the turn fails before the model turn.
The existing managed marketplace producer now prepares the official unified plugin from the selected desktop's own runtime assets and the agent's isolated home and signed Computer Use service. Native installation and cache refresh consume that prepared source. Readiness and health monitoring share the effective server identity, and the existing source fingerprint owner refreshes copied scripts even when the plugin version stays the same.
The materialized wrapper also compares its plugin entry names with the selected source. A desktop update that adds a sibling plugin refreshes its source link even when the unified plugin content is unchanged; ownership and staged replacement checks retain their existing behavior.
This addresses provisioning and source freshness. Related #149437 covers the JavaScript readiness probe; #155448 changes ordinary-turn availability without restoring this missing runtime.
The official
v2026.9.6release (eb377ac) and main at6a8547con 2026-09-24 still publish the desktop plugin directory through symlinks and select the legacycomputer-useplugin. Neither contains a producer for the replacementunified-computer-useruntime. This is a source comparison; the live before/after execution below was performed on 2026.9.5 and a patched main candidate, not an unmodified 2026.9.6 installation.Evidence
Real installation: before
2026.9.5(ec9c1a1), macOS desktop26.917.51856build10492, desktop-bundled Codex CLI0.155.0-alpha.16.agentRPC with a fresh diagnostic session anddeliver: false.Reply exactly CU_READINESS_OK. Do not use tools or send messages.The preferred OAuth credential was valid with no active recorded cooldown or block. Element also visibly contained the same readiness error in Agent B's direct-message room that day. Agent labels are pseudonyms.
Real installation: after
fd972a4d6ff288fec7bfbb82fc4fd855eca4528a, containing this PR at0f9bd631660f7d1730adc223fba054ebc5cd6504, on the same machine through the normal npm updater. This candidate also contains the independently reviewed auth and registry fixes from fix(auth): honor renewed shared profiles over stale agent copies #155584 and fix(plugins): allow registry refresh to recover stale discovery #155630; its base isc7ee253e2c4c083ca497c1f164c9524eccfeaee0.bundled; all 20 Codex payload files and both compiled Computer Use runtime chunks match the built artifact. Existing Codex configuration and the saved stable-channel preference were preserved. There is no checkout symlink.205a05e6ac9c448f43d551cd84ee0969d37ce0d9db692a9db9fe9e314028d7e6. The package retains version2026.9.5; the commit identifies this custom main build, not an official stable release.agentrequest used native Computer Use to select Element and read its accessibility state. It completed in 27.74 seconds, with statusokand final textCU_TOOLS_OK.cua_repl/jscall with a nonempty Element accessibility result. Private inspection verified an actual Element window, the selected room, and message controls in the 494-line accessibility state. Gateway receipt, stored session, Codex binding, native thread/turn and final marker correlate. The actual initialization handshake identifies the desktop-owned native Codex0.155.0-alpha.16in the agent-owned home. The binding selected the primary OAuth profile; this is runtime selection evidence, not a claim about an independently inspected billing account.Reply exactly MATRIX_AFTER_OK_20260923. This is a diagnostic; do not use tools.through Element in Agent A's existing Matrix conversation. Element visibly received the linked agent replyMATRIX_AFTER_OK_20260923. No session reset was used for this test. The existing Matrix session and native completed turn correlate to that marker, and this Matrix run also selected the primary OAuth profile.These results cover an actual native Computer Use execution and the existing Matrix message path. They do not claim that every agent or every Computer Use action was exercised.
Retained live installation proof at 2fb5149 (2026-09-25)
2fb514992c2b0fc9f3205a69fe3a77555fafed28as a self-contained OpenClaw2026.9.6npm package with the bundled Codex plugin. The package integrity checker passed, and the tarball'sdist/build-info.jsonand the live/opt/homebrew/lib/node_modules/openclaw/dist/build-info.jsonboth identify this full commit. Artifact SHA-256:5e92c850285bfa4d0dda7218c25f0ee1074b60596f64763b1e5c6c34c0c6ec3f./readyzsubsequently reportedready: truewith no failing components and no event-loop degradation. Gateway health reportedok: true, including Matrix connected.agentcommand to Agent A with an explicit new session. It requested only a read of Element's accessibility state. The request completed with statusokand final markerNATIVE_CU_PR156556_OK. Its native Codex rollout contains a completedcua_repl/jscall tocua.getApp("Element"), followed by a nonempty Element window/accessibility result. This proves execution on the actual installed PR head, without sending or changing a Matrix message. Agent labels are pseudonyms.stable. The live agent run logged a separatenative prompt annotation would restore redacted evidencetranscript-persistence warning after the native turn; the Computer Use call and final reply completed. That warning is not attributed to this PR.Regression and static validation
2fb5149, the new test file passed 4/4, and the existing managed-marketplace suite passed 10/10. Coverage includes two isolated agent homes, installation/reinstallation from the prepared source, incomplete-runtime refusal, native-policy preservation, and generation freshness.publishManagedWrapperentry point.2fb5149also passed the focused plugin-contract check, the Codex startup and unified-runtime tests (8/8), and a local AutoReview with no P0-P2 findings. Relevant native installation, environment, and configuration-precedence contracts were verified against both0.155.0-alpha.16and0.155.1source.The historical CI failure on
2fb5149came from the newer main baseline'sUpdateStepResultimport inpackage-update-npm-pack.ts; #157659 repaired it in main. That failed run is retained as historical evidence, not reported as a pass.Sibling refresh correction at 7ef7033
The publisher regression adds a sibling directory and marketplace entry without changing unified content, then loads the sibling manifest through the prepared marketplace's advertised source. It failed on
2fb5149withENOENTand passes with the freshness correction. The unified test file passes 5/5 (104 ms of test execution; 30.55 seconds total with compiled-worker preparation), including the existing isolated-home, custom-identity, native-policy, and incomplete-runtime controls. Formatting, focused syntax lint, and changed-file ratchets pass. The correction's independent AutoReview reports no P0–P2 findings.The earlier installed macOS proof remains applicable to the unchanged runtime preparation and native launch contracts; no new live installation or Gateway restart was performed for this correction. Blacksmith Testbox verified the exact candidate tree
23898bd35b093684bb019eb02fc76c1de73e9ff8: 200/200 tests across six affected files passed in 44.79 seconds, and targeted type-aware lint passed with 0 warnings and 0 errors. The new sibling case took 12 ms remotely. Independent review of the complete publication and rollback owner also found no new defect. The normal PR CI run checks the integrated merge result; its status is reported in the PR checks.Public evidence omits network addresses, room identifiers, account identifiers, and real agent names.