Repository navigation
fix(codex): align managed installs and release checks on 0.152.1 - #136184
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Dependency GuardThis PR changes dependency-related files. Maintainers should confirm these changes are intentional. Changed files:
Maintainer follow-up:
|
Dependency graph changes notedThis PR includes dependency graph changes. The dependency guard is informational because the PR author is a repository admin, a member of
Security review is still recommended before merge when the dependency graph change is intentional. |
|
Codex review: needs maintainer review before merge. Reviewed September 2, 2026, 7:07 AM ET / 11:07 UTC. ClawSweeper reviewWhat this changesThe PR upgrades OpenClaw’s managed Codex app-server package and linked install, catalog, fixture, release-check, lockfile, test, and documentation references from 0.151.0 to 0.152.1. Merge readinessThe prior documentation finding is fixed on the current head, and the branch now keeps the managed Codex version contract aligned across runtime, catalog discovery, install assertions, lockfile policy, and docs. This active member-authored PR remains necessary because current main still pins 0.151.0. Priority: P2 Review scores
Verification
How this fits togetherThe bundled Codex plugin starts a managed Codex app-server for OpenClaw agent sessions. The OpenAI provider uses the same version for Codex catalog discovery, while package assertions verify the installed native binary and platform package. flowchart LR
A[Plugin package pin] --> B[Managed Codex app-server]
B --> C[Agent sessions]
A --> D[OpenAI catalog discovery]
A --> E[Install package assertions]
E --> F[Release validation]
Before merge
Agent review detailsSecurityNone. PR surfaceSource 0, Tests +4, Docs +2, Config 0, Other +1. Total +7 across 14 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one exact 0.152.1 contract across the managed package, ACP override, discovery request, install assertions, fixtures, and published docs, then merge after normal exact-head validation succeeds. Do we have a high-confidence way to reproduce the issue? Yes, from source: the release assertion rejects a plugin package whose exact Codex dependency differs from its expected candidate version, and current main still has the old 0.151.0 pin. This review did not execute the write-producing package test harness. Is this the best way to solve the issue? Yes. Synchronizing every existing owner of the one managed-version contract is the narrow maintainable repair; deriving future-version test cases from the shared constant avoids repeating this fixture drift. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b35d2bec33a6. LabelsLabel 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)
|
Align OpenAI discovery and the intentionally unified ACP workspace runtime with managed Codex 0.152.1. Keep the manifest invariant intact and make future-version test fixtures track the managed version. Verified existing RED/GREEN contracts, the published ACP adapter lifecycle with the official native runtime, all 30 changed-file checks, and an independent Codex review.
|
Merged via squash.
|
…nclaw#136184) * fix(codex): align managed installs and release checks on 0.152.1 * fix(codex): align discovery and ACP version contracts Align OpenAI discovery and the intentionally unified ACP workspace runtime with managed Codex 0.152.1. Keep the manifest invariant intact and make future-version test fixtures track the managed version. Verified existing RED/GREEN contracts, the published ACP adapter lifecycle with the official native runtime, all 30 changed-file checks, and an independent Codex review. * docs(codex): align native plugin runtime references
Additional instructions
MUST: Keep Allow edits from maintainers enabled for this PR so maintainers
can help update the branch when needed.
What Problem This Solves
Resolves a problem where release validation rejects an installed Codex 0.152.1 candidate in the on-demand and live npm-plugin checks. Updating the candidate alone is insufficient: these checks deliberately execute the separately trusted main-branch harness.
Why This Change Was Made
Align the official plugin's managed dependency, runtime pin, release-package expectation, fixture, lockfile, and documented binary snapshot on 0.152.1. This keeps one exact managed-version contract rather than adding a configurable assertion or a fallback.
OpenClaw package version metadata and the external-runtime minimum of 0.149.0 stay unchanged. The ACP workspace override is also aligned to 0.152.1, preserving the existing intentionally shared managed-runtime contract without weakening its manifest test. The existing negotiated elicitation mode is unchanged; upstream's new form mode is opt-in and is not required by this upgrade. Maintained generated protocol mirrors are unchanged after canonical regeneration against Codex rust-v0.152.1.
User Impact
Managed Codex installs use 0.152.1, and release checks accept that same exact version while continuing to validate the wrapper, native platform package, and executable. The model-catalog documentation now distinguishes an unauthenticated metadata snapshot from account entitlement. No new configuration, protocol, or persistence surface is introduced.
Evidence
Local verification used Node 24.19.0 and pnpm 12.1.0:
@openclaw/codex must depend on @openai/codex 0.151.0; found 0.152.1. The same check passes after alignment, including the Darwin ARM64 native package and actualcodex-cli 0.152.1executable.pnpm codex-app-server:protocol:checkpassed using the exact upstream tag and its Rust 1.95.0 toolchain. Canonical source regeneration, maintained-type compatibility, and snippet checks passed without changing maintained generated outputs. Direct upstream inspection includedcodex-rs/codex-mcp/src/client_capabilities.rs:16,codex-rs/rmcp-client/src/elicitation_client_service.rs:68, and the protocol export ownercodex-rs/app-server-protocol/src/precomputed_exports.rs.dist/index.jswithout diagnostics. This local main-branch package retains version 2026.8.1; it is not a 2026.9.1 release artifact or a publication claim.Gateway-backed authenticated live proof
The existing
gateway-codex-harness.live.test.tspassed twice on clean692b23ffc65b935bf5f8663b28b3b6526b40e000, after the canonicalqaRuntimebuild stamped that same head. Both runs used explicitopenai/gpt-5.6-luna, low effort and API-key authentication through the real Gateway and plugin-owned managed Codex app-server. A fresh empty source home and the canonical test-owned temporary home kept personal Codex accounts and configuration out of the run.The enabled lifecycle test passed all six mandatory model turns and the start/resume,
/new, status, model listing, sibling-session survival, deletion and native-history reattachment assertions. Its only skipped counterpart was the intentionally disabled-harness opt-in test, not a skipped smoke. The command owner was:The second run added a read-only process observer without changing the test. Both observed native app-server processes mapped the exact managed 0.152.1 executable, SHA-256
8194ea3181f330e63023b234b0b231855e5874e0331c5ef7cbc490591497a7bf, with stable process identity and ancestry to the isolated loopback Gateway. After exit 0, all 39 observed owned process identities were gone, the port refused connections, and the temporary state was removed. Source, build stamps and native bytes remained unchanged. This is authenticated PR-head Gateway proof, not final release/FRV proof.Initial CI findings and verified repair
The first CI run found six stale-version shards. Commit
692b23ffc65b935bf5f8663b28b3b6526b40e000fixes their owners and retains the existing assertions:client_version=0.152.1as the managed runtime. Three existing provider tests failed before the repair; all 75 now pass, as does the cross-plugin version-contract test.a00438a867fe51bff88d6b03db0a105d23989210establishes the deliberately shared runtime contract, so an exception in the manifest test would hide the missed update.The exact published
@agentclientprotocol/[email protected]adapter was checked against its npm integrity and source revision9780d314d34616b476b1ae451ad31089b3dce49a. Its actual default resolver launched the official Codex 0.152.1 executable and passed ACP initialization, expected unauthenticated rejection, an isolated loopback-provider selection, session creation, model listing, session close and clean exit. Five native model rows expanded into 25 ACP model/reasoning choices. The documented alternate-binary path passed the same probe. These are real-process protocol/lifecycle checks, not authenticated inference.Standalone published
@openclaw/acpxdoes not bundle runtime dependencies or inherit workspace overrides; its adapter still declares@openai/codex: ^0.148.0. This PR does not claim that separate installed dependency route uses 0.152.1. Final release ACP and install acceptance remain required.The ClawSweeper discovery and ACP findings are addressed at their owning constants and dependency policy. The suggested ACP-test exception was not taken because direct history and actual adapter proof support preserving the existing shared-runtime invariant. Exact upstream source was available and personally inspected: models query owner, compiled version derivation, and catalog request caller.
After the complete repair, all 30 canonical changed-file checks passed, including 94 npm-lock validations, typechecks, three unused-export scans, formatting and typed lint. Independent Codex review of the entire 12-file PR, including these repairs, is scoped-clean at the default P0 threshold. Commit hooks preserved all reviewed source hashes. The first attempt of CI 33615787672 failed an unauthenticated Git-history fetch before scanning; the normal failed-jobs retry, attempt 2, passed on unchanged
692b23ffc65b935bf5f8663b28b3b6526b40e000, including the actual required gate and every security step. The existing workflow selects GitHub-hosted Ubuntu for second attempts; no check was weakened or waived. #136232 separately repaired scan-history ownership on main. Blacksmith public-Git bootstrap failures remain a named infrastructure follow-up.Documentation follow-up
The latest ClawSweeper review correctly identified two additional current-runtime references in
docs/plugins/codex-native-plugins.mdanddocs/plugins/codex-computer-use.md. Both now name the managed 0.152.1 pin in48f1bb0c18458f39cacfa966b399d9d95bc87a5b, published through the native preparation workflow with matching local/remote trees. The 0.149.0 external minimum, historical release notes, and the exact 2026.8.2 dependency exception remain unchanged. This is a two-line documentation-only follow-up; the preceding authenticated Gateway proof remains explicitly bound to692b23ffc65b935bf5f8663b28b3b6526b40e000. The follow-up passed independent scoped Codex autoreview at the default P0 threshold, and the full changed-file gate passed again over the complete fourteen-file PR. Resulting-head required CI passed before the native merge, as recorded below. This PR does not claim final release validation or publication.Across the complete PR, production runtime and declarative version changes are net zero, lock changes are net zero, tests/support are +5 lines and docs are +2. No configuration, schema, fallback or test-only production seam was added.
Final exact-head CI and landing
CI 33622249860, attempt 2 passed on
48f1bb0c18458f39cacfa966b399d9d95bc87a5b: 206 successful jobs and 15 intentionally skipped jobs, including the requiredopenclaw/ci-gateandsecurity-fast. Attempt one failed during the public pre-commit hook Git bootstrap before the private-key detector ran; the normal failed-jobs retry passed without changing source, credentials or checks. The original infrastructure failure remains recorded, not waived.The fresh independent review covered all fourteen files and returned no findings at the default P0 threshold. The latest ClawSweeper review reported no actionable findings; its strict package/platform version-alignment merge gates were retained. The repository-native review, prepare and merge workflow landed the exact reviewed head as cc4079ebe1d5b940a6208fd87c84784d5610c7bd. Final release-SHA validation, installed-package checks and publication verification remain separate gates.