Repository navigation
fix(feishu): suppress fallback after intentional silent DM replies - #109937
goutamadwant wants to merge 2 commits into
Conversation
5946282 to
ed42e49
Compare
|
Codex review: needs real behavior proof before merge. Reviewed July 17, 2026, 7:02 PM ET / 23:02 UTC. Summary PR surface: Source +10, Tests +74. Total +84 across 2 files. Reproducibility: no. live reproduction was run in this review; source inspection gives a high-confidence path because current main ignores Review metrics: none identified. 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:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Keep the ordered dispatcher fix, add a redacted real Feishu DM transcript or runtime logs proving both silence and recovery-fallback cases, then complete ordinary channel-owner review. Do we have a high-confidence way to reproduce the issue? No live reproduction was run in this review; source inspection gives a high-confidence path because current main ignores Is this the best way to solve the issue? Yes, conditionally: extending the existing Feishu dispatcher state at the public reply-runtime boundary is narrower than changing global silent-reply policy, and the assistant-message ordering guard avoids erasing a newer silent decision. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 781913025b6f. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +10, Tests +74. Total +84 across 2 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 (5 earlier review cycles)
|
2ed72ca to
5a26490
Compare
5a26490 to
07f43d4
Compare
|
Thank you @goutamadwant for identifying this exact Feishu The merged implementation covers your intentional silent-block case and the newer-silence/older-failure race, and adds explicit regression coverage ensuring an unindexed or later failed delivery still emits its legitimate recovery fallback. Verification included fail-first reproduction, all 221 Feishu dispatcher, bot, and durable-ingress tests, the complete changed-file gate, clean independent xhigh review, and passing exact-head hosted CI: https://github.com/openclaw/openclaw/actions/runs/30420254605. Your independent contribution and @openagent-ai’s original report are both credited in the merged PR. Closing this overlapping PR because the reported issue and changed production surface are now covered on |
Closes #109912
Additional instructions
MUST: Keep Allow edits from maintainers enabled for this PR so maintainers
can help update the branch when needed.
What Problem This Solves
Fixes an issue where Feishu DM users received a misleading "reply completed without visible content" warning when an agent intentionally returned
NO_REPLYthrough the message-end block-reply path.Why This Change Was Made
Feishu now records an explicitly silent block reply as intentional silence, matching the existing final-reply behavior without weakening the fallback for genuinely empty DM turns. The state is ordered by assistant-message index: an older queued delivery cannot erase a newer silent skip, while a same-message or later visible delivery still clears the skip so a real send failure receives the recovery fallback.
The regression suite mocks the dispatcher through its current public Plugin SDK seam, matching the channel-runtime boundary on
main.User Impact
Intentional
NO_REPLYresults in Feishu DMs remain silent. Users still receive the existing recovery warning when a same-message or later visible block or final reply fails to send.Evidence
NO_REPLYarrives as{ kind: "block", reason: "silent" }; before this patch,ensureNoVisibleReplyFallback()returnedtrueand sent the warning.node scripts/run-vitest.mjs extensions/feishu/src/reply-dispatcher.test.tspassed all 95 tests on Node 24.16.0../node_modules/.bin/oxfmt --check extensions/feishu/src/reply-dispatcher.ts extensions/feishu/src/reply-dispatcher.test.tspassed../node_modules/.bin/oxlint extensions/feishu/src/reply-dispatcher.ts extensions/feishu/src/reply-dispatcher.test.tspassed.Disclosure: AI was used to understand the codebase and review the fix.