fix(cron): make recovered tool errors order agnostic#81585
fix(cron): make recovered tool errors order agnostic#81585WuKongAI-CMU wants to merge 2 commits into
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 2, 2026, 1:11 AM ET / 05:11 UTC. Summary PR surface: Source +13, Tests +31. Total +44 across 2 files. Reproducibility: unclear. The review failed before ClawSweeper could establish a reproduction path. Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Risk before merge
Maintainer options:
Next step before merge
Review detailsBest possible solution: Retry the Codex review after fixing the execution failure. Do we have a high-confidence way to reproduce the issue? Unclear. The review failed before ClawSweeper could establish a reproduction path. Is this the best way to solve the issue? Unclear. Retry the review first so ClawSweeper can evaluate the actual issue and fix direction. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model gpt-5.5, reasoning high; reviewed against 93fd17447abd. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +13, Tests +31. Total +44 across 2 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
This pull request has been automatically marked as stale due to inactivity. |
Summary
Fixes #81514.
Verification
pnpm test src/cron/isolated-agent.helpers.test.ts src/cron/isolated-agent/run.message-tool-policy.test.ts src/agents/pi-embedded-runner/run/payloads.errors.test.tsgit diff --checkpnpm check:changedReal behavior proof
src/cron/isolated-agent/helpers.tsimplementation through Node/tsx.node --import tsx --input-type=module -e 'import { resolveCronPayloadOutcome } from "./src/cron/isolated-agent/helpers.ts"; ...'{ "recoveredExec": { "hasFatalErrorPayload": false, "outputText": "Fallback log written successfully." }, "trailingExecNoRecoveryText": { "hasFatalErrorPayload": true, "embeddedRunError": "⚠️ 🛠️ Exec failed: Discord channel unavailable", "outputText": "⚠️ 🛠️ Exec failed: Discord channel unavailable" }, "trailingCanvas": { "hasFatalErrorPayload": true, "embeddedRunError": "⚠️ 🖼️ Canvas failed", "outputText": "⚠️ 🖼️ Canvas failed" }, "trailingProvider": { "hasFatalErrorPayload": true, "embeddedRunError": "model provider unreachable", "outputText": "model provider unreachable" } }recoveredExec.hasFatalErrorPayloadisfalse;trailingExecNoRecoveryText,trailingCanvas, andtrailingProviderall returnedhasFatalErrorPayload: truewith the expected embedded error text.