Repository navigation
fix(feishu): migrate delivery-trace goldens off the retired capture seam - #110775
lsr911-code wants to merge 1 commit into
Conversation
PR openclaw#110095 moved inbound turn execution into core and updated the msteams/slack delivery-trace suites to read dispatcherOptions and delivery.deliver from the dispatcher's return value, but missed the feishu suite. Its createReplyDispatcherWithTyping capture mock never fires now, so all five goldens fail on unmodified main and block the ci-gate for any PR touching the Feishu reply-dispatcher surface. Closes openclaw#110744 Co-Authored-By: Claude <[email protected]>
|
Codex review: needs maintainer review before merge. Reviewed July 18, 2026, 11:37 AM ET / 15:37 UTC. Summary PR surface: Tests -12. Total -12 across 1 file. Reproducibility: yes. from source and supplied terminal evidence: current main retains a mock that waits for a dispatcher call the refactored Feishu factory no longer makes, producing the documented deterministic error across five scenarios. 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:
Next step before merge
Security Review detailsBest possible solution: Merge this narrow test-harness migration after normal required checks, allowing the linked Feishu CI-regression report to close through the PR’s existing closing reference. Do we have a high-confidence way to reproduce the issue? Yes from source and supplied terminal evidence: current main retains a mock that waits for a dispatcher call the refactored Feishu factory no longer makes, producing the documented deterministic error across five scenarios. Is this the best way to solve the issue? Yes: using the factory’s returned dispatcher options and delivery function is the narrowest maintainable repair because it follows the already-merged Microsoft Teams and Slack harness contract rather than restoring an obsolete runtime call. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against faf3dbdda833. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Tests -12. Total -12 across 1 file. 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
|
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
|
Thank you for identifying the Feishu delivery-trace fixture left on the retired dispatcher capture seam. The same one-file migration is already fixed and shipped by #110838 (50fdbc5), included in v2026.7.2-beta.4. The canonical test now reads created.dispatcherOptions and uses created.delivery.deliver, covering all five streaming, final, cancellation, rate-limit, and overflow scenarios. The linked issue #110744 is already closed. Closing this overlapping test-only PR as implemented on main; thank you. |
What Problem This Solves
extensions/feishu/src/delivery-trace.test.tsfails deterministically on unmodifiedmain— all five goldens throwdispatcher options were not captured. Because thechecks-node-changed-*dependency graph pulls this shard in, the requiredopenclaw/ci-gatecheck goes red for any PR that touches the Feishu reply-dispatcher surface (e.g. #110730 hit this on an unrelated diff).Why This Change Was Made
PR #110095 (refactor(channels): move inbound turn execution into core) changed
createFeishuReplyDispatcherto returndispatcherOptions/delivery/replyOptionsfor core to wire up — it no longer callscreateReplyDispatcherWithTypingitself. The same PR migrated the sibling msteams and slack delivery-trace suites off the old capture-seam mock, but missed the feishu suite, whosevi.mock("openclaw/plugin-sdk/reply-runtime")capture never fires anymore.This completes that migration for feishu, mirroring the exact pattern #110095 applied to
extensions/msteams/src/delivery-trace.test.ts: drop the retired capture-seam mock and build the step-driver options directly from the dispatcher's own return value (created.dispatcherOptions+created.delivery.deliver). The feishu plan options already exposeonReplyStart/onIdle/onCleanup, so the scenario step wiring is unchanged, and the committed golden traces stay byte-identical — no golden refresh needed.Changes
extensions/feishu/src/delivery-trace.test.ts— remove the retiredcreateReplyDispatcherWithTypingcapture-seam mock and thetraceState.dispatcherOptionsslot; buildoptionsfromcreated.dispatcherOptionsspread pluscreated.delivery.deliver, matching the msteams/slack pattern from refactor(channels): move inbound turn execution into core #110095Evidence
Test command
Test output
Before (unmodified main, matching the issue report):
After (this change), including the msteams/slack sibling suites as regressions:
Behavior
Related
Closes #110744
Follow-up to #110095 (which migrated msteams/slack but missed feishu); unblocks PRs like #110730
AI Assistance Disclosure
Implemented with AI assistance (Claude Code). I reviewed and understand every changed line; the evidence above is real local terminal output (Node 24.15.0, Windows).