Repository navigation
fix(auto-reply): surface empty interactive completions - #99824
mushuiyu886 wants to merge 14 commits into
Conversation
|
Codex review: found issues before merge. Reviewed July 5, 2026, 3:57 PM ET / 19:57 UTC. Summary PR surface: Source +147, Tests +337, Docs +1. Total +485 across 8 files. Reproducibility: yes. at source level: current main still has successful empty-payload exits in direct reply and queued follow-up paths, while the linked issue provides runtime evidence from OpenClaw 2026.6.9. I did not run the live Telegram failure path in this read-only review. Review metrics: 1 noteworthy metric.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Mantis proof suggestion Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review findings
Review detailsBest possible solution: Land one canonical fix that covers both direct and queued empty interactive completions, preserves current main's terminal-failure payload path, removes the direct changelog edit, and reruns focused reply/follow-up tests plus real behavior proof. Do we have a high-confidence way to reproduce the issue? Yes, at source level: current main still has successful empty-payload exits in direct reply and queued follow-up paths, while the linked issue provides runtime evidence from OpenClaw 2026.6.9. I did not run the live Telegram failure path in this read-only review. Is this the best way to solve the issue? Yes, the shared reply/follow-up boundary helper is the right layer because it has the final payload list plus silent-policy and committed-delivery evidence. It is not merge-ready until the current-main conflict is resolved and the release-owned changelog edit is removed. Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ae65251fdf5e. Label changesLabel justifications:
Evidence reviewedPR surface: Source +147, Tests +337, Docs +1. Total +485 across 8 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
Review history (6 earlier review cycles)
|
Mantis Telegram Desktop ProofSummary: Mantis captured native Telegram Desktop before/after GIFs; this PR did not show the expected visible error reply after an empty Telegram turn.
Motion-trimmed clips: |
|
Added the Summary for reviewers: the native Telegram proof shows a real direct empty-result turn delivering a visible fallback reply, while the exact new fallback helper text and intentional-silent guard cases are covered by the focused unit tests. @openclaw-mantis please re-check the Telegram proof. @clawsweeper re-review |
2c41dba to
c9b5088
Compare
|
@clawsweeper re-review Updated this PR to commit c9b508830ea288af998a0ee7e12c99e18826e63a, rebased on current upstream main 11eeba9. Fix/proof summary:
Mantis/native Telegram proof can rerun against this head. |
|
🦞🧹 I asked ClawSweeper to review this item again. |
c9b5088 to
3cc27b7
Compare
3cc27b7 to
989fce1
Compare
|
Land-ready maintainer rewrite complete. What changed:
Proof:
Codex dependency contract checked directly at Known proof gaps: none for the changed direct/queued/TUI surfaces. |
acbc6c5 to
e8054ea
Compare
e8054ea to
acbc6c5
Compare
acbc6c5 to
f9048ae
Compare
fd55ae8 to
a9d0643
Compare
|
Superseded by the clean maintainer replacement #100456. The contributor head was concurrently rewritten several times during exact-head CI, so keeping both PRs open risks landing two different implementations. The replacement preserves @mushuiyu886's credit in the commit and will add changelog credit in its companion release-note PR. Focused, full changed-gate, real Gateway/TUI, and fresh autoreview proof are documented on #100456. Thank you @mushuiyu886 for the original report and implementation base. |




What Problem This Solves
Closes #99712.
An interactive agent turn could complete successfully but leave no deliverable final reply after directive stripping, reasoning/commentary filtering, model-fallback exhaustion, queued follow-up routing, or block-stream dedupe. The user then saw a completed turn with no explanation.
Why This Change Was Made
This rewrite keeps the policy at the reply-delivery owner boundary instead of teaching the TUI or individual providers about empty results:
NO_REPLY, heartbeats, pending continuations, message-tool-only runs, room/internal events, and committed side effects remain silent;User Impact
Interactive users now receive a visible, sanitized failure when a completed turn produced no deliverable reply. Existing deliberate-silence and side-effect contracts are unchanged.
Evidence
be33f80bc65159c094ecd06bf155afa3061ce23d:codex-rs/app-server/src/bespoke_event_handling.rs:1348-1369emits an empty item list for completed turns;codex-rs/app-server-protocol/src/protocol/v2/thread_data.rs:231-263definesNotLoadedas intentionally empty.