Skip to content

fix(codex): keep Computer Use working after desktop updates - #127778

Merged
joshavant merged 13 commits into
mainfrom
feature/codex-desktop-generation
Aug 25, 2026
Merged

joshavant merged 13 commits into
mainfrom
feature/codex-desktop-generation

Conversation

@joshavant

@joshavant joshavant commented Aug 22, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #127024

What Problem This Solves

Codex-native Computer Use could retain an app-server loaded from the previous ChatGPT or Codex desktop build after the desktop updated in place. The first request after the update could then fail with a closed transport until the Gateway restarted.

Architecture and Product Decision

The Codex plugin now owns one event-driven desktop generation for the standard macOS ChatGPT and Codex candidates. A settled generation change gracefully detaches only older physical app-server clients. Active X turns finish on X; new acquisitions for the same isolated home wait for X to physically exit, reconcile the fixed-path artifacts, and start on Y. Unrelated homes remain independent.

The owner also materializes Codex's reserved openai-bundled marketplace as a contained real wrapper inside an eligible isolated CODEX_HOME, then lets Codex app-server own marketplace/add. Codex canonicalizes local sources and accepts the reserved name only at $CODEX_HOME/.tmp/bundled-marketplaces/openai-bundled, so a direct symlink to /Applications/... cannot satisfy the dependency contract.

This lifecycle-owned automatic convergence is the accepted default for standard managed ChatGPT/Codex desktop candidates on the existing macOS native-Computer-Use surface. It does not widen platform support, custom executable support, or mutation authority. There is no request-hot-path freshness polling, new config, or new dependency. autoInstall: false, user homes, and explicit CODEX_HOME remain opt-outs. autoRepair remains limited to failed-readiness stale-MCP repair.

If the bundle changes again during startup, the stale client is fenced before login or thread/start; the existing bounded startup retry owns recovery. This is not a blanket retry promise for unrelated transport failures, unsupported update mechanisms, or custom executable paths. Gateway restart remains the visible recovery for those cases.

Root Cause and Canonical Fix

Current main memoizes native service selection by path strings and warm app-server identity does not encode same-path desktop replacement. Failure-driven retry cannot reliably distinguish a desktop-generation transition from the unrelated random Computer Use transport closures observed during the spike.

The canonical owner is therefore the desktop generation plus its per-CODEX_HOME artifact reconciliation. Filesystem events only invalidate that owner; settled fingerprints identify a change, while authenticity and mutation authority still come from known candidate resolution, signed service inspection, and captured managed-home identities. The old completed-service path cache is removed. No parallel polling or compatibility path remains. The settled fingerprint includes a deterministic, bounded hash of the complete Computer Use plugin tree—not only plugin.json—and recursive app-root watching observes in-place skill, MCP-config, launcher, and asset changes. A same-version non-manifest byte change therefore advances the generation and forces the managed cache to replace those bytes.

Exact-head Live Proof

PR head 89906f686f2211af94349939d30d6ae6182f9903, based on 935c555c98d6b38af76faa6a0b1370353d1828df, was built and exercised in the existing macOS UTM testbox with two notarized official ChatGPT desktop generations and two simultaneous isolated agents.

  • This proof includes feat(codex): upgrade main to app-server 0.149.1 #128370's runtime contract: managed Codex was stable 0.149.1; desktop X/Y embedded 0.149.0-alpha.4.1 and .4.3, so both desktop binaries were rejected for app-server ownership and the actual OpenClaw app-server processes ran from node_modules/@openai/codex-darwin-arm64. Desktop artifacts still supplied Computer Use, exercising the package-fallback path this PR must support.
  • Gateway PID 14037 remained unchanged while /Applications/ChatGPT.app was physically replaced X → Y.
  • X: ChatGPT 26.818.41509 build 6962; Computer Use 1.0.1000816; Codex SHA-256 09db9560f6f9dec139d3324254fb3c8fdbad5ecce1d8c794113dc15294f6aefd; app CDHash 59729f374e9041c73fae77d3fb33ce323d514ba4.
  • Y: ChatGPT 26.818.61809 build 7019; Computer Use 1.0.1000854; Codex SHA-256 dd304ffe232fa9e782ed3e5358776d270e394c2fb85cab846f989823f0843313; app CDHash 379714a99e8aa5451a17f85033b2a5b0e1bad74a.
  • Both apps were accepted by Gatekeeper as notarized Developer ID builds with identifier com.openai.codex and Team ID 2DC432GLL2.
  • On X, simultaneous multi-a and multi-b turns each recorded exactly one successful computer-use.list_apps MCP completion and returned SUCCEEDED (OpenClaw run IDs 2088908a-fda8-498d-9869-27d272b71c6a and dee8beda-205a-44fc-b06f-dd69e4df88f1). Both isolated homes held service/cache build 1000816.
  • Before the swap, the two physical managed app-servers were PIDs 14313/14315. After Y settled, replacements 14922/14926 owned the two homes.
  • The first two post-swap turns were started concurrently. Each recorded exactly one successful computer-use.list_apps MCP completion and returned SUCCEEDED (run IDs ae138469-27fd-4897-9103-2fc31deb9b54 and 71cae688-7ba9-48ed-aa0c-5493c7665f27). No turn replay or Gateway restart occurred.
  • Both isolated homes converged service/client build 1000816 → 1000854, added cache 1.0.1000854, and resolved the managed wrapper to plugin 1.0.1000854.
  • The current-run gateway log contained no failed response, readiness failure, closed transport, or timeout. The test Gateway/LaunchAgent was removed, port 19321 was released, Y remained installed, the X backup was restored, and the unrelated preserved Gateway remained healthy on PID 750.

The redacted evidence summary and exact MCP completion records are posted as a PR comment; 51 local evidence files are SHA-256 inventoried. The exact-head redacted evidence summary is available at https://gist.github.com/joshavant/6e55755f03913bffb13dc4e1575de5eb (evidence SHA-256 9409b66319b234c0470f6541e961b5cbfa0ea86c0a368d0dad6579605a4fe187; native-call proof SHA-256 dbcba8f6e23880e864f33e8a4e74d45d5aa05d1e31f66eb62c4f8570aeeeee49; inventory SHA-256 dc461d5c50e1a0be04d65959470e1a4870fc968e92264de89941574b3439b20b); a prior-head artifact remains at https://gist.github.com/joshavant/98fe9317f42147a30621ad5f85923e57.

Automated Validation

  • Exact-head focused Codex lifecycle suites: 12 files, 362 tests passed on Node 24.
  • Real-filesystem regressions cover same-path service replacement, managed-home symlink/rebind containment, stale-after-backup rollback, conflicting wrapper generations, and same-version cache refresh.
  • Lifecycle coverage includes dirty-during-read convergence, watcher re-arm/stop ownership, bounded degraded-watcher reconciliation, active and initializing shared/isolated X processes, physical-exit fencing, cross-home independence, package fallback, generation changes during initialize and Computer Use readiness, bounded startup retry, explicit-install drain-before-config-fence ordering, last-claimant cancellation, and terminal harness-preflight classification.
  • node scripts/check-changed.mjs: passed formatting, production/test types, lint, package/lock guards, plugin boundaries, database guards, docs checks, dead-export checks, and import-cycle checks.
  • Exact-head guest pnpm install --frozen-lockfile and full pnpm build: passed, including the Control UI size gate.
  • Exact-head hosted checks: 128 successful and 52 intentionally skipped; every applicable hosted check is green. CI: https://github.com/openclaw/openclaw/actions/runs/32812028797.
  • Exact-head P1 autoreview (gpt-5.6-sol, high reasoning): clean, no accepted/actionable findings. The post-review plugin-byte repair was rated correct with confidence 0.90.

Current-main Comparison

The branch is based directly on origin/main at 935c555c98d6b38af76faa6a0b1370353d1828df. Live origin/main is now e9017714c2d64cb564b467648d8a5c36dd191bff; all commits after the branch base leave extensions/codex unchanged. This includes #128370 (b68c136609049e65852cb400052fec65539f066a), which upgrades managed Codex to 0.149.1, rejects older/prerelease desktop app-servers, and replaces stale-child killing with Codex-owned config/mcpServer/reload.

That merge does not replace this PR's generation owner. Upstream reload refreshes config and MCP runtimes inside the existing app-server; it does not identify same-path desktop replacement, retire the physical app-server, or converge the per-agent Computer Use service/cache/wrapper. The integration preserves #128370's reload for ordinary readiness failures. Only typed CODEX_APP_SERVER_START_SELECTION_CHANGED bypasses that stale-client retry and reaches the existing bounded physical-startup retry after probe-thread cleanup.

The exact-head VM proof above exercises this combined behavior: stable managed app-server 0.149.1, desktop-owned Computer Use 1000816 → 1000854, two isolated homes, and simultaneous first requests without a Gateway restart.

Dependency Contract Checked

Personally inspected the sibling OpenAI Codex checkout at exact release tag rust-v0.149.1 (ff29a44391deccde0aba0f8390337d7f3c319ea4) after fetching current upstream refs (origin/main 3a469a297daeab77a60c142669262366f344a830):

  • codex-rs/core-plugins/src/marketplace_add/source.rs:149-167: local sources are canonicalized.
  • codex-rs/core-plugins/src/marketplace_policy.rs:306-336,493-537: reserved bundled names are accepted only from the managed CODEX_HOME root.
  • codex-rs/core-plugins/src/marketplace.rs:312-333,650-692: the real wrapper manifest and controlled local plugin links satisfy marketplace loading while plugin paths remain rooted.
  • codex-rs/core-plugins/src/marketplace_add.rs:91-153: marketplace/add validates and records the local source.
  • codex-rs/utils/home-dir/src/lib.rs:9-50: explicit CODEX_HOME must exist and is canonicalized.
  • codex-rs/app-server/src/request_processors/initialize_processor.rs:96-147 and app-server-protocol/src/protocol/v1.rs:68-79: initialize reports the configured absolute home, not a desktop-generation token.
  • codex-rs/app-server-protocol/src/protocol/common.rs:1129-1133, app-server/src/request_processors/mcp_processor.rs:79-86, and app-server/src/mcp_refresh.rs:9-28: config/mcpServer/reload reloads config and refreshes existing threads; it does not replace the physical app-server or supply a desktop generation.
  • codex-rs/core/src/session/turn.rs:659-670,1450-1477: MCP/plugin state is refreshed and plugins are loaded during turn work, so Y publication waits for the X physical process to exit, not merely for logical client closure.

This direct exact-release inspection satisfies the repository's Codex hard gate. A hosted reviewer that cannot access a sibling checkout can reproduce the check from the immutable tag and paths above; its environment limitation is not a missing contributor action.

Safety and Compatibility

  • Managed-home marketplace/cache/service writes reuse the captured owner boundary and reject redirected or rebound parents in external-sentinel tests.
  • Replacement events are invalidation hints only. Known candidates are re-resolved and the full signed service/client identity is checked before native artifacts publish.
  • Automatic provisioning still requires enabled Computer Use, autoInstall, and an OpenClaw-owned isolated home. User homes, explicit CODEX_HOME, and custom commands are not seized by the generation owner.
  • No authentication, policy, sandbox, allowlist, approval, or tool-authorization boundary is widened under SECURITY.md. Same-path trusted-host replacement and pre-existing trusted-local symlink priming remain outside the public boundary; containment is nevertheless enforced as production hardening.

Size and Best-fix Judgment

Production: +1728/-183 (net +1545) | Tests/test support: +2733/-181 (net +2552) | Docs: +39/-20 (net +19).

The positive production delta is the concrete lifecycle capability and its ownership/security boundaries: one generation service, a complete desktop-artifact fingerprint, contained reserved-marketplace ownership, exact physical-client retirement, per-home publication fencing, and exact-candidate reconciliation. The implementation removes the old completed-service path cache, reuses the existing exact-client retirement and managed-home identity helpers, and adds no compatibility shim or public configuration.

Maintainer judgment: this production growth is accepted as warranted for the lifecycle capability and its containment/compatibility boundaries. The accepted product contract is convergence for standard managed macOS desktop candidates, with active X work draining, new same-home work adopting Y, unrelated homes remaining independent, existing opt-outs preserved, and no request-hot-path polling.

Alternatives rejected:

  • request-time stat/codesign polling: violates process-stable metadata ownership and adds hot-path latency;
  • failure-driven retry alone: reacts after user-visible failure and cannot distinguish unrelated transport closures;
  • a direct marketplace-root symlink: rejected by Codex after canonicalization;
  • retiring every shared client: breaks unrelated sessions and active-turn drain guarantees.

The optional shared plugin cache is serialized under the same per-home owner, fenced immediately before publication, and bound to the settled desktop epoch plus exact artifact source. The pathfinder cleanup closes the pre-existing same-version/source convergence gap without a sidecar or runtime polling.

Credit: #127024 by @bdjben identified the user-visible update failure and motivated the updater investigation.

@clawsweeper

clawsweeper Bot commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation extensions: codex size: XL maintainer Maintainer-authored PR labels Aug 22, 2026
@clawsweeper clawsweeper Bot added 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: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 22, 2026
@clawsweeper

clawsweeper Bot commented Aug 22, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 1:38 AM ET / 05:38 UTC.

ClawSweeper review

What this changes

Adds event-driven macOS desktop-generation tracking so managed Codex Computer Use artifacts and app-server clients refresh after a desktop update without restarting the Gateway.

Regression provenance

Possible regression — probable (reviewed change; failure trace). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep open for maintainer review. The prior non-manifest plugin-byte gap is covered by the exact head, but automatic convergence changes the managed-home update default and direct Codex contract inspection is unavailable because the required sibling checkout is absent.

Priority: P1
Reviewed head: 89906f686f2211af94349939d30d6ae6182f9903
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch and supplied exact-head evidence are strong, with merge readiness held for product acceptance and unavailable direct dependency inspection.
Proof confidence 🦞 diamond lobster (5/6) Not applicable: The repository state identifies a MEMBER-authored PR, so the contributor-proof gate does not apply; the discussion nevertheless supplies exact-head macOS transition evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The repository state identifies a MEMBER-authored PR, so the contributor-proof gate does not apply; the discussion nevertheless supplies exact-head macOS transition evidence.
Evidence reviewed 7 items Prior finding closure: The fingerprint now includes the complete bounded Computer Use plugin tree, and the regression keeps plugin.json version 1.0.0 unchanged while changing only .mcp.json before asserting epoch 1 to 2.
Generation owner: The generation fingerprint hashes each candidate’s relevant artifacts and complete plugin tree; the service watches desktop roots recursively and settles invalidations before publishing a generation.
Current-main behavior: Current main documents Gateway restart after desktop updates because warm clients are not polled, establishing the behavior this PR changes.
Findings None None.
Security None None.

Live Verification

Command: node scripts/run-vitest.mjs extensions/codex/src/app-server/desktop-generation.test.ts extensions/codex/src/app-server/desktop-generation-service.test.ts

Result: PASS (completed)

node scripts/run-vitest.mjs extensions/codex/src/app-server/desktop-generation.test.ts extensions/codex/src/app-server/desktop-generation-service.test.ts
runner@runnervm76f27:/tmp/clawsweeper-live-proof-127778-297EHk/target$ node scripts/run-vitest.mjs extensions/codex/src/app-server/desktop-generation.test.ts ex
tensions/codex/src/app-server/desktop-generation-service.test.ts
node scripts/run-vitest.mjs extensions/codex/src/app-server/desktop-generation.test.ts extensions/codex/src/app-server/desktop-generation-service.test.ts
[test] starting test/vitest/vitest.extension-codex.config.ts

 RUN  v4.1.10 /tmp/clawsweeper-live-proof-127778-297EHk/target

 ✓  extension-codex  extensions/codex/src/app-server/desktop-generation-service.test.ts (5 tests) 121ms
 ✓  extension-codex  extensions/codex/src/app-server/desktop-generation.test.ts (6 tests) 78ms

 Test Files  2 passed (2)
      Tests  11 passed (11)
   Start at  05:39:37
   Duration  2.67s (transform 1.97s, setup 986ms, import 1.14s, tests 199ms, environment 0ms)

[test] passed 1 Vitest shard in 8.23s
runner@runnervm76f27:/tmp/clawsweeper-live-proof-127778-297EHk/target$ node scripts/run-vitest.mjs extensions/codex/src/app-server/desktop-generation.test.ts ex
tensions/codex/src/app-server/desktop-generation-service.test.ts
































Assertions:

  • PASS expect_output: Test Files

How this fits together

The Codex plugin starts app-server processes for agent turns while managed macOS desktop artifacts provide Computer Use. The new lifecycle owner detects artifact changes, retires old same-home clients, and reconciles artifacts before new turns start.

flowchart LR
A[Desktop app update] --> B[Generation watcher]
B --> C[Stable artifact fingerprint]
C --> D[Retire old same-home clients]
D --> E[Reconcile managed artifacts]
E --> F[New Computer Use turn]
Loading

Decision needed

Question Recommendation
Should managed isolated macOS Codex homes automatically converge Computer Use artifacts and app-server clients after a detected desktop update, rather than retaining Gateway restart as the default recovery boundary? Accept managed-home convergence: Adopt the managed-isolated-home default while retaining user homes, explicit CODEX_HOME, and custom commands as opt-outs.

Why: This changes the default lifecycle and upgrade experience for existing operators; tests and source cannot establish product acceptance.

Before merge

  • Resolve merge risk (P1) - Automatic convergence changes existing managed macOS Computer Use homes from restart-based recovery to artifact and client convergence after a desktop update.
  • Resolve merge risk (P1) - The required direct Codex marketplace and app-server contract review cannot be completed in this environment because the sibling checkout is absent.
  • Complete next step (P2) - A maintainer must decide the managed-home default and complete the required direct Codex contract check before merge.
Agent review details

Security

None.

PR surface

Source +1662, Tests +2435, Docs +19. Total +4116 across 30 files.

View PR surface stats
Area Files Added Removed Net
Source 17 1849 187 +1662
Tests 12 2612 177 +2435
Docs 1 39 20 +19
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 30 4500 384 +4116

Review metrics

Metric Value Why it matters
Production versus test LOC production +1728/-183; tests/test support +2733/-181; docs +39/-20 The repair substantially expands a managed-home lifecycle owner, making the upgrade boundary material before merge.

Stored data model

Persistent data-model change detected: persistent cache schema: extensions/codex/src/app-server/computer-use-cache.test.ts, persistent cache schema: extensions/codex/src/app-server/computer-use-service.test.ts, serialized state: extensions/codex/src/app-server/attempt-startup.test-support.ts, serialized state: extensions/codex/src/app-server/computer-use-cache.test.ts, serialized state: extensions/codex/src/app-server/desktop-generation.ts, vector/embedding metadata: extensions/codex/src/app-server/computer-use-service.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Confirm the managed-home default (recommended)
    Accept automatic convergence after owner approval and direct pinned-Codex source inspection.
  2. Retain explicit restart recovery
    Pause the PR if maintainers do not want desktop updates to alter managed-home recovery by default.

Technical review

Best possible solution:

Retain the managed-isolated-home boundary and accept automatic convergence only after an owner confirms that changed upgrade behavior and directly verifies the pinned Codex contract.

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

No high-confidence local reproduction is available in this read-only Linux checkout; source and supplied exact-head macOS evidence describe the desktop-update path.

Is this the best way to solve the issue?

Unclear: the generation owner directly addresses same-path replacement and the prior plugin-byte gap, but maintainers must decide whether automatic convergence is the intended default.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P1: The PR targets a Computer Use interruption after a desktop update.
  • merge-risk: 🚨 compatibility: Existing managed macOS homes change from restart-based recovery to automatic artifact and client convergence.
  • merge-risk: 🚨 availability: A faulty transition can leave a new Computer Use turn unable to acquire a usable app-server after an update.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster 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 repository state identifies a MEMBER-authored PR, so the contributor-proof gate does not apply; the discussion nevertheless supplies exact-head macOS transition evidence.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Current-main blame places this contributor on the existing managed Computer Use service synchronization boundary. (role: recent area contributor; confidence: low; commits: d48166515ef6; files: extensions/codex/src/app-server/computer-use-service.ts)
  • clawsweeper: Authored the merged Codex app-server 0.149.1 integration that this PR explicitly composes with for package fallback and reload behavior. (role: adjacent owner; confidence: medium; commits: b68c13660904; files: extensions/codex/src/app-server/shared-client.ts)

Rank-up moves

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

  • Have a reviewer inspect the pinned sibling Codex marketplace and app-server sources, then record the contract evidence.
  • Record explicit owner acceptance of automatic managed-home convergence after desktop updates.

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 (34 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-24T23:29:29.273Z sha 173789e :: needs maintainer review before merge. :: none
  • reviewed 2026-08-25T03:58:09.919Z sha 8f58bf4 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-25T04:11:38.811Z sha 8f58bf4 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-25T04:21:26.751Z sha 8f58bf4 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-25T04:25:55.800Z sha 8f58bf4 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-25T04:41:22.266Z sha 5b87a1e :: needs maintainer review before merge. :: none
  • reviewed 2026-08-25T04:59:30.071Z sha 5b87a1e :: found issues before merge. :: [P2] Fingerprint cache-relevant plugin bytes
  • reviewed 2026-08-25T05:21:05.347Z sha 89906f6 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 22, 2026
@joshavant
joshavant force-pushed the feature/codex-desktop-generation branch 2 times, most recently from 0a5205e to 2792681 Compare August 22, 2026 07:05
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Aug 22, 2026
@joshavant

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

Final autoreview found that explicitly package-first clients with enabled Computer Use could still consume desktop-owned artifacts without carrying the desktop generation. Current head now binds that path to the same generation owner. The focused regression is red before the fix and green after it; affected Codex suites pass 336/336 and pnpm check:changed passes.

@clawsweeper

clawsweeper Bot commented Aug 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@joshavant

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

A second final autoreview found that generation-tagged standard desktop commands selected through config or env returned from the public currentness assertion before checking their generation. Current head moves that generation fence ahead of the managed-only selection branch. Both config/env regressions fail on the previous ordering and pass now; focused Codex suites pass 338/338.

@clawsweeper

clawsweeper Bot commented Aug 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.

@joshavant
joshavant force-pushed the feature/codex-desktop-generation branch 2 times, most recently from f1d431c to abb636f Compare August 22, 2026 08:20
@joshavant

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

Final behavioral delta since the last completed review: generation Y now waits for same-home generation-X leases before publishing fixed-path Computer Use artifacts, and explicit package app-server clients with Computer Use enabled are attached to the desktop generation. Focused red/green regressions cover both paths. Prior rank-up moves are addressed: the PR body records the acting agent’s direct ../codex source inspection, and exact-head openclaw/ci-gate is green on abb636fbed15c665919bf8ef5c458774e48a793d.

@clawsweeper

clawsweeper Bot commented Aug 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 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 22, 2026
@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 25, 2026
@joshavant
joshavant force-pushed the feature/codex-desktop-generation branch from 8f58bf4 to 5b87a1e Compare August 25, 2026 04:35
@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 25, 2026
@joshavant

Copy link
Copy Markdown
Collaborator Author

Final-head macOS desktop-generation proof

Validated exact PR head 5b87a1e8e9f9aa63a0ed965bf4f88c7f76be7971 (base 935c555c98d6b38af76faa6a0b1370353d1828df) in the existing macOS 26.6.2 arm64 UTM testbox after a full install/build. The redacted structured result is linked here:

https://gist.github.com/joshavant/ab777912667eaaf3bb48664ffb4cd3b1

Dependency and generation shape

  • Managed package app-server: Codex 0.149.1.
  • Desktop X: ChatGPT 26.818.41509 build 6962, embedded Codex 0.149.0-alpha.4.1, Computer Use 1.0.1000816 / build 1000816.
  • Desktop Y: ChatGPT 26.818.61809 build 7019, embedded Codex 0.149.0-alpha.4.3, Computer Use 1.0.1000854 / build 1000854.
  • The prerelease desktop Codex binaries were rejected for app-server ownership, so the run exercised feat(codex): upgrade main to app-server 0.149.1 #128370's stable managed-package fallback while retaining desktop-owned Computer Use artifacts.

Observed result

Phase Agent OpenClaw run Native MCP completion Result
X multi-a 71a95918-83cb-4c8f-a349-ff4cf450a7b8 exactly one computer-use.list_apps SUCCEEDED
X multi-b 7a688ead-28a6-4604-8596-8804695d237e exactly one computer-use.list_apps SUCCEEDED
first request after X→Y multi-a 22d5eb55-819f-40f7-b214-cd55217011e3 exactly one computer-use.list_apps SUCCEEDED
first request after X→Y multi-b 3f108c6b-1f2b-40b9-8f05-84fd423b7b20 exactly one computer-use.list_apps SUCCEEDED
  • Gateway PID remained 7416 across the physical /Applications/ChatGPT.app replacement.
  • Managed physical app-server PIDs changed from X 7708/7738 to Y 8776/8802.
  • Both isolated homes converged service/client build 1000816 → 1000854, added cache 1.0.1000854, and resolved the managed wrapper to plugin 1.0.1000854.
  • No turn replay, Gateway restart, failed response, readiness failure, closed transport, or timeout occurred.
  • Cleanup passed: test Gateway/LaunchAgent removed, test port released, Y left installed, X backup restored, and the unrelated Gateway PID 750 remained RPC-healthy.

Exact-head validation

  • Focused lifecycle suites: 12 files, 361 tests passed.
  • Changed-file gate: passed.
  • Guest pnpm install --frozen-lockfile and full pnpm build: passed.
  • Hosted exact-head CI: 127 successful / 43 intentionally skipped; openclaw/ci-gate passed after an unrelated Control UI teardown flake passed on targeted rerun: https://github.com/openclaw/openclaw/actions/runs/32809570783
  • P1 branch autoreview: no accepted/actionable findings; patch correct, confidence 0.84.
  • The acting maintainer personally inspected OpenAI Codex tag rust-v0.149.1 (ff29a44391deccde0aba0f8390337d7f3c319ea4) for local-source canonicalization, reserved managed-root policy, marketplace registration, CODEX_HOME, initialize metadata, MCP reload, and turn-time plugin loading; exact files and lines are in the PR body.

Evidence digests:

  • evidence.json: 26242fcb622617f6a7fe91e5c3db9ba6af7d71130ecb331b7993df6cf375407f
  • native-tool-proof.json: eb0f1afba1a2fa81bd190676d4cf5614b72eb8c16fa91915b98fff7af72f0148
  • 47-file inventory: a5183fe8d8ab17076c36aa80b83488cc3ee896199ed0f5e62c15714a61ab73ac

@joshavant

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

Please assess exact head 5b87a1e8e9f9aa63a0ed965bf4f88c7f76be7971 against the now-current final-head proof at #127778 (comment) and the linked redacted structured artifact.

Both prior rank-up moves are complete:

  1. The acting maintainer personally inspected the pinned sibling OpenAI Codex tag rust-v0.149.1 (ff29a44391deccde0aba0f8390337d7f3c319ea4); the exact contract paths and lines are in the PR body's Dependency Contract Checked section.
  2. The final head was rebuilt and rerun through the physical signed ChatGPT X→Y transition with two simultaneous isolated agents, unchanged Gateway PID, exactly one successful native Computer Use call per turn, no replay, replacement physical app-servers, and service/cache/wrapper convergence from Computer Use 1000816 to 1000854.

Exact-head CI is green (127 success / 43 intentional skips), the 12 focused suites pass 361/361, guest full build passes, and P1 autoreview is clean. proof: sufficient now reflects the observed proof; the earlier proof: override label was removed because it renders proof as not applicable rather than scoring it.

@clawsweeper

clawsweeper Bot commented Aug 25, 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:

@joshavant

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

Exact-head finding closure for 89906f6:

  • Fixed the prior P2 non-manifest-byte gap. The settled desktop fingerprint now hashes the complete bounded Computer Use plugin tree (including .mcp.json, skills, launcher, and assets), not only plugin.json.
  • The lifecycle service now watches each stable desktop app root recursively while retaining a non-recursive /Applications watcher for bundle replacement. This makes nested in-place changes observable without request-hot-path polling.
  • The focused regression kept plugin version 1.0.0 unchanged, modified only .mcp.json, and failed on the pre-fix head because the fingerprint was unchanged. It now proves the owner settles epoch 1 → 2.
  • Existing owner-boundary tests prove epoch changes force one shared-cache refresh, and the real-filesystem cache regression proves that refresh replaces same-version bytes.
  • Repair delta: production +76/-39 (net +37); tests +60/-30 (net +30). The production growth is the bounded tree identity capability; watcher registration was simplified to the two stable roots.
  • Validation: 12 Codex lifecycle files / 362 tests passed; check-changed passed including production and test typechecks; P1 autoreview was clean (0.90 confidence).
  • Exact-head CI is green: 128 success, 52 intentional skips, openclaw/ci-gate passed: https://github.com/openclaw/openclaw/actions/runs/32812028797

Exact-head unattended macOS proof was also rerun after this repair:

  • Gateway PID 14037 stayed unchanged across signed ChatGPT X → Y.
  • X Computer Use 1.0.1000816: concurrent multi-a and multi-b first turns each recorded exactly one successful native computer-use.list_apps completion.
  • Y Computer Use 1.0.1000854: the first two post-swap turns ran concurrently; each recorded exactly one successful native completion.
  • Both isolated homes converged service/client/cache/wrapper to Y; physical app-server PIDs changed 14313/14315 → 14922/14926.
  • No transport, readiness, timeout, selection-change, or desktop-generation-refresh failure occurred in the contracted run window.
  • Test Gateway/LaunchAgent removed, port released, Y restored, preserved Gateway PID 750 remained healthy.
  • Redacted exact-head evidence: https://gist.github.com/joshavant/6e55755f03913bffb13dc4e1575de5eb
  • Evidence SHA-256: 9409b66319b234c0470f6541e961b5cbfa0ea86c0a368d0dad6579605a4fe187
  • Native-call proof SHA-256: dbcba8f6e23880e864f33e8a4e74d45d5aa05d1e31f66eb62c4f8570aeeeee49
  • 51-file inventory SHA-256: dc461d5c50e1a0be04d65959470e1a4870fc968e92264de89941574b3439b20b

@clawsweeper

clawsweeper Bot commented Aug 25, 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:

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 maintainer Maintainer-authored PR merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL 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