Skip to content

fix(reply): surface empty interactive completions - #99878

Closed
qingminglong wants to merge 2 commits into
openclaw:mainfrom
qingminglong:codex/99712-empty-direct-reply-resubmit
Closed

qingminglong wants to merge 2 commits into
openclaw:mainfrom
qingminglong:codex/99712-empty-direct-reply-resubmit

Conversation

@qingminglong

@qingminglong qingminglong commented Jul 4, 2026 •

Copy link
Copy Markdown
Contributor

Closes #99712

What Problem This Solves

Fixes an issue where an interactive direct turn could finish successfully with no assistant payload and no committed source reply, causing the user-facing channel turn to silently complete without any visible deliverable.

Why This Change Was Made

Direct reply and queued follow-up delivery now share a bounded empty-interactive fallback that emits a visible error payload only when the run otherwise has no visible output. Existing silent paths remain silent for heartbeats, explicitly silent runs, message-tool-only delivery, and runs that already committed a message-tool, cron, approval, media, accepted child-session spawn, or other side-effect delivery.

User Impact

Users get a visible failure message when an interactive channel turn produces no deliverable output, instead of seeing the turn disappear. Message-tool-only, accepted child-session spawn, and known side-effect flows continue to avoid duplicate automatic replies.

Evidence

  • Claim proved: empty direct and follow-up interactive completions route a visible fallback while preserving silent/side-effect/message-tool-only exceptions, including accepted child-session spawn-only completions.
  • Commands / artifacts:
    • Head SHA: cbdf121
    • node scripts/run-vitest.mjs src/auto-reply/reply/agent-runner.misc.runreplyagent.test.ts src/auto-reply/reply/followup-runner.test.ts passed: 2 files, 151 tests.
    • git diff --check passed.
    • python .agents\skills\autoreview\scripts\autoreview --mode local exited 0 with autoreview clean: no accepted/actionable findings reported. The helper printed a Windows GBK decode thread exception after the clean result, but the command returned 0.
  • Observed result: focused tests cover main-run empty output, resolved message_tool_only suppression, follow-up empty fallback routing, source-delivered suppression, cron/approval suppression, compaction/progress paths that still finish with no visible final payload, and direct/follow-up acceptedSessionSpawns-only completions staying silent with no fallback routed.
  • Current-head CI proof: Real behavior proof passed on head cbdf121.
  • Not tested / proof gaps: no live Telegram Desktop proof was produced locally. The remaining real-channel proof requirement needs Mantis/maintainer-run Telegram proof or another redacted live channel artifact.

@clawsweeper

clawsweeper Bot commented Jul 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 4, 2026, 6:06 AM ET / 10:06 UTC.

Summary
Adds a shared empty-interactive reply fallback for direct runReplyAgent and queued follow-up runs, plus tests for silent side-effect exceptions.

PR surface: Source +121, Tests +238. Total +359 across 5 files.

Reproducibility: yes. at source level: current main has direct and follow-up empty-result exits that return without a visible payload, and the PR tests simulate those empty results. I did not establish a live Telegram reproduction in this read-only review.

Review metrics: none identified.

Root-cause cluster
Relationship: fixed_by_candidate
Canonical: #99712
Summary: The open issue is the canonical empty interactive completion report; this PR is one candidate fix and overlaps several sibling PRs for the same final reply invariant.

Members:

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

Merge readiness
Overall: 🦪 silver shellfish
Proof: 🦪 silver shellfish
Patch quality: 🐚 platinum hermit
Result: blocked until real behavior proof from a real setup is added.

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

Rank-up moves:

  • [P2] Add redacted Telegram Desktop, Mantis, or equivalent live-channel proof showing the fallback and the quiet message-tool-only or child-session-spawn exception.

Proof guidance:

  • [P1] Needs real behavior proof before merge: The PR body provides focused tests and green checks, but no redacted real Telegram or equivalent live-channel artifact showing the changed behavior; private details should be redacted before posting proof. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Mantis proof suggestion
Native Telegram proof would directly show the visible fallback and preserved silent side-effect cases that unit tests cannot fully prove. A maintainer can ask Mantis to capture proof by posting this exact PR comment:

@openclaw-mantis telegram desktop proof: verify an empty interactive completion sends the fallback while message-tool-only and child-session-spawn side effects stay quiet.

Risk before merge

  • [P2] The live channel delivery path is still unproven, so green tests do not prove Telegram users will see the fallback in the reported flow.
  • [P1] The patch intentionally changes final reply failure/routing behavior in session-adjacent code, so maintainers should see proof that side-effect-only cases remain quiet in a real channel.

Maintainer options:

  1. Capture real channel proof (recommended)
    Add a redacted Telegram Desktop, Mantis, or equivalent live-channel artifact showing the empty-completion fallback and quiet message-tool-only or child-session-spawn exception before merge.
  2. Accept maintainer-run proof
    A maintainer can satisfy the same gate by running the Telegram-visible scenario through Mantis and linking the artifact to this PR.
  3. Pause behind a proved sibling
    If this branch cannot get live proof, keep it paused or close it after a sibling or maintainer-owned replacement lands equivalent code with proof.

Next step before merge

  • [P1] Manual proof review remains; there is no narrow code defect for ClawSweeper repair after the accepted-spawn fix.

Security
Cleared: The diff changes TypeScript reply runtime and tests only; I found no concrete security or supply-chain concern.

Review details

Best possible solution:

Land one canonical shared final-output fallback PR, this branch or a sibling, only after redacted Telegram Desktop, Mantis, or equivalent live-channel proof covers the fallback and silent side-effect exceptions.

Do we have a high-confidence way to reproduce the issue?

Yes at source level: current main has direct and follow-up empty-result exits that return without a visible payload, and the PR tests simulate those empty results. I did not establish a live Telegram reproduction in this read-only review.

Is this the best way to solve the issue?

Yes for code shape: the final auto-reply and follow-up delivery boundaries have the right facts to distinguish empty failure from intentional silence or side effects. The remaining blocker is proof, not a better implementation location.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 79d2e568a0aa.

Label changes

Label justifications:

  • P1: The PR targets a real user-facing agent/channel workflow where accepted interactive turns can complete with no visible reply.
  • merge-risk: 🚨 message-delivery: The diff changes final reply delivery behavior and still lacks live channel proof for the visible fallback path.
  • merge-risk: 🚨 session-state: The fallback marks reply operations failed and interacts with queued follow-up/session outcomes, so session behavior needs proof before merge.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR body provides focused tests and green checks, but no redacted real Telegram or equivalent live-channel artifact showing the changed behavior; private details should be redacted before posting proof. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • mantis: telegram-visible-proof: Mantis should capture Telegram visible proof. The new fallback is visible Telegram/channel reply behavior that can be demonstrated in a short Telegram Desktop recording.
Evidence reviewed

PR surface:

Source +121, Tests +238. Total +359 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 3 121 0 +121
Tests 2 243 5 +238
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 364 5 +359

What I checked:

Likely related people:

  • steipete: Authored the auto-reply split and later extracted the follow-up delivery seam that own this final reply behavior. (role: feature-history contributor; confidence: high; commits: 72a9e58777ab, 43e6c923ded1; files: src/auto-reply/reply/agent-runner.ts, src/auto-reply/reply/followup-runner.ts, src/auto-reply/reply/followup-delivery.ts)
  • Sathvik Veerapaneni: Changed both reply runner paths while maintaining session transcript pointer behavior after compaction. (role: adjacent area contributor; confidence: medium; commits: d2e8ed3632ac; files: src/auto-reply/reply/agent-runner.ts, src/auto-reply/reply/followup-runner.ts)
  • vincentkoc: Recent reply-runner and release/live-smoke work makes him a plausible reviewer for message-delivery and session workflow risk, though not the primary owner of this seam. (role: recent adjacent contributor; confidence: low; commits: 3de42e946a2b, a35dcf608e8e; files: 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 (2 earlier review cycles)
  • reviewed 2026-07-04T08:08:00.173Z sha 167c062 :: needs real behavior proof before merge. :: [P1] Preserve accepted-session spawns before falling back
  • reviewed 2026-07-04T09:58:31.491Z sha cbdf121 :: needs real behavior proof before merge. :: none

@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. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. labels Jul 4, 2026
@qingminglong

Copy link
Copy Markdown
Contributor Author

@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. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Jul 4, 2026
@qingminglong

Copy link
Copy Markdown
Contributor Author

@openclaw-mantis telegram desktop proof: verify an empty interactive completion sends the fallback while message-tool-only and child-session-spawn side effects stay quiet.

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

Labels

mantis: telegram-visible-proof Mantis should capture Telegram visible proof. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: M status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

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

1 participant