Repository navigation
fix(feishu): deliver captioned media with block streaming disabled - #191585
Conversation
Admit media-bearing blocks to the existing caption and attachment delivery path while preserving text-only block suppression. Co-authored-by: forrystudio <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Include the media kind required by WebMediaResult. Co-authored-by: forrystudio <[email protected]>
|
Codex review: needs maintainer review before merge. What this changesAllow captioned media blocks through Feishu delivery when completed-block streaming is disabled. Example: A block contains “Chart ready” and https://example.com/chart.png with streaming.block.enabled set to false.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR fixes a current Feishu delivery defect with a focused change to the existing owner; no actionable patch defects were found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Feishu reply dispatcher receives queued reply payloads, selects post or card rendering, sends attachments, and returns accepted-delivery receipts to core. flowchart LR
A[Reply payload] --> B[Core reply queue]
B --> C[Feishu dispatcher]
C --> D[Caption sender]
D --> E[Media sender]
E --> F[Feishu API]
F --> G[Delivery receipt]
Technical reviewBest possible solution: Retain the one-condition admission repair and existing delivery owners, leaving the broader preview-replacement work separately scoped. Do we have a high-confidence way to reproduce the issue? Current-main source deterministically skips a plain captioned media block with completed-block streaming disabled; this read-only review ran no target code. Is this the best way to solve the issue? The condition change is the smallest complete repair for the stated admission defect and reuses existing caption, attachment, and partial-delivery accounting. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against abeffef67712. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0, Tests +88, Other +2. Total +90 across 3 files. Added test files: 1. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 2, 2026, 8:51 PM ET / November 3, 2026, 01:51 UTC. |
Keep the real module exports while overriding client creation at the SDK boundary. Co-authored-by: forrystudio <[email protected]>
|
Merged via squash.
|
…penclaw#191585) Feishu core delivers attachment blocks even when text block streaming is disabled. Admit captioned media to the existing caption and native attachment delivery path instead of returning before either send. The 89 additional regression-test lines exercise the real dispatcher queue, caption sender and image uploader through a mocked Feishu SDK client in preview modes off and partial, without an injected final reply or production test seams. Co-authored-by: forrystudio <[email protected]>
…191585) Feishu core delivers attachment blocks even when text block streaming is disabled. Admit captioned media to the existing caption and native attachment delivery path instead of returning before either send. The 89 additional regression-test lines exercise the real dispatcher queue, caption sender and image uploader through a mocked Feishu SDK client in preview modes off and partial, without an injected final reply or production test seams. Co-authored-by: forrystudio <[email protected]> (cherry picked from commit 569ca48) Release adaptation: inline the existing public-SDK runtime fixture because reply-dispatcher.test-support.ts is absent on this release baseline. Keep real dispatcher, caption sender, media classifier and uploader coverage. Companion audit: later #192469 (monotonic retry window) and #192482 (preview tail deduplication) do not affect captioned non-streaming admission; not applicable to this fix. #197656 removes obsolete allocation records; retain the allocation for this release's existing ratchet. No PR-number follow-ups found through 7bccde6. Existing dispatcher producers, senders and reply-runtime exports are present-equivalent; no storage changes. Proof: git diff --check passed. Focused Vitest/typecheck/lint unavailable: this isolated worktree has no node_modules; no dependencies were installed. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]> (cherry picked from commit 52e15d4e681397a7b596b5252688376a9979897d)
Port Telegram callbacks, hook session keys, private-topic approvals and interactive widgets with complete send/edit/route security companions. Include Feishu captioned media, iOS permission Sendable callbacks, WebKit animation/menu retirement and pending automations props handling. Keep Matrix malformed formatted-mention parsing linear-time. Adapt the 11.4 equivalents to the fixed beta baseline where available. Source PRs: #196217, #191585, #196822, #194027, #197519, #198038, #196991, #198380, #198658, #184432. Companion scope: #191647, #192162, #198022, #197271, #194146; #197670 is folded into #197519 equivalent. (cherry picked from commit 928c118) (cherry picked from commit 569ca48) (cherry picked from commit efa744e) (cherry picked from commit c301da9) (cherry picked from commit 641c4d5) (cherry picked from commit b9d3fb4) (cherry picked from commit a213a51) (cherry picked from commit ec46689) (cherry picked from commit 779d22e) (cherry picked from commit 129ccc3) (cherry picked from commit 849c050) (cherry picked from commit b22f35f) (cherry picked from commit 8b414e9) (cherry picked from commit 01ecda4) (cherry picked from commit f978e54) (cherry picked from commit 6e60479) (cherry picked from commit ec7b49a) (cherry picked from commit 1d72ad0) (cherry picked from commit 5e2c66f) (cherry picked from commit dfb6454) Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit f7c581c7f8bf0e57c7d8799e928a121b24462450) Co-authored-by: vincentkoc <[email protected]>
Supersedes #145487, thanks @forrystudio
What Problem This Solves
Fixes missing captions and attachments in Feishu when completed-block streaming is disabled and a plain captioned media block arrives.
User Impact
Users receive both the caption and attachment without enabling text block streaming. No configuration changes or migration are required.
Why This Change Was Made
Admit media-bearing blocks to the existing caption and native attachment delivery path. Text-only block suppression is preserved. The production change replaces one line, with net zero LOC. This focused replacement leaves existing active-preview settlement behavior unchanged.
Evidence
8654e159b99e545d5fd982791bafdcd988432611, both regression cases fail because neither a caption nor an image API request is made. The baseline owner was verified by SHA-256 before the red run.reply-dispatcher.media.test.tsandreply-dispatcher.test.ts. The new cases use the real dispatcher queue, caption sender, signature routing and image uploader with a mocked Feishu SDK client and media loader. Preview modesoffandpartialare covered without an active preview or an injected final payload; accepted delivery and fallback suppression are asserted.openclaw/ci-gate. The final Bun regression cases took 8 ms and 1 ms.git diff --checkpass. The 89-line test allocation is needed for the requested regression through real senders at the mocked SDK boundary, without production test seams.cff0f0fb132057f1c1565f1272a8539b7418bd6cagainst8654e159b99e545d5fd982791bafdcd988432611, with full dispatcher, client, delivery-result and fixture context: no actionable findings.pr-simplifycompleted.Contributor code was read with
gh pr view/gh pr diff; the contributor head was never checked out or run. No live Feishu API or inbound/model-loop delivery claim is made.