Repository navigation
fix(codex): support paginated message forks with Codex 0.151.0 - #132908
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 August 30, 2026, 12:39 AM ET / 04:39 UTC. ClawSweeper reviewWhat this changesThis PR upgrades OpenClaw’s managed Codex app-server to 0.151.0, lets verified message forks read paginated histories, and replaces a durable model-selection probe with an ephemeral probe released before the continuation thread starts. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep this PR open for maintainer review. Current main still contains the paginated-history rejection, but the required direct Priority: P1 Review scores
Verification
How this fits togetherThe Codex plugin converts a selected message in an existing native Codex conversation into a supervised OpenClaw chat continuation. It verifies the message boundary, obtains the native model selection, creates the canonical branch thread, injects visible history, and runs the next chat turn. flowchart LR
A[Existing Codex conversation] --> B[Verify message boundary]
B --> C[Ephemeral model probe]
C --> D[Release probe subscription]
D --> E[Create canonical branch]
E --> F[Inject visible history]
F --> G[Run continued chat]
Before merge
Findings
Agent review detailsSecurityNeeds attention: The diff upgrades a managed executable dependency and its resolution override, but the required direct Codex source inspection is unavailable in this review environment. PR surfaceSource +1, Tests +120, Docs +13, Config 0, Other -1. Total +133 across 25 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Mantis proof suggestionA web UI chat transcript showing the selected-message branch and completed continuation would directly strengthen review of the user-visible flow. A maintainer can ask Mantis to capture proof by posting this exact PR comment: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Verify the exact Codex 0.151.0 source contract in the required sibling checkout, then finish the exact-head checks and retain this owner-boundary repair if those results confirm the existing pagination and ephemeral-subscription assumptions. Do we have a high-confidence way to reproduce the issue? Source-reproducible with medium confidence: the base code explicitly rejects paginated metadata before turn reads, while the PR removes that branch. Independent reproduction against the exact upstream 0.151.0 protocol is blocked by the missing required sibling checkout. Is this the best way to solve the issue? Unclear. The source change uses the existing paginated turn reader and makes temporary probe cleanup owner-bound, but direct verification of the upstream Codex semantics required to call it the best fix is unavailable. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ecb0386e89b3. LabelsLabel justifications:
EvidenceSecurity concerns:
What 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 (5 earlier review cycles)
|
a6704d0 to
a7d8cee
Compare
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Updated maintainer evidence for the requested re-review. The connected model-probe repair releases an ephemeral probe on the same physical client before canonical creation, so continuation no longer depends on archiving a throwaway durable fork. Canonical CAS and previously recorded-artifact recovery remain intact. Handwritten production is net −3 lines across the complete repair. The requested dependency-contract check is complete: direct source inspection covers both The six-file repair passed 330 owner/sibling tests, full changed gates, isolated P0 review and full build. CI caught one remaining secondary-home continuation fixture that lacked an unsubscribe response. Its test-only correction passed 188 overlapping focused tests, changed gates and clean P0 review. Complete CI at 4c8b42bf481e1ba26865d594c18a64f3bc33dbea passed. The native landing workflow is refreshing its trusted wrapper and current-head gates; this comment does not claim a later head has passed. Real Codex browser proofThese are the actual Codex Control UI captures, not the unrelated Telegram image mentioned in the offline bot review. They use an isolated local browser and session-owned dev gateway with the real Codex 0.151.0 app-server and public Before: restoring only the old history-mode guard reproduced the visible refusal on that same valid source. After: the fixed flow retained the first turn, excluded the selected second turn, prefilled its message, and completed a new branch reply with a terminal Gateway event. Original source turn IDs and complete history digests were unchanged through continuation. codex-151-fork-continuation.mp4Fork and continuation used default request deadlines. Only initial source import used a longer diagnostic deadline for the separately tracked native catalog scan. All 12 task-created native threads and rollouts were subsequently deleted through supported APIs and absence verified; the owned gateway and browser are stopped. No credentials were copied, no operator gateway was modified, and no raw log or uncropped recording was published. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
4c8b42b to
c4a6448
Compare
|
Land-ready evidence for The native review flow and authored-artifact validation pass with The landing agent personally checked Codex 0.151.0 full-turn hydration, exclusive/ephemeral fork semantics, subscription release, and the corresponding 0.149.0 persistence/fork/unsubscribe contracts. This resolves the latest ClawSweeper rank-up request. Inspected before/after browser proof is preserved and embedded in the PR body; no new re-review request is needed for the mechanical rebase. Fresh local proof: 388 tests in six files passed: node scripts/run-vitest.mjs extensions/codex/src/app-server/upstream-fork-boundary.test.ts extensions/codex/src/app-server/upstream-session-fork-continuation.test.ts extensions/codex/src/app-server/thread-lifecycle.test.ts extensions/codex/src/app-server/client.test.ts extensions/codex/src/app-server/shared-client.test.ts test/scripts/codex-install-assertions.test.tsThe full combined build passed: pnpm buildThe repaired production blobs are unchanged from the live-tested candidate. Main already contained the Matrix owner-close repair, so the redundant replay was omitted. Production is +41/−44 (net −3); tests +368/−248. CI caveat: attempt 1 hit an unchanged DeepInfra test's five-second absolute deadline during synchronous policy resolution, before HTTP submission. The unchanged file passed 4/4 locally; independent inspection established no justified source fix. One diagnostic rerun of the original failed jobs passed without source, deadline, environment or policy changes. The cause remains unproven; this is not described as a proven flake or network failure. No native guard, shim/auth/policy configuration or enforced review rule was bypassed. Next actions are the native commands only: OPENCLAW_TESTBOX=1 scripts/pr prepare-run 132908scripts/pr merge-run 132908Only issue #132893 is proven fixed by this repair. Broader continuity issue #114304 and proposal #114309 remain outside closure scope. Separate catalog latency, Computer Use ephemeral cleanup, failure-only incognito cleanup and native title settling follow-ups remain recorded in the PR body. |
|
Merged via squash.
|
…law#132908) * fix(codex): support paginated message forks with Codex 0.151.0 * test(codex): keep desktop prerelease fixture ahead of managed pin * fix(codex): release ephemeral supervision model probes * test(codex): model probe unsubscribe in fork continuation


Closes #132893
What Problem This Solves
Fork from here rejected imported/upstream-linked Codex conversations solely because native history was paginated, even though Codex 0.151.0 supports the full-history reads and exclusive turn-boundary forks this path uses. Real continuation also failed while archiving its temporary durable model-selection fork: archival scans the home-wide rollout reference index and exceeded the existing cleanup deadline.
Why This Change Was Made
Upgrade managed Codex from 0.150.1 to 0.151.0, align the existing ACP override and provider client-version header, refresh the exact-release schema and public model snapshot, and remove the obsolete history-layout veto. Codex owns hydration; OpenClaw retains the existing identity/full-prefix validator and cursor protection.
The model-selection probe is now always ephemeral. Validation and restricted-MCP attestation run inside a finally boundary that confirms subscription release on the same physical client before canonical creation. Uncertain cleanup abandons that client through the existing owner. Only the canonical branch enters new durable tracking; exact binding CAS, successor safety and recovery of previously recorded artifacts remain. Canonical
isRecordremoves two local assertions and their obsolete ratchet allowance.The external compatibility floor remains 0.149.0. No new configuration, schema/protocol version, auth/model-access surface, dependency override, SDK seam, larger timeout or alternate history reader. Unsubscribe removes the subscription; normal native idle retention remains. The ephemeral probe creates no persisted rollout or thread row.
User Impact
Operators can fork supported paginated conversations at a verified message boundary and continue the resulting Chat without waiting for archival of a throwaway probe. Ordinary local-harness forks use a different path and are unaffected. Managed installations receive Codex 0.151.0.
Developer CLI selection and the managed runtime remain separate contracts. Setup guidance explains how PATH can select a workspace-pinned executable and how to verify the executable actually launched; it does not claim the published 0.150.1 package was intrinsically broken.
Evidence
The acting landing agent independently inspected exact tagged Codex source: full paginated hydration, exclusive/ephemeral fork contract, subscription release, ephemeral persistence, and native boundary tests. The corresponding 0.149.0 fork, unsubscribe and persistence contracts were also personally read. This satisfies the latest ClawSweeper rank-up request; no actionable code finding remains.
The boundary regression failed before the guard removal; the actual-client normal/incognito tests reproduced the archive failure before the probe repair. Prior proof includes 330 owner/sibling tests and 188 overlapping continuation tests, full scoped gates, isolated P0 reviews, and complete CI on the pre-rebase head. Counts overlap and are not presented as unique tests.
A single frozen-base rebase resolved the reproduced native wrapper trust mismatch. The Codex production patches are unchanged from the live-tested head. Main already contains the Matrix owner-close CI repair, so its redundant replay was removed. Fresh integrated Codex autoreview of the complete branch was scoped-clean at P0 with credential scanning and restricted isolation. The rebased candidate passed 388 tests in six files and full
pnpm build.Prior final owner gate:
CI history: earlier failures exposed a stale desktop-prerelease fixture and the Matrix port-rebind assertion, followed by the secondary-home continuation fixture missing
thread/unsubscribe. Each was reproduced and repaired at its test owner; no production failure was ignored. The current candidate isc4a6448190c2cb4de084c405d0d3749c69b5f2cf, based onecb0386e89b330884512a193dec116e6c4e14444. Exact-head CI run 33292745659, attempt 2 completed successfully, includingopenclaw/ci-gate; this is execution on this head, not patch-identical reuse.The first run on this rebased head also hit an unexplained DeepInfra transport-test deadline expiry during synchronous policy resolution, before HTTP submission. That file is unchanged from main and passed all four tests locally; independent inspection found no justified source fix. One exact-run failed-jobs diagnostic rerun was used, without changing source, deadline, environment or policy. Its outcome is recorded in the current CI result above.
Real Codex browser proof
An isolated browser and owned dev gateway used real Codex 0.151.0 and public
gpt-5.6-luna. These inspected, cropped captures show the Codex Control UI flow; the unrelated Telegram image mentioned by the offline bot is not this evidence.Before (counterfactual): restoring only the old history guard visibly refused the same valid two-turn paginated source.
After: the fixed flow retained the first turn, excluded the selected second turn, prefilled its message, and completed a branch reply with a terminal Gateway event. Original turn IDs and full-history digests were unchanged.
codex-151-fork-continuation.mp4
Fork/continuation used default deadlines; only initial source import used a longer diagnostic deadline for the separately tracked catalog scan. All 12 task-created native artifacts were deleted afterward through supported APIs and absence verified; the owned gateway/browser are stopped. No raw logs, transcripts or uncropped recordings were published.
Handwritten production +41/−44 (net −3); tests +368/−248 (net +120); test support +4/−4; docs +45/−32; generated schema +7/−3; lockfile +31/−31; metadata +2/−3. The growth in the probe's finally/error boundary is offset by removing durable probe tracking/archive and reusing canonical guards.
Landing and follow-ups
Native
review-init, main-baseline/PR-head checkout, artifact initialization, guard and artifact validation pass through the ordinary wrapper. Current ruleset reads succeed;openclaw/ci-gateis required, with no enforced independent approval rule. No shim/auth/policy change or bypass was used. The lead independently approved the exact head, diff hash, source/rebase equivalence, integrated P0 review, native validation, CI and published media before native prepare/merge.Named follow-ups: large native catalog import latency; separate Computer Use ephemeral cleanup; failure-only incognito canonical cleanup; native canonical title settling. Broader continuity issue 114304 and proposal 114309 are not proven superseded and remain open.
Release-note context: Codex plugin — managed harness 0.151.0, verified paginated message forks, and ephemeral model-probe release before branch continuation. Maintainer-requested, AI-assisted implementation and verification.