Repository navigation
fix(codex): preserve protected scheduled continuations - #181528
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR supplies the admitted workspace to Codex steering-image validation and updates continuation tests and documentation. Example: With workspaceOnly:false, an active Codex session receives /state/sandboxes/session-a/image.png.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: its focused steering-media repair remains necessary on main, and no actionable introduced defect was found. The earlier conflict is resolved; required CI is pending. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Codex harness prepares queued attachments, validates their local paths, persists approved input, and dispatches it to the native app-server. flowchart LR
A[Queued message and attachments] --> B[Codex active turn]
B --> C[Session media roots]
C --> D[Image preparation]
D --> E[Approved transcript input]
E --> F[Native turn steer]
Technical reviewBest possible solution: Retain the workspace argument and focused boundary coverage, then land when required checks pass. Do we have a high-confidence way to reproduce the issue? Main omits the authoritative workspace argument, and the supplied red comparison rejects the admitted image while accepting the shared-workspace image; this read-only review ran no target code. Is this the best way to solve the issue? Passing admitted workspace context to the existing resolver is the smallest complete repair, and the consumer changes preserve their original assertions while excluding exact conversation handoffs. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 364c0d4ebcd4. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0, Tests +299, Docs +26, Other -2. Total +323 across 16 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
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 (7 earlier review cycles)
Reviewed October 27, 2026, 3:32 PM ET / 19:32 UTC (Revision 8). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Co-authored-by: RomneyDa <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Raise the test-line ceiling to the exact CI merge-tree total so the durable packaged app-server isolation proof can remain in the PR. Co-authored-by: RomneyDa <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Resolve the test-line baseline conflict at the exact merged-tree total while preserving the native steering proof. Co-authored-by: RomneyDa <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Co-authored-by: RomneyDa <[email protected]>
Problem
A same-session scheduled or internal continuation can arrive while its retained Codex thread is still protected by native/background work. If the current dynamic-tool surface or producer-owned turn context differs, warm reuse can fall through to cold replacement and fail with:
What changed
Safety boundaries
ClawSweeper remediation evidence
workspaceOnly:falsedelivers the exact session-workspace image and withholds sibling-session and shared-workspace images before native dispatch or transcript persistence.Relationship to existing work
Validation
mainat364c0d4ebcd; GitHub reports the branch mergeable.codex-cli 0.164.0app-server, and 15/15 tests passed in the complete steering-media suite.oxlint: 0 warnings/errors.oxfmt --checkandgit diff --check: passed.codexexecutable; the permitted separate reviewer assessed the supplied exact diff and production control flow without helper-owned frozen-input guarantees.Native app-server proof (redacted)
The proof ran in an isolated temporary OpenClaw namespace; artifacts contain no credentials, personal identifiers, public IPs, or non-public endpoints.
codex-cli 0.164.0 app-server, verifies its reported version, creates a real native turn, and sends steering through the real client. A deterministic loopback Responses endpoint keeps provider output credential-free.workspaceOnly:false:turn/steeracknowledgment whose input contains the expected synthetic PNG bytes as a data URI.turn/steerrequests, make zeropersistApprovedcalls, and create zero visible transcript entries.runCodexAppServerAttempt→ packaged native app-server process → active turn → production steering queue →detectAndLoadAgentHarnessPromptImages→ production media-root resolver → nativeturn/steeracknowledgment. The rejection occurs beforebeforeSubmit, so forbidden media cannot be persisted or dispatched.The deterministic provider endpoint proves native app-server delivery and acknowledgment, not downstream model interpretation of the image. No live credentials were copied or migrated.
Additional previously supplied evidence covers scheduled context, immediate post-compaction inference, lifecycle revocation before provider/native I/O, and automation final-effect authorization.
Remediation revision
The current proof revision is
7f8792a8855fe18420bffda5dc35555f59b4f1a6. It preserves the exact RomneyDa coauthor trailer and the existing human attribution.CI ratchet justification
The native packaged-app-server proof adds a distinct transport and lifecycle regression matrix that cannot be represented by the protocol fixture. Hosted CI measured 6,286,693 test lines on the current merged tree, exactly matching the updated ceiling; revision
7f8792a8855fe18420bffda5dc35555f59b4f1a6raisesconfig/test-lines-baseline.txtto that exact observed total. The ratchet passes locally against currentorigin/main, and an independent P0-P2 review found no findings.