Repository navigation
Conversation
|
Thanks for the context here. I did a careful shell check against current Close: current main already contains the exact regression guard this branch adds, with git history tying the duplicate test to a mainline commit after the latest release. So I’m closing this as already implemented rather than keeping a duplicate issue open. Review detailsBest possible solution: Close this branch and keep the mainline regression guard; any remaining channel-delivery behavior should stay with the canonical related issue or a maintainer-approved follow-up. Do we have a high-confidence way to reproduce the issue? Not applicable as a current-main failure: current main already contains the exact helper regression and the final-answer payload selection path it guards. Is this the best way to solve the issue? Yes for cleanup: closing this branch is the narrowest outcome because merging it now would duplicate coverage already present on main. Security review: Security review cleared: The diff only adds a Vitest regression test and does not change runtime code, dependencies, workflows, secrets, permissions, or network behavior. What I checked:
Likely related people:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 9aa46843ec89; fix evidence: commit 6ebe91d92b2a, main fix timestamp 2026-05-18T01:37:59+01:00. |
Summary
buildEmbeddedRunPayloadsregression asserting"Need inspect.\n\nDone."delivers only the phase-taggedfinal_answertext,"Done.".Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Real behavior proof (required for external PRs)
This PR is regression coverage only; it does not change runtime behavior. The underlying runtime behavior was fixed by #82850. This PR adds the exact remaining test shape Peter mentioned in #82645's closure comment.
commentaryandfinal_answerblocks; the final payload should use only the structuredfinal_answer.mainon macOS with Node v26.0.0 and pnpm 11.1.0.OPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs src/agents/pi-embedded-runner/run/payloads.test.tsOPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs src/agents/pi-embedded-runner/run/payloads.test.ts src/agents/pi-embedded-runner/run/payloads.errors.test.ts extensions/discord/src/monitor/message-handler.process.test.tspnpm exec oxfmt --check --threads=1 src/agents/pi-embedded-runner/run/payloads.test.tsgit diff --checkpnpm check:changedDone.and does not deliver the commentary prefixNeed inspect..Root Cause (if applicable)
assistantTexts: ["Need inspect.\n\nDone."]plus structuredcommentaryandfinal_answerblocks.Regression Test Plan (if applicable)
src/agents/pi-embedded-runner/run/payloads.test.tsUser-visible / Behavior Changes
None. Test coverage only.
Diagram (if applicable)
N/A
Security Impact (required)
Yes, explain risk + mitigation: N/ARepro + Verification
Environment
Steps
Need inspect.\n\nDone..commentarytextNeed inspect.andfinal_answertextDone..Done..Expected
final_answer.Actual
Evidence
Attach at least one:
The focused test output is copied in the Real behavior proof section.
Human Verification (required)
What you personally verified (not just CI), and how:
Review Conversations
No bot review conversations are addressed by this PR yet.
Compatibility / Migration
Risks and Mitigations