Repository navigation
fix(feishu): DMs send a spurious no-visible-reply fallback after an intentional silent NO_REPLY - #110730
fix(feishu): DMs send a spurious no-visible-reply fallback after an intentional silent NO_REPLY#110730YangManBOBO wants to merge 1 commit into
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 18, 2026, 12:54 PM ET / 16:54 UTC. Summary PR surface: Source 0, Tests +56. Total +56 across 3 files. Reproducibility: yes. source-reproducible: the current Feishu callback only records final skips while the shared path can report NO_REPLY as a silent block skip, leaving the fallback eligible. 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
Maintainer decision needed
Security Review detailsBest possible solution: Keep the narrow NO_REPLY change, obtain redacted real Feishu DM proof for both silent and genuinely empty outcomes, and let only one PR carry the delivery-trace seam migration. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: the current Feishu callback only records final skips while the shared path can report NO_REPLY as a silent block skip, leaving the fallback eligible. Is this the best way to solve the issue? Yes for the NO_REPLY bug: recording only an already-normalized silent block skip is the narrow owner-local fix; the unrelated trace migration should be coordinated with its existing focused PR. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 837db49ebb24. Label changesLabel justifications:
Evidence reviewedPR surface: Source 0, Tests +56. Total +56 across 3 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)
|
|
Added stronger real-behavior evidence: two new regression tests that drive the actual production dispatch pipeline ( Also: the failing @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
d3bdf8e to
9787e01
Compare
|
Rebased onto latest `main` (`63a32e3`) and reconfirmed on the rebased head, with dependencies reinstalled:
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
For maintainers: ClawSweeper's remaining ask is a redacted real Feishu DM transcript/recording/runtime log showing the after-fix behavior. I don't have access to a live Feishu workspace or bot credentials from this AI-assisted contribution flow, so I can't produce that directly — ClawSweeper's own review already acknowledges this is "contributor-owned real Feishu proof, which an automated repair worker cannot safely generate on the contributor's behalf." What I could produce instead, as the closest available substitute:
If a maintainer (or anyone with a Feishu test bot handy) can capture a quick redacted DM transcript confirming: (1) an intentional |
Feishu DM 中意图静默的 NO_REPLY 会经 block 路径跳过,但 onSkip 原先只记录 final,导致误发“无可见内容”兜底。现将 silent 的 block skip 一并纳入状态,并补充直接回调与完整调度管线回归测试。 同时按 openclaw#110775 / openclaw#110095 对 msteams/slack 的同一模式,移除 feishu delivery-trace 中已失效的 createReplyDispatcherWithTyping 捕获缝,改为直接使用 createFeishuReplyDispatcher 返回的 dispatcherOptions/delivery,修复 main 上既有的金标失败并解除 ci-gate 阻塞。 Related: openclaw#109912 Closes: openclaw#110744
9787e01 to
8e2b01c
Compare
|
Squashed into a single commit and incorporated the delivery-trace capture-seam migration (same approach as #110775 / #110095 for msteams/slack), plus leftover afterEach/afterAll cleanup for the retired mock. Local validation on this head: @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Thank you for isolating the silent Feishu NO_REPLY block path and for adding full-dispatch regression coverage. Closing as a duplicate of #109937, which preserves the same silent-block fix while also protecting assistant-message ordering. The separate Feishu delivery-trace fixture repair included here is already on main in #110838 (commit 50fdbc5), and its tracking issue #110744 is closed; current extensions/feishu/src/delivery-trace.test.ts directly uses created.dispatcherOptions and created.delivery.deliver. The underlying user-visible bug #109912 remains open until the canonical fix is independently verified and landed. Thank you again for the useful reproduction and tests. |
Related: #109912
Closes: #110744
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
NO_REPLY(block-kind skip was not recorded byonSkip).extensions/feishu/src/delivery-trace.test.tsfails on unmodifiedmainwithdispatcher options were not captured, blockingopenclaw/ci-gatefor any PR that pulls in the Feishu reply-dispatcher shard.Why This Change Was Made
NO_REPLY fallback: Feishu's default
blockReplyBreak: "message_end"routes the final assistant text throughsendBlockReply(kind: "block"). The shared normalizer correctly reports{ kind: "block", reason: "silent" }forNO_REPLY, but Feishu'sonSkiponly recordedkind === "final", soensureNoVisibleReplyFallbackstill fired. The fix also captures silent block skips; non-silent empty block skips still get the fallback.delivery-trace: PR #110095 moved inbound turn execution into core and migrated msteams/slack delivery-trace suites off the
createReplyDispatcherWithTypingcapture seam, but missed feishu. This applies the same pattern as #110775 / #110095 (msteams): build step-driver options fromcreated.dispatcherOptions+created.delivery.deliver, and drop the retired mock (plus leftoverafterEach/afterAllcleanup for that seam).User Impact
NO_REPLYin Feishu DMs no longer produces a confusing fallback; genuinely empty completions still do.Evidence
This PR is AI-assisted (built with Cursor/Claude); I reviewed and understand the change.
NO_REPLY — full dispatch-pipeline before/after
delivery-trace — before/after (mirrors #110775)
Lint/format
Touched files pass
oxfmt --checkand oxlint for the extension tsconfig.Diff scope:
reply-dispatcher.ts(one-lineonSkipwiden),reply-dispatcher.test.ts(callback + full-pipeline regressions),delivery-trace.test.ts(capture-seam migration).