Repository navigation
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 adds privacy-safe failure-stage diagnostics and native Codex message-delivery history coverage. Example: A progress-only message send requires recovery, but the history worker fails.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR retains useful diagnostics and native history coverage beyond the merged core fix, with no actionable correctness or security findings. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherCore decides whether a settled tool turn needs recovery; the Codex plugin captures verified history and returns detached context or an unavailable result with bounded diagnostics. flowchart TD
A[Settled Codex turn] --> B[Core delivery decision]
B --> C[Codex context capture]
C --> D[History worker]
D --> E[Verified context]
C --> F[Bounded failure warning]
E --> G[Isolated finalization]
Technical reviewBest possible solution: Land the focused diagnostic extension and native history coverage once the existing exact-head CI gate passes. Do we have a high-confidence way to reproduce the issue? Current-main source logs unknown capture failures without stage information, and the supplied Gateway base/head trace demonstrates the added read-stage diagnostic. Is this the best way to solve the issue? The patch extends the existing diagnostic owner with fixed labels and preserves core's sole ownership of capture eligibility. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9b3ebd7f5a27. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +8, Tests +172. Total +180 across 4 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 (6 earlier review cycles)
Reviewed October 20, 2026, 7:36 AM ET / 11:36 UTC (Revision 7). |
|
Related: #154930 merged into main and silences the host-generated missing-summary fallback for cron-triggered runs. Release availability and deployment are unverified. This does not replace the final-delivery receipt guard or capture diagnostics here. Silencing a later cron placeholder does not avoid the unnecessary transcript read and recovery warning after a confirmed final send. Keeping this PR open for that independent capture behavior. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
…ssage regression Capture eligibility after a delivered final belongs to core's requestSettledTurnFinalizationContext and its own suite. The native case now keeps only native delivery and history continuity checks.
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Resolve settled-turn test conflicts with openclaw#178243: keep main's flattened context test and in-file native helpers; re-add only the PR's stage diagnostics cases and native message history-coverage case.
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Thanks @Tosko4 for identifying this and following the delivery ownership changes. The reported warning-after-final-delivery bug is already fixed on main by #173945 (acd2763). I verified current main ea17c53: core reconciles committed delivery before requesting capture, skips capture/finalization for delivered or pending replies, and both Codex capture warnings remain inside that deferred callback. The existing core regression covers delivered/pending/missing states and final versus progress receipts. Closing the original bug as fixed; the remaining bounded stage diagnostics and native history-continuity coverage are useful separate improvements, as your updated description explains. |
Related: #152786
What Problem This Solves
Fixes misleading recovery warnings and unnecessary transcript reads after Codex has already delivered the final reply through the source message tool.
User Impact
Confirmed final replies no longer start unused settled-turn context capture. Progress-only sends still leave answer recovery available. No configuration, storage, permission, or delivery-policy changes are required.
Why This Change Was Made
Codex can finish locally after a successful message-tool send without producing a native assistant final. Capture previously treated that legitimate result as an unanswered tool turn. The existing authoritative
sourceReplyFinalreceipt now excludes it from capture.When capture is genuinely required, generic failures retain a bounded stage diagnostic; no exception text, transcript content, or paths are logged. This does not suppress necessary recovery, infer delivery from a private final, or claim to repair independently unavailable recovery context.
Evidence
Current head: see the update above (unit, native and core suites; exact-head Gateway trace with base comparison).
Earlier candidates, before #173945 and with this PR's own guard, which has since been removed:
Current native suite: 11/11 passed against the actual pinned native executable and the production attempt, dynamic-tool and host-settlement path. The two message-delivery cases (
final=trueandfinal=false) check native delivery, interruption, history coverage and same-thread resume. They do not assert the capture decision, which core owns and tests. All nine existing native closure, side-fork, source-ownership and summary cases also pass.Redacted native test result (head 3012a43)
The message-delivery cases assert native terminal success, no timeout, the confirmed source-reply receipt, durable coverage and same-thread resumed input. You can reproduce this with the repository native test runner and
OPENCLAW_LIVE_CODEX_SETTLED_FINALIZATION=0. It needs no external credentials and sends no Telegram message.