Repository navigation
fix(auto-reply): surface empty interactive completions - #100456
Conversation
|
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. |
|
Codex review: needs maintainer review before merge. Reviewed July 5, 2026, 5:20 PM ET / 21:20 UTC. Summary PR surface: Source +247, Tests +502. Total +749 across 9 files. Reproducibility: yes. at source level: current main still has direct and queued follow-up empty-payload exits that can return no outbound payload, and the PR adds regression tests for those paths. I did not run a live Telegram reproduction. Review metrics: none identified. Stored data model 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. Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Keep this PR as the canonical fix for the linked issue, land it after maintainer review and required checks are acceptable, then close the linked issue and leave the superseded contributor PR closed. Do we have a high-confidence way to reproduce the issue? Yes, at source level: current main still has direct and queued follow-up empty-payload exits that can return no outbound payload, and the PR adds regression tests for those paths. I did not run a live Telegram reproduction. Is this the best way to solve the issue? Yes, this is the best fix shape: the auto-reply/follow-up delivery boundary has the final payload list plus silence, continuation, and committed-delivery evidence, while provider or TUI-only fixes would duplicate policy in the wrong layer. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against aa665817490b. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +247, Tests +502. Total +749 across 9 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 (1 earlier review cycle)
|
0be7537 to
6af6383
Compare
Co-authored-by: mushuiyu886 <[email protected]>
6af6383 to
97332c6
Compare
|
Merged via squash.
|
* fix(auto-reply): surface empty interactive completions Co-authored-by: mushuiyu886 <[email protected]> * chore(changelog): defer empty-reply release note --------- Co-authored-by: mushuiyu886 <[email protected]>
What Problem This Solves
Closes #99712.
Maintainer replacement for #99824. The commit preserves contributor credit; a companion changelog PR will land immediately after the runtime change to avoid unrelated mainline changelog drift.
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
0be75376a2b234a08d67308ed75a3999b2eb14ba: all required shards and QA smoke passed — https://github.com/openclaw/openclaw/actions/runs/28754577268be33f80bc65159c094ecd06bf155afa3061ce23d: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.