Repository navigation
fix #99712: surface empty interactive replies - #99749
jincheng-xydt wants to merge 2 commits into
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 4, 2026, 9:24 AM ET / 13:24 UTC. Summary PR surface: Source +148, Tests +200. Total +348 across 5 files. Reproducibility: yes. at source level: current main still returns without a payload from the direct and follow-up empty-result exits, while the issue and PR tests define the expected visible fallback path. Review metrics: 3 noteworthy metrics.
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:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land one canonical, well-proven empty-interactive-reply guard for both direct and follow-up paths, then close duplicate fix candidates and the linked issue as implemented. Do we have a high-confidence way to reproduce the issue? Yes at source level: current main still returns without a payload from the direct and follow-up empty-result exits, while the issue and PR tests define the expected visible fallback path. Is this the best way to solve the issue? Yes: the shared final-output invariant at the direct and follow-up reply boundaries is narrower than a channel-specific fallback and preserves known silent side-effect contracts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 787f3a2ce557. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +148, Tests +200. Total +348 across 5 files. View PR surface stats
Acceptance criteria:
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 (5 earlier review cycles)
|
fcdd7a1 to
3997d67
Compare
|
Rebased onto latest upstream main (base 2ffeedf); PR is now mergeable. Re-ran focused proof after resolving the import conflict: runReplyAgent misc 50/50, followup-runner 96/96, embedded-agent incomplete-turn 111/111, run-oxlint touched files passed, git diff --check passed. @clawsweeper please re-review. |
|
Updated PR body to use the required "What Problem This Solves" heading while keeping the rebased proof details: runReplyAgent 50/50, followup-runner 96/96, embedded-agent incomplete-turn 111/111, run-oxlint touched files passed, git diff --check passed. @clawsweeper please re-run proof/context review. |
|
Source review note on follow-up side-effect delivery: The new follow-up fallback at That matters because I think the follow-up evidence check should include |
3997d67 to
b10126c
Compare
|
Updated #99749 for the ClawSweeper P1 finding. What changed:
Proof: @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
b10126c to
ed19873
Compare
|
Rebuilt the PR branch on the latest base ( The P1 side-effect fix and proof are unchanged:
Local proof remains: @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Real behavior proof for #99749: I ran a local loopback interactive empty-reply proof with this PR applied. This uses the real No external provider, API key, account id, phone number, endpoint, or private path is used. Synthetic session/channel identifiers are redacted. Conclusion: empty direct/follow-up interactive completions now produce the visible fallback, while intentional silent and side-effect-only completions remain quiet. |
|
@clawsweeper re-review |
da6ba6a to
601f9d1
Compare
|
Hi! Small heads-up: ClawSweeper had a short-lived label/comment sync bug that may have affected this PR. Your latest ClawSweeper review comment appears to be for the current PR head and says this is ready for maintainer review, but the ready/proof/rating labels were later removed by stale local review state. The ClawSweeper fix has merged, but this PR needs a fresh author-triggered review so the labels and comment are reconciled again. Could you please post a new comment asking ClawSweeper to re-review? Use the bot mention followed by Thanks, and sorry for the noise. |
|
Superseded by #100456, which landed as Thank you @jincheng-xydt for working on this failure mode. |
Fixes #99712.
What Problem This Solves
Interactive direct reply/follow-up turns could finish with
runResult.payloads = []and no committed source delivery, then silently return without telling the user anything.Why
For an interactive user turn, an empty final result is not a successful reply unless the run was explicitly allowed to be silent or already committed delivery through a source/message-tool/side-effect path. The previous terminal checks existed in multiple places and left the auto-reply/follow-up boundary able to drop the reply.
What Changed
runReplyAgentnow returns a visible error payload when an interactive run completes empty with no side-effect/source delivery.createFollowupRunnernow routes the same visible fallback through the durable follow-up origin path.allowEmptyAssistantReplyAsSilentmessage_tool_onlycron.adddeliveriesUser Impact
Instead of a user message appearing to disappear, the user now gets a visible final error:
Evidence
Focused acceptance tests:
Quality checks:
Real Behavior Proof
Loopback interactive empty-reply proof was run locally with this PR applied. It uses the real
buildEmptyInteractiveReplyFallbackPayloadandhasCommittedSourceReplyDeliveryEvidenceruntime helpers wired intorunReplyAgentandcreateFollowupRunner.No external provider, API key, account id, phone number, endpoint, or private path is used. Synthetic session/channel identifiers are redacted.
Command:
Observed output:
This proves both requested behavior points: empty direct/follow-up interactive completions now produce a visible fallback, while intentional silent and side-effect-only completions remain quiet.
Risk
Low to medium. This changes terminal behavior only for interactive empty completions with no committed delivery evidence. Silent/heartbeat/message-tool-only, approval prompt, cron delivery, and compaction paths are explicitly covered so existing intentional no-reply flows remain quiet.
Not Changed
AI Disclosure
Implemented with AI assistance and verified with focused tests, lint, and loopback real behavior proof.