Repository navigation
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 28, 2026, 4:58 AM ET / 08:58 UTC. ClawSweeper reviewWhat this changesThe branch replaces legacy Merge readinessKeep this PR open for final maintainer review. The proposed installed-state plus metadata flow matches the upstream Codex 0.145.0 protocol shape and the contributor supplied credible redacted live behavior proof, but the required local sibling Priority: P1 Review scores
Verification
How this fits togetherOpenClaw’s bundled Codex extension starts an authenticated Codex app server, discovers eligible connected apps, and applies OpenClaw’s plugin policy before creating a Codex thread. The changed cache converts Codex’s runtime snapshot and authorized metadata into the app records used by plugin activation, migration verification, and per-thread enablement. flowchart LR
A[Authenticated Codex account] --> B[Codex app server]
B --> C[Installed runtime snapshot]
C --> D[Authorized app metadata]
D --> E[OpenClaw plugin policy]
E --> F[Thread app configuration]
F --> G[Native Codex thread]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +187, Tests +69, Docs +10. Total +266 across 18 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land only after a maintainer verifies the local bundled Codex contract and the current merge result, preserving the exact method-not-found-only legacy fallback and fail-closed behavior for unavailable, unauthorized, disabled, or non-callable apps. Do we have a high-confidence way to reproduce the issue? Yes, with medium confidence: the PR provides a concrete redacted live reproduction and after-fix run using token-backed Codex 0.145.0, and the changed source path is clear; this reviewer could not independently execute or locally inspect the path in the constrained environment. Is this the best way to solve the issue? Unclear: the installed-runtime plus metadata split matches the inspected upstream 0.145.0 protocol, but the required local sibling Codex-source and current-main compatibility checks remain necessary before calling it the best merge-ready fix. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 4d105ebdd0ec. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
|
@clawsweeper re-review\n\nCodex: The PR description now includes redacted live proof using the real bundled Codex 0.145.0 app server and its configured ChatGPT-backed account. OpenClaw production policy discovered 31 callable apps using app/installed and app/read without calling app/list, excluded a missing metadata ID, and confirmed 26 apps callable inside a real ephemeral thread. The corrected dependency gate, full build, both type checks, lint, and documentation checks are green. |
|
Separately, PR #115075 has a real bootstrap bug for |
e911728 to
15ae159
Compare
|
/allow-dependencies-change Pin the co-shipped native and ACP Codex runtimes to the upstream-verified 0.146.0 release. |
Prepare a verified GitHub-hosted mainline merge while preserving the reviewed Codex 0.146.0 fixes and canonical OpenAI authentication. Co-authored-by: Steven Lee <[email protected]>
Resolve the current-main Code Mode test rename without resurrecting the retired core test path. Co-authored-by: Steven Lee <[email protected]>
Reject retired provider aliases without runtime compatibility, direct operators to the doctor migration, and remove the redundant OpenAI API-key predicate. Co-authored-by: Steven Lee <[email protected]>
|
/allow-dependencies-change Pin the co-shipped native and ACP Codex runtimes to the upstream-verified 0.146.0 release. |
Preserve current main dependency changes while preparing the original Codex PR for an ancestry-preserving signed mainline merge. Co-authored-by: Steven Lee <[email protected]>
Keep the ACP adapter on the same 0.146.0 Codex release as the managed runtime, remove obsolete 0.145.0 platform artifacts and unused semver compatibility, and preserve the latest main dependency upgrades. Co-authored-by: Steven Lee <[email protected]>
Dependency GuardThis PR changes dependency-related files. Maintainers should confirm these changes are intentional. Changed files:
Maintainer follow-up:
|
|
/allow-dependencies-change Pin the co-shipped native and ACP Codex runtimes to the upstream-verified 0.146.0 release while preserving current main dependencies. |
|
Merged via squash.
|
* origin/main: fix(codex): restore connected apps for token-authenticated runs (openclaw#115075) fix(codex): classify hosted search timeouts (openclaw#115837) fix(msteams): keep attachment replies in channel threads (openclaw#94348) fix(telegram): linkPreview:false is ignored on streamed replies (openclaw#114125) fix(protocol): make Swift model checks non-mutating (openclaw#115793) fix(searxng): avoid duplicating search endpoint (openclaw#113661) fix(agents): preserve tool-result middleware identity (openclaw#115821) refactor(meetings): consolidate runtime facades (openclaw#115819)
…claw#115075) * fix(codex): restore connected apps for token-authenticated runs * fix(codex): keep app inventory protocol types private * fix(codex): align native runtime with Codex 0.146.0 Co-authored-by: Steven Lee <[email protected]> * fix(codex): clean up latest app-server integration Co-authored-by: Steven Lee <[email protected]> * fix(codex): keep internal protocol types private * fix(ci): repair current main Codex landing gates * fix(ci): format inherited code mode matrix * fix(codex): reconcile native app-server contracts with main Prepare a verified GitHub-hosted mainline merge while preserving the reviewed Codex 0.146.0 fixes and canonical OpenAI authentication. Co-authored-by: Steven Lee <[email protected]> * fix(codex): keep QA evidence in its owning plugin Resolve the current-main Code Mode test rename without resurrecting the retired core test path. Co-authored-by: Steven Lee <[email protected]> * fix(codex): enforce canonical OpenAI app-server auth Reject retired provider aliases without runtime compatibility, direct operators to the doctor migration, and remove the redundant OpenAI API-key predicate. Co-authored-by: Steven Lee <[email protected]> * chore(codex): reconcile latest main dependency graph Preserve current main dependency changes while preparing the original Codex PR for an ancestry-preserving signed mainline merge. Co-authored-by: Steven Lee <[email protected]> * fix(codex): unify bundled Codex 0.146 runtimes Keep the ACP adapter on the same 0.146.0 Codex release as the managed runtime, remove obsolete 0.145.0 platform artifacts and unused semver compatibility, and preserve the latest main dependency upgrades. Co-authored-by: Steven Lee <[email protected]> --------- Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
* origin/main: fix(codex): restore connected apps for token-authenticated runs (openclaw#115075) fix(codex): classify hosted search timeouts (openclaw#115837) fix(msteams): keep attachment replies in channel threads (openclaw#94348) fix(telegram): linkPreview:false is ignored on streamed replies (openclaw#114125) fix(protocol): make Swift model checks non-mutating (openclaw#115793) fix(searxng): avoid duplicating search endpoint (openclaw#113661) fix(agents): preserve tool-result middleware identity (openclaw#115821) refactor(meetings): consolidate runtime facades (openclaw#115819)
What Problem This Solves
Native Codex runs using ChatGPT account or token authentication could lose their authorized connected apps because OpenClaw was reading directory-style app metadata instead of Codex's committed, account-scoped connector runtime. The previous pull request also supported old Codex versions even though OpenClaw ships and controls the Codex executable.
Why This Change Was Made
OpenClaw and Codex are distributed together, so this integration supports exactly
@openai/codex 0.146.0. The managed CLI, plugin, six platform packages, OpenAI model-catalog client, and ACP's transitive Codex dependency now all resolve to that one version. The version-qualified@agentclientprotocol/[email protected]>@openai/codexoverride also keeps generated npm package locks compatible with the frozen pnpm graph. Remove the obsolete semver range, old-serverapp/listfallback, and retired runtime auth-provider aliases.Use the actual Codex 0.146 contracts:
app/installed, and batch authorizedapp/readmetadata in groups of at most 100 IDs.plugin/installedsnapshots for normal installed-plugin discovery; reserveplugin/listfor explicitly authorized installation discovery.config/batchWrite.app/installedattestation before saving a binding or starting a turn.User Impact
Authorized native Codex plugins and account-connected apps work reliably with token-backed authentication. Disabled, unauthorized, missing, non-callable, explicitly blocked, or unverified apps remain unavailable; a failed thread attestation cleans up the thread instead of creating a durable binding. Connected-app activation, metadata lookup, configuration updates, and migration avoid redundant app-server requests and unnecessary connector restarts.
Evidence
rust-v0.146.0source, including installed plugin protocol, authenticated installed connector snapshots, authorized connector metadata, and remote plugin request processing.pnpm 11.15.1installation: the root CLI, Codex plugin, native platform package, and ACP all executecodex-cli 0.146.0; the real app server completes JSON-RPC initialization.config/batchWritecontract. Fix the filesystem import through the existing bounded-read security owner and regenerate the documentation map.main, regenerated the map from the actual merged documentation tree, corrected the pre-existing Code Mode QA test to import the public bundled-pluginapi.jssurface, and formatted the inherited Code Mode matrix so the real product build and global formatting checks pass without relaxing boundary policy.0.145.0artifact or compatibility dependency remains.check-npm-lockandopenclaw/ci-gatechecks.autoreviewworkflow; findings were corrected and covered by regression tests.Thanks to @stevenlee-oai for the original connected-app reproduction and fix.