Repository navigation
fix(agents): Don't show an error message if the agent returns NO_REPLY - #149642
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
|
Codex review: needs maintainer review before merge. Reviewed September 16, 2026, 6:42 PM ET / 22:42 UTC (Revision 2). ClawSweeper reviewWhat this changesThe agent runner accepts explicit NO_REPLY responses independently of the empty-reply setting, with updated recovery and finalization regression tests. Merge readiness✅ Ready for maintainer review The previous finding is resolved, and no remaining actionable defect was found. The fix remains necessary: current main and the latest release still reject authored silence when empty replies are disabled. Priority: P2 Review scores
Verification
How this fits togetherThe agent runner turns model output and completed tool results into a final response or recovery attempt. Its silence policy determines whether an intentional acknowledgment stays quiet or triggers an unwanted fallback message. flowchart TD
A[Model output and tool results] --> B[Terminal response preparation]
B --> C[Explicit silence policy]
C --> D[Failure and pending-work guards]
D --> E[Preserve intentional silence]
D --> F[Recovery or visible response]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource 0, Tests +68. Total +68 across 4 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep authored silence terminal in the shared recovery owner while retaining failure visibility and the separate rules for genuinely blank output. Do we have a high-confidence way to reproduce the issue? Yes, from source: a successful reaction followed by NO_REPLY with empty replies disabled reaches the old rejection guard and can enter summary recovery. Runtime reproduction was not performed in this review. Is this the best way to solve the issue? Yes. The one-condition repair uses the existing silence owner, matches the documented contract, and preserves the recovery guards; the revised finalizer expectations now agree with that behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 75ba5e3fae5c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
@clawsweeper re-review Addressed the optional-finalizer finding in 6a492d2e03aaa53563e3fc25d8efdc00023e5e4a: explicit The same commit corrects the second stale expectation in |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
openclaw#149642) * fix(agents): honor explicit silence in directed turns * test(agents): align authored silence expectations and fix lint --------- Co-authored-by: Sarah Fortune <[email protected]>
Why
A directed chat turn can successfully add a reaction and deliberately finish with
NO_REPLY. When empty replies are disallowed, the runner currently treats that authored silence as a missing final answer and may post an unwanted summary-recovery fallback.Examples and exact diagnostics
Passed ✅. The agent successfully adds a reaction and ends withNO_REPLY, but OpenClaw posts the fallback text below.message(action=react)result followed byNO_REPLYreaches missing-summary recovery even with no finalization context available.NO_REPLYwithallowEmptyAssistantReplyAsSilent: false. The old policy retries the finalizer and can emit the same fallback.Exact unwanted message visible in Slack:
The observed Gateway finalization failure contains this exact error:
The Gateway warning ends with:
The original successful turn had deliberately produced
NO_REPLY; attempting summary recovery caused the diagnostic and visible fallback.Change
Recognize an explicit silent response independently of the permission to accept genuinely empty output. Keep the existing failure, timeout, cancellation, pending-work, and delivery guards. Update the optional-finalizer regression to reflect the same distinction between authored silence and blank output.
Validation
6a492d2e03aaa53563e3fc25d8efdc00023e5e4a: 139 jobs passed, 17 workflow-selected skips, and the requiredopenclaw/ci-gateis green.checks-node-compact-large-8andchecks-node-compact-large-12) andcheck-lint-core-1passed on the corrected commit.git diff --checkpassed locally.