Repository navigation
fix: use same-commit plugins in development macOS builds - #170776
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
🦞👀 Re-review progress:
|
|
Codex review: needs real behavior proof before merge. What this changesThis PR bundles same-commit official plugins into development macOS apps and retains their selection through installation, updates, Doctor, and automatic setup. Example: A development macOS app built from b0540a3 runs automatic Codex setup.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 4 items remain Keep this maintainer-authored PR open: it addresses development macOS plugin/SDK skew, and inspection found no discrete introduced code defect. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togethermacOS packaging composes the core runtime and selected plugins; plugin discovery and installation consume the stamped build identity, and automatic setup selects the resulting Codex runtime. flowchart TD
A[Source commit] --> B[Desktop plugin plan]
B --> C[Canonical package composition]
C --> D[Signed macOS runtime]
D --> E[Bundled plugin selection]
E --> F[Install update and Doctor]
E --> G[Automatic Codex setup]
G --> H[Codex agent execution]
Technical reviewBest possible solution: Retain the existing composition and selection owners, with signed-app evidence covering unauthorized-source rejection and preservation of existing settings and plugin records. Do we have a high-confidence way to reproduce the issue? Current-main packaging excludes the external runtime plugin, while prior SDK-skew reports and the PR's signed-app observations establish the mismatched-artifact path; this read-only review ran no target code. Is this the best way to solve the issue? Composing plugins with the host build addresses artifact skew at its producer and preserves the existing install, discovery, update, and Doctor ownership boundaries. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fda581a1f558. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: shipped entry point. SecurityNeeds attention: No concrete bypass was found, but the expanded path-record trust rule still needs final-effect authority evidence. EvidenceSecurity concerns:
What I checked:
PR surfaceSource +57, Tests +491, Docs +13, Other +208. Total +769 across 16 files. Added test files: 2. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 13, 2026, 4:16 AM ET / 08:16 UTC (Revision 2). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* commit '7ae69497bec4d9c37f170f046a3cbbf954ff19a7': (6238 commits) refactor(ui): replace Systems filters with native menu (#170786) fix(browser): browser open honors timeoutMs for its opening navigation (#170053) refactor: deslop old Apple shared/macOS and Control UI code (#170823) perf(memory): reuse pooled origin readers (#170795) fix(crabbox): preserve project snapshots across runtime updates (#170780) fix: prevent chat image loading from shifting messages (#170819) refactor(ui): use native menus for Secret Store actions (#170663) fix(gateway): keep chat metadata available during model reloads (#170805) fix: preserve diagnostics for unresponsive state lease heartbeats (#170835) fix(test): prepare runtime config for corpus revision proof test: give credential fixtures database ownership perf(auth): unblock session writes during health preparation (#170807) fix(ci): use smaller runners for selected Gateway client tests (#170821) fix: use same-commit plugins in development macOS builds (#170776) perf(github): share cached reads across sessions and searches (#170825) fix(projects): keep listings stable during unrelated session changes (#170824) fix(update): update repair fails after Doctor completes on busy macOS hosts (#170779) fix(heartbeat): suppress truncated NO_REPLY finals such as NO_R (#170190) perf(sessions): reduce read transaction overhead (#170745) refactor: simplify older plugin and package lifecycles (#170800) ...
…0776) * fix: stage same-commit plugins in development macOS builds * style: satisfy desktop plugin staging lint checks * fix: preserve explicit registry choices with staged plugins * fix: make staged Codex voice runtime portable * test: preserve built plugin entries in dependency fixtures
* feat(qa): report scorecard evidence gaps Distinguish catalog coverage, recorded attempts, and qualified evidence without changing scores or release gates. Include the canonical compatibility migration-status correction from ec1fb60. Co-authored-by: Patrick Erichsen <[email protected]> * chore(qa): drop compatibility backport already on main Keep the QA evidence-gap change scoped to its 13 paths. The canonical compatibility correction ec1fb60 and later refinements are already on main; restore the six branch preimages so the merge consumes that upstream owner state. * chore(qa): integrate canonical worker settlement fixes * commit '7ae69497bec4d9c37f170f046a3cbbf954ff19a7': (6238 commits) refactor(ui): replace Systems filters with native menu (#170786) fix(browser): browser open honors timeoutMs for its opening navigation (#170053) refactor: deslop old Apple shared/macOS and Control UI code (#170823) perf(memory): reuse pooled origin readers (#170795) fix(crabbox): preserve project snapshots across runtime updates (#170780) fix: prevent chat image loading from shifting messages (#170819) refactor(ui): use native menus for Secret Store actions (#170663) fix(gateway): keep chat metadata available during model reloads (#170805) fix: preserve diagnostics for unresponsive state lease heartbeats (#170835) fix(test): prepare runtime config for corpus revision proof test: give credential fixtures database ownership perf(auth): unblock session writes during health preparation (#170807) fix(ci): use smaller runners for selected Gateway client tests (#170821) fix: use same-commit plugins in development macOS builds (#170776) perf(github): share cached reads across sessions and searches (#170825) fix(projects): keep listings stable during unrelated session changes (#170824) fix(update): update repair fails after Doctor completes on busy macOS hosts (#170779) fix(heartbeat): suppress truncated NO_REPLY finals such as NO_R (#170190) perf(sessions): reduce read transaction overhead (#170745) refactor: simplify older plugin and package lifecycles (#170800) ... * fix(gateway): preserve safe previews and no-op bindings Clear only the matching pending binding operation after an authoritative unchanged settlement, preserving committed and unknown invalidation fences. Include the canonical managed-media preview correction from 47ba0ae. Co-authored-by: Peter Steinberger <[email protected]> * merge(main): reconcile QA reporting with frozen main * test(gateway): verify retained route authority after binding settlement Co-authored-by: Patrick Erichsen <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Vincent Koc <[email protected]>
* feat(qa): report scorecard evidence gaps Distinguish catalog coverage, recorded attempts, and qualified evidence without changing scores or release gates. Include the canonical compatibility migration-status correction from 3f6d26f. Co-authored-by: Patrick Erichsen <[email protected]> * chore(qa): drop compatibility backport already on main Keep the QA evidence-gap change scoped to its 13 paths. The canonical compatibility correction 3f6d26f and later refinements are already on main; restore the six branch preimages so the merge consumes that upstream owner state. * chore(qa): integrate canonical worker settlement fixes * commit '4ae87487b6eca95ac58a2f18de0e742b240772eb': (6238 commits) refactor(ui): replace Systems filters with native menu (openclaw#170786) fix(browser): browser open honors timeoutMs for its opening navigation (openclaw#170053) refactor: deslop old Apple shared/macOS and Control UI code (openclaw#170823) perf(memory): reuse pooled origin readers (openclaw#170795) fix(crabbox): preserve project snapshots across runtime updates (openclaw#170780) fix: prevent chat image loading from shifting messages (openclaw#170819) refactor(ui): use native menus for Secret Store actions (openclaw#170663) fix(gateway): keep chat metadata available during model reloads (openclaw#170805) fix: preserve diagnostics for unresponsive state lease heartbeats (openclaw#170835) fix(test): prepare runtime config for corpus revision proof test: give credential fixtures database ownership perf(auth): unblock session writes during health preparation (openclaw#170807) fix(ci): use smaller runners for selected Gateway client tests (openclaw#170821) fix: use same-commit plugins in development macOS builds (openclaw#170776) perf(github): share cached reads across sessions and searches (openclaw#170825) fix(projects): keep listings stable during unrelated session changes (openclaw#170824) fix(update): update repair fails after Doctor completes on busy macOS hosts (openclaw#170779) fix(heartbeat): suppress truncated NO_REPLY finals such as NO_R (openclaw#170190) perf(sessions): reduce read transaction overhead (openclaw#170745) refactor: simplify older plugin and package lifecycles (openclaw#170800) ... * fix(gateway): preserve safe previews and no-op bindings Clear only the matching pending binding operation after an authoritative unchanged settlement, preserving committed and unknown invalidation fences. Include the canonical managed-media preview correction from f3260b9. Co-authored-by: Peter Steinberger <[email protected]> * merge(main): reconcile QA reporting with frozen main * test(gateway): verify retained route authority after binding settlement Co-authored-by: Patrick Erichsen <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Vincent Koc <[email protected]>
What Problem This Solves
Fixes Codex setup in packaged development macOS apps when the current SDK has moved beyond the latest published official plugin. The app previously downloaded an older registry plugin that could import SDK exports already removed from the development build (including the removal in #169063).
User Impact
Non-release macOS apps stage and prefer official plugins built from the same source commit. This checkout stages Codex only because the all-official payload estimate is 1,452,132,546 bytes, exceeding 300 MiB. Exact release-tag builds keep their existing plugin layout. No new configuration is required. Explicit registry versions, tags, pins, and npm overrides keep their requested source intent.
Why This Change Was Made
Packaging reuses the release tag/version validator and existing plugin composition owner, including target-architecture dependencies. An artifact-only marker bound to the full build commit lets the existing bundled-source owner retain those copies through discovery, official installs, updates, and Doctor. Installs keep the existing path record format. Automatic setup accepts an existing path record only when both paths match the active official bundled plugin.
The full package build exposed an unavailable Bazel search path in the upstream Codex voice helper. Packaging removes only that missing build-tree
LC_RPATHfrom the staged copy before the unchanged loader audit and Developer ID signing. The actual voice closure passes the 26-image audit after normalization; the regression proves release bytes stay unchanged. No dependency version or source package is modified.Tauri is not changed: its staging script ships Bun, while its Rust installer acquires core separately. It needs a packaged core distribution path before it can consume the same staging owner.
Production: +274/−9 lines. Tests: +510/−18 lines. Docs: +15/−2 lines. Most production growth is the build-time release/source selector and payload estimate; runtime selection reuses the existing bundled plugin owner.
Evidence
Focused source tests, typecheck, lint, formatting, protocol generation, config docs, plugin inventory, and applicable ratchets pass. Independent Codex autoreview is scoped-clean through P2. It found an explicit-version substitution in the raw npm path; the resolver fix is reproduced by a failing regression and covered by the passing source-selection matrix, including pins and release-image behavior.
.mjsentries, missing workersCommands use the repository's
node scripts/run-vitest.mjs <files> --maxWorkers=1wrapper. The initial explicit-version regression failed as expected before the repair (217.00s). Worker compilation dominates these measurements on the loaded host.The signed arm64 release-configuration app passed both runtime verification passes. It was built with
BUNDLE_ID=ai.openclaw.mac,DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer, the shared macOS build lock, and MLX TTS enabled. The retained app is built fromb0540a37822ab51bcf5006e576f83a9775331a63.Live proof used the app's own Bun, CLI, and SQLite with
--profile zc-devplugins, isolated state/config, a disposable file-backed copy of native Codex authentication, and a local npm registry tripwire.plugins install @openclaw/codexrecordedsource: pathwith both paths pointing to the stageddist/extensions/codex; the realgateway call openclaw.setup.autoreturnedactivated/codex-cli; a realagentturn used harnesscodexand returned the requested synthetic marker. Registry requests: 0. End-to-end wall time: 78.61s, including a 9.824s agent turn. Copied credentials and the owned state were removed afterward; operator state and the installed app were untouched.Signed-app size comparison: +334,677,808 bytes (+319.17 MiB), from 931,683,466 to 1,266,361,274 bytes. Runtime delta: +334,577,236 bytes. This compares signed copies of the same app/core, replacing only the baseline runtime with the pre-change staging owner. Codex alone is slightly above 300 MiB; it is the required minimum fallback, with no other official external plugins staged. Comparison wall time: 421.88s.
ClawSweeper reviewed
b0540a37822ab51bcf5006e576f83a9775331a63: no code findings. Remaining proof limitation for the lead: forbidden/conflicting-source rejection has boundary-test coverage but no live final-effect scenario, and no latest-stable-to-candidate upgrade preserving existing settings/plugin records was run. CI for the published head failed after 902s elapsed (13,916 aggregate job-seconds). Two package dependency fixtures accidentally restored source.tsentry metadata into their built manifests; a fixture-only correction is committed locally ase4f9dcde54b81d0071e91803ecc91b37144ff807and its two cases failed before/passed after (78.72s / 30.43s wrapper), with focused and full-branch reviews scoped-clean through P2. This correction has not been pushed. The Memory Core reload cases timed out in CI atsession-startup-catchupbut passed a local reproduction in 353.57s; this does not establish a repair. Three UI shards match both the failed test names and first error lines from scheduled main run 38359584345. The fourth UI shard failed a task-suggestion layout assertion which passed on main and remains unattributed. The aggregate gate is red.Release-note context: packaged development macOS apps use same-commit official plugins during automatic setup instead of mixing development core with released plugin artifacts.
CI attribution for
e4f9dcde54b81d0071e91803ecc91b37144ff807(run 38366527469, attempt 1; tested mergeac81447b73b5800dbc0f58a9b2d6f7feeab46a12):memory-background-reload.test.ts/replace Memory Core: falsereproduces the same 120ssession-startup-catchup: sync completiontimeout on exact main parent71692b03a277790e5781705dcdfeb6f4ba0c810f; the tested-merge failure inputs are unchanged from that baseline.memory-background-reload.test.ts/replace Memory Core: truereproduces the same 120ssession-startup-catchup: sync completiontimeout on that exact main parent; the tested-merge failure inputs are unchanged from that baseline.