Skip to content

fix #99712: surface empty interactive replies - #99749

Closed
jincheng-xydt wants to merge 2 commits into
openclaw:mainfrom
jincheng-xydt:fix/99712-empty-interactive-reply
Closed

jincheng-xydt wants to merge 2 commits into
openclaw:mainfrom
jincheng-xydt:fix/99712-empty-interactive-reply

Conversation

@jincheng-xydt

@jincheng-xydt jincheng-xydt commented Jul 4, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Added a shared empty-interactive-reply guard for auto-reply finalization.
  • runReplyAgent now returns a visible error payload when an interactive run completes empty with no side-effect/source delivery.
  • createFollowupRunner now routes the same visible fallback through the durable follow-up origin path.
  • Preserved intentional silent or already-committed cases:
    • heartbeat/silent expected turns
    • allowEmptyAssistantReplyAsSilent
    • message_tool_only
    • committed messaging/source-reply delivery
    • deterministic approval prompts
    • successful cron.add deliveries
    • compaction notices and retrying compaction progress

User Impact

Instead of a user message appearing to disappear, the user now gets a visible final error:

I finished the turn, but it did not produce a visible reply. Please try again, or start a new session if this keeps happening.

Evidence

Focused acceptance tests:

node scripts/run-vitest.mjs src/auto-reply/reply/agent-runner.misc.runreplyagent.test.ts --reporter=verbose
✓ 50 passed, including "surfaces empty interactive completions as visible failures"

node scripts/run-vitest.mjs src/auto-reply/reply/followup-runner.test.ts --reporter=verbose
✓ 98 passed, including:
  - "routes a visible fallback when an interactive followup completes empty"
  - "does not emit the empty fallback after a deterministic approval prompt"
  - "does not emit the empty fallback after successful cron delivery"
  - "keeps message-tool-only empty followup completions silent"
  - compaction notice/retry regressions

node scripts/run-vitest.mjs src/agents/embedded-agent-runner/run.incomplete-turn.test.ts --reporter=verbose
✓ 111 passed

Quality checks:

node_modules/.bin/oxfmt --write --threads=1 src/auto-reply/reply/followup-runner.ts src/auto-reply/reply/followup-runner.test.ts
✓ formatted after the P1 follow-up fix

node scripts/run-oxlint.mjs src/auto-reply/reply/empty-interactive-reply.ts src/auto-reply/reply/agent-runner.ts src/auto-reply/reply/followup-runner.ts src/auto-reply/reply/agent-runner.misc.runreplyagent.test.ts src/auto-reply/reply/followup-runner.test.ts
✓ passed

git diff --check
✓ passed

Real Behavior Proof

Loopback interactive empty-reply proof was run locally with this PR applied. It uses the real buildEmptyInteractiveReplyFallbackPayload and hasCommittedSourceReplyDeliveryEvidence runtime helpers wired into runReplyAgent and createFollowupRunner.

No external provider, API key, account id, phone number, endpoint, or private path is used. Synthetic session/channel identifiers are redacted.

Command:

node_modules/.bin/tsx /tmp/openclaw-99749-loopback-proof.mjs

Observed output:

OpenClaw #99749 loopback interactive empty-reply proof
No external provider, API key, account id, phone number, endpoint, or private path is used.
Synthetic session/channel identifiers are redacted.
This exercises the same empty-interactive-reply helper wired into runReplyAgent and createFollowupRunner in PR #99749.
fallbackText="I finished the turn, but it did not produce a visible reply. Please try again, or start a new session if this keeps happening."

[direct interactive empty completion without delivery]
input={"isHeartbeat":false,"silentExpected":false,"allowEmptyAssistantReplyAsSilent":false,"sourceReplyDeliveryMode":"visible","hasSuccessfulSideEffectDelivery":false}
result={"emitted":true,"text":"I finished the turn, but it did not produce a visible reply. Please try again, or start a new session if this keeps happening.","isError":true,"sourceSuppressionDelivery":false}

[follow-up interactive empty completion without delivery]
input={"isHeartbeat":false,"silentExpected":false,"allowEmptyAssistantReplyAsSilent":false,"sourceReplyDeliveryMode":"visible","hasSuccessfulSideEffectDelivery":false}
result={"emitted":true,"text":"I finished the turn, but it did not produce a visible reply. Please try again, or start a new session if this keeps happening.","isError":true,"sourceSuppressionDelivery":false}

[intentional silent interactive completion stays quiet]
input={"isHeartbeat":false,"silentExpected":true,"allowEmptyAssistantReplyAsSilent":false,"sourceReplyDeliveryMode":"visible","hasSuccessfulSideEffectDelivery":false}
result={"emitted":false,"text":"","isError":false}

[allowEmptyAssistantReplyAsSilent completion stays quiet]
input={"isHeartbeat":false,"silentExpected":false,"allowEmptyAssistantReplyAsSilent":true,"sourceReplyDeliveryMode":"visible","hasSuccessfulSideEffectDelivery":false}
result={"emitted":false,"text":"","isError":false}

[message_tool_only source reply completion stays quiet]
input={"isHeartbeat":false,"silentExpected":false,"allowEmptyAssistantReplyAsSilent":false,"sourceReplyDeliveryMode":"message_tool_only","hasSuccessfulSideEffectDelivery":false}
result={"emitted":false,"text":"","isError":false}

[message-tool side-effect completion stays quiet]
input={"isHeartbeat":false,"silentExpected":false,"allowEmptyAssistantReplyAsSilent":false,"sourceReplyDeliveryMode":"visible","hasSuccessfulSideEffectDelivery":true}
result={"emitted":false,"text":"","isError":false}

[deterministic approval prompt side-effect stays quiet]
input={"isHeartbeat":false,"silentExpected":false,"allowEmptyAssistantReplyAsSilent":false,"sourceReplyDeliveryMode":"visible","hasSuccessfulSideEffectDelivery":true}
result={"emitted":false,"text":"","isError":false}

[successful cron.add side-effect stays quiet]
input={"isHeartbeat":false,"silentExpected":false,"allowEmptyAssistantReplyAsSilent":false,"sourceReplyDeliveryMode":"visible","hasSuccessfulSideEffectDelivery":true}
result={"emitted":false,"text":"","isError":false}

[summary]
emptyInteractiveFallbackVisible=true
quietCasesPreserved=true
committedMessageToolDeliveryEvidence=true
proofResult=PASS

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

  • No embedded-agent retry policy changes.
  • No provider/model fallback behavior changes.
  • No message-tool-only final content is made public.

AI Disclosure

Implemented with AI assistance and verified with focused tests, lint, and loopback real behavior proof.

@openclaw-barnacle openclaw-barnacle Bot added size: M triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Jul 4, 2026
@clawsweeper

clawsweeper Bot commented Jul 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 4, 2026, 9:24 AM ET / 13:24 UTC.

Summary
The PR adds a shared empty-interactive-reply fallback for direct auto-reply and follow-up finalization, with regression tests for visible empty completions and preserved silent side-effect cases.

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.

  • Empty-delivery exits guarded: 4 guarded exits. The patch covers the two direct-runner empty exits and two follow-up empty exits that currently return without user-visible content.
  • Silent side-effect exceptions covered: 6 preserved classes. Source and tests cover message-tool/source delivery, cron, deterministic approvals, compaction paths, accepted child-session spawns, and explicit silent/message-tool-only modes.
  • PR surface: 5 files, +369/-21. The change is small enough for focused maintainer review but touches central reply delivery code.

Root-cause cluster
Relationship: fixed_by_candidate
Canonical: #99712
Summary: This PR is one candidate fix for the canonical empty interactive reply message-loss issue; several other open PRs attempt the same root-cause fix with different scope and proof states.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🦞 diamond lobster
Patch quality: 🐚 platinum hermit
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • none.

Risk before merge

  • [P2] This intentionally changes terminal message-delivery behavior; if a legitimate side-effect path is not included in the evidence set, users could see an erroneous final fallback instead of intentional silence.
  • [P1] Several open PRs target the same linked issue, so maintainers still need to choose one canonical implementation before closing competing branches.

Maintainer options:

  1. Land This Branch As Canonical (recommended)
    If maintainers choose this implementation, land it as the canonical fix for issue Interactive direct turns can complete with empty output and silently drop the reply #99712 after ordinary required checks.
  2. Request Extra Transport Proof
    Maintainers can ask for a redacted live Telegram or channel transcript if they want additional confidence beyond the terminal loopback proof.
  3. Prefer A Sibling Candidate
    If PR fix(auto-reply): surface empty interactive completions #99824 or fix(reply): surface empty interactive completions #99878 is selected instead, close this PR only after the replacement is landed or clearly proof-positive and canonical.

Next step before merge

Security
Cleared: The diff only changes TypeScript reply-runner logic and tests, with no dependency, workflow, secret, package, or external code-execution surface added.

Review details

Best 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 changes

Label changes:

  • add merge-risk: 🚨 message-delivery: The diff changes final reply/no-reply decisions, so incomplete side-effect evidence could create false-positive fallback messages or missed delivery.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body and comments include terminal loopback output showing the real fallback helper wired into both runner paths and preserved quiet cases.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The PR body and comments include terminal loopback output showing the real fallback helper wired into both runner paths and preserved quiet cases.

Label justifications:

  • P1: The PR targets a user-facing message-loss bug where accepted interactive turns can complete with no visible reply and leave users thinking the channel is hung.
  • merge-risk: 🚨 message-delivery: The diff changes final reply/no-reply decisions, so incomplete side-effect evidence could create false-positive fallback messages or missed delivery.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The PR body and comments include terminal loopback output showing the real fallback helper wired into both runner paths and preserved quiet cases.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body and comments include terminal loopback output showing the real fallback helper wired into both runner paths and preserved quiet cases.
Evidence reviewed

PR surface:

Source +148, Tests +200. Total +348 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 3 169 21 +148
Tests 2 200 0 +200
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 369 21 +348

Acceptance criteria:

  • [P1] node scripts/run-vitest.mjs src/auto-reply/reply/agent-runner.misc.runreplyagent.test.ts src/auto-reply/reply/followup-runner.test.ts.
  • [P1] node scripts/run-vitest.mjs src/agents/embedded-agent-runner/run.incomplete-turn.test.ts.
  • [P1] node scripts/run-oxlint.mjs src/auto-reply/reply/empty-interactive-reply.ts src/auto-reply/reply/agent-runner.ts src/auto-reply/reply/followup-runner.ts src/auto-reply/reply/agent-runner.misc.runreplyagent.test.ts src/auto-reply/reply/followup-runner.test.ts.
  • [P1] git diff --check.

What I checked:

Likely related people:

  • Peter Steinberger: Authored the split reply-flow refactor that created the central direct and follow-up runner files, and has recent adjacent reply-runtime work. (role: feature-history contributor and recent adjacent owner; confidence: high; commits: 72a9e58777ab, 3d404478b8; files: src/auto-reply/reply/agent-runner.ts, src/auto-reply/reply/followup-runner.ts)
  • Jason (Json): Authored the merged empty post-tool final-turn recovery work that established nearby incomplete-turn fallback behavior and tests. (role: adjacent incomplete-turn contributor; confidence: medium; commits: 77a682c5def2; files: src/agents/embedded-agent-runner/run.ts, src/agents/embedded-agent-runner/run/incomplete-turn.ts, src/agents/embedded-agent-runner/run.incomplete-turn.test.ts)
  • Eva: Recently touched the embedded-runner and auto-reply completion boundary while preserving Codex output after missing turn completion. (role: recent Codex completion recovery contributor; confidence: medium; commits: 414ecd2b9689; files: src/agents/embedded-agent-runner/run.ts, src/agents/embedded-agent-runner/runs.ts, src/auto-reply/reply/agent-runner.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
Review history (5 earlier review cycles)
  • reviewed 2026-07-04T02:08:19.610Z sha 3997d67ef24dee4326181ebb420dd516a0c45d2c :: needs real behavior proof before merge. :: [P1] Preserve follow-up side-effect completions
  • reviewed 2026-07-04T08:46:58.185Z sha ed19873 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-04T12:26:01.194Z sha ed19873 :: needs changes before merge. :: [P1] Preserve accepted child-session spawn completions
  • reviewed 2026-07-04T12:32:17.679Z sha ed19873 :: needs changes before merge. :: [P1] Preserve accepted child-session spawn completions
  • reviewed 2026-07-04T13:14:34.678Z sha 601f9d1 :: needs maintainer review before merge. :: none

@jincheng-xydt
jincheng-xydt force-pushed the fix/99712-empty-interactive-reply branch from fcdd7a1 to 3997d67 Compare July 4, 2026 01:50
@jincheng-xydt

Copy link
Copy Markdown
Contributor Author

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.

@jincheng-xydt

Copy link
Copy Markdown
Contributor Author

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.

@openclaw-barnacle openclaw-barnacle Bot removed the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Jul 4, 2026
@harjothkhara

Copy link
Copy Markdown
Contributor

Source review note on follow-up side-effect delivery:

The new follow-up fallback at src/auto-reply/reply/followup-runner.ts:1399 only treats message-tool/source-reply delivery plus compaction notices as successful side effects before sending the "no visible reply" error. That is narrower than the direct reply path: src/auto-reply/reply/agent-runner.ts:248 also suppresses the empty-reply failure when successfulCronAdds > 0 or didSendDeterministicApprovalPrompt is true.

That matters because runEmbeddedAgent can legitimately return no payloads after delivering a deterministic approval prompt; existing coverage in src/agents/embedded-agent-runner/run.overflow-compaction.loop.test.ts:751 expects payloads to be undefined while didSendDeterministicApprovalPrompt is true. With this PR, a queued follow-up with that result goes through payloadArray.length === 0 at src/auto-reply/reply/followup-runner.ts:1436 and sends the new fallback error, so the user can see an approval prompt plus an erroneous "finished the turn, but it did not produce a visible reply" final.

I think the follow-up evidence check should include runResult.didSendDeterministicApprovalPrompt === true, and also (runResult.successfulCronAdds ?? 0) > 0 for parity with the direct runner contract. A focused regression in src/auto-reply/reply/followup-runner.test.ts can mirror the new empty-payload test with agentResult: { payloads: [], didSendDeterministicApprovalPrompt: true } and assert no fallback delivery.

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. mantis: telegram-visible-proof Mantis should capture Telegram visible proof. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. labels Jul 4, 2026
@jincheng-xydt
jincheng-xydt force-pushed the fix/99712-empty-interactive-reply branch from 3997d67 to b10126c Compare July 4, 2026 08:36
@jincheng-xydt

Copy link
Copy Markdown
Contributor Author

Updated #99749 for the ClawSweeper P1 finding.

What changed:

  • Follow-up empty fallback now treats didSendDeterministicApprovalPrompt === true as committed side-effect evidence.
  • Follow-up empty fallback now treats successfulCronAdds > 0 as committed side-effect evidence.
  • Added regressions proving those two side-effect completions do not emit the visible empty fallback.

Proof:

node scripts/run-vitest.mjs src/auto-reply/reply/agent-runner.misc.runreplyagent.test.ts --reporter=verbose
✓ 50 passed

node scripts/run-vitest.mjs src/auto-reply/reply/followup-runner.test.ts --reporter=verbose
✓ 98 passed

node scripts/run-vitest.mjs src/agents/embedded-agent-runner/run.incomplete-turn.test.ts --reporter=verbose
✓ 111 passed

node scripts/run-oxlint.mjs src/auto-reply/reply/empty-interactive-reply.ts src/auto-reply/reply/agent-runner.ts src/auto-reply/reply/followup-runner.ts src/auto-reply/reply/agent-runner.misc.runreplyagent.test.ts src/auto-reply/reply/followup-runner.test.ts
✓ passed

git diff --check
✓ passed

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@jincheng-xydt
jincheng-xydt force-pushed the fix/99712-empty-interactive-reply branch from b10126c to ed19873 Compare July 4, 2026 08:39
@jincheng-xydt

Copy link
Copy Markdown
Contributor Author

Rebuilt the PR branch on the latest base (9a0c9f8) after the P1 fix; head is now ed19873.

The P1 side-effect fix and proof are unchanged:

  • didSendDeterministicApprovalPrompt === true suppresses the empty fallback.
  • successfulCronAdds > 0 suppresses the empty fallback.
  • followup-runner.test.ts now has focused regressions for both.

Local proof remains:

agent-runner.misc.runreplyagent.test.ts: 50 passed
followup-runner.test.ts: 98 passed
run.incomplete-turn.test.ts: 111 passed
run-oxlint touched files: passed
git diff --check: passed

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. and removed mantis: telegram-visible-proof Mantis should capture Telegram visible proof. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jul 4, 2026
@jincheng-xydt

Copy link
Copy Markdown
Contributor Author

Real behavior proof for #99749:

I ran a local loopback interactive empty-reply proof with this PR applied. This uses the real buildEmptyInteractiveReplyFallbackPayload and hasCommittedSourceReplyDeliveryEvidence runtime helpers wired into runReplyAgent and createFollowupRunner.

No external provider, API key, account id, phone number, endpoint, or private path is used. Synthetic session/channel identifiers are redacted.

OpenClaw #99749 loopback interactive empty-reply proof
No external provider, API key, account id, phone number, endpoint, or private path is used.
Synthetic session/channel identifiers are redacted.
This exercises the same empty-interactive-reply helper wired into runReplyAgent and createFollowupRunner in PR #99749.
fallbackText="I finished the turn, but it did not produce a visible reply. Please try again, or start a new session if this keeps happening."

[direct interactive empty completion without delivery]
input={"isHeartbeat":false,"silentExpected":false,"allowEmptyAssistantReplyAsSilent":false,"sourceReplyDeliveryMode":"visible","hasSuccessfulSideEffectDelivery":false}
result={"emitted":true,"text":"I finished the turn, but it did not produce a visible reply. Please try again, or start a new session if this keeps happening.","isError":true,"sourceSuppressionDelivery":false}

[follow-up interactive empty completion without delivery]
input={"isHeartbeat":false,"silentExpected":false,"allowEmptyAssistantReplyAsSilent":false,"sourceReplyDeliveryMode":"visible","hasSuccessfulSideEffectDelivery":false}
result={"emitted":true,"text":"I finished the turn, but it did not produce a visible reply. Please try again, or start a new session if this keeps happening.","isError":true,"sourceSuppressionDelivery":false}

[intentional silent interactive completion stays quiet]
input={"isHeartbeat":false,"silentExpected":true,"allowEmptyAssistantReplyAsSilent":false,"sourceReplyDeliveryMode":"visible","hasSuccessfulSideEffectDelivery":false}
result={"emitted":false,"text":"","isError":false}

[allowEmptyAssistantReplyAsSilent completion stays quiet]
input={"isHeartbeat":false,"silentExpected":false,"allowEmptyAssistantReplyAsSilent":true,"sourceReplyDeliveryMode":"visible","hasSuccessfulSideEffectDelivery":false}
result={"emitted":false,"text":"","isError":false}

[message_tool_only source reply completion stays quiet]
input={"isHeartbeat":false,"silentExpected":false,"allowEmptyAssistantReplyAsSilent":false,"sourceReplyDeliveryMode":"message_tool_only","hasSuccessfulSideEffectDelivery":false}
result={"emitted":false,"text":"","isError":false}

[message-tool side-effect completion stays quiet]
input={"isHeartbeat":false,"silentExpected":false,"allowEmptyAssistantReplyAsSilent":false,"sourceReplyDeliveryMode":"visible","hasSuccessfulSideEffectDelivery":true}
result={"emitted":false,"text":"","isError":false}

[deterministic approval prompt side-effect stays quiet]
input={"isHeartbeat":false,"silentExpected":false,"allowEmptyAssistantReplyAsSilent":false,"sourceReplyDeliveryMode":"visible","hasSuccessfulSideEffectDelivery":true}
result={"emitted":false,"text":"","isError":false}

[successful cron.add side-effect stays quiet]
input={"isHeartbeat":false,"silentExpected":false,"allowEmptyAssistantReplyAsSilent":false,"sourceReplyDeliveryMode":"visible","hasSuccessfulSideEffectDelivery":true}
result={"emitted":false,"text":"","isError":false}

[summary]
emptyInteractiveFallbackVisible=true
quietCasesPreserved=true
committedMessageToolDeliveryEvidence=true
proofResult=PASS

Conclusion: empty direct/follow-up interactive completions now produce the visible fallback, while intentional silent and side-effect-only completions remain quiet.

@jincheng-xydt

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jul 4, 2026
@jincheng-xydt
jincheng-xydt force-pushed the fix/99712-empty-interactive-reply branch from da6ba6a to 601f9d1 Compare July 4, 2026 13:08
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. proof: sufficient ClawSweeper judged the real behavior proof convincing. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Jul 4, 2026
@brokemac79

Copy link
Copy Markdown
Contributor

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 re-review.

Thanks, and sorry for the noise.

@steipete

steipete commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Superseded by #100456, which landed as f0093b7020e772c0ac3237b25b149d369c604915 and fixes #99712 across both direct interactive turns and queued follow-ups. The landed implementation also preserves explicit silence, pending continuations, and committed side effects, with focused Testbox and live Gateway/TUI PTY proof.

Thank you @jincheng-xydt for working on this failure mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P1 High-priority user-facing bug, regression, or broken workflow. size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Interactive direct turns can complete with empty output and silently drop the reply

4 participants