Repository navigation
fix(feishu): deliver captioned media with block streaming disabled - #145487
forrystudio wants to merge 2 commits into
Conversation
|
🦞👀 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. |
|
Codex review: needs maintainer review before merge. Reviewed October 5, 2026, 5:25 AM ET / 09:25 UTC (Revision 8). ClawSweeper reviewWhat this changesThe Feishu plugin delivers captions and attachments when text block streaming is disabled and replaces an existing preview with the completed caption. Merge readiness✅ Ready for maintainer review This PR remains useful: current main still skips the reported Feishu media block, and the merged core recovery fixes do not replace this repair. No blocking correctness or security findings remain; the recorded real Feishu proof covers the unchanged production patch. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw sends completed agent reply payloads to the Feishu plugin, which chooses posts, streaming cards, and attachment sends. Delivery receipts tell core which content actually reached the conversation. flowchart TD
A[Agent reply payload] --> B[Feishu reply dispatcher]
B --> C[Streaming settings and active preview]
C --> D[Caption post or completed card]
B --> E[Native attachment sender]
D --> F[Delivery receipts]
E --> F
F --> G[Core final reply accounting]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +6, Tests +226. Total +232 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep captioned-media handling in the existing Feishu dispatcher, using its established senders and preview settlement without adding configuration or SDK surface. Do we have a high-confidence way to reproduce the issue? Yes, from source: deliver a plain caption with media as a block while Feishu block streaming is disabled; current main returns without sending it. This review did not run a current-main reproduction. Is this the best way to solve the issue? Yes. The patch repairs the plugin's admission and preview handling through existing delivery owners while preserving text-only suppression and partial-send accounting. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 10080eaf91bc. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (7 earlier review cycles)
|
10f28b1 to
114be5d
Compare
|
@clawsweeper re-review The PR body now includes redacted real Feishu API/runtime evidence from exact head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Resolved the sole remaining Revision 3 request: renamed the PR body's |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Thanks @forrystudio! The focused captioned-media delivery fix has landed in #191585 with your coauthor credit. Closing this as superseded. |
What Problem This Solves
Fixes an issue where Feishu users receive a missing or delayed caption and attachment when text block streaming is disabled. For example, a plain caption plus a chart is delivered by core as a media-bearing block, but Feishu skips that block unless card rendering is selected. An existing preview can also retain draft text instead of the final caption.
On the affected 2026.9.3/2026.9.4 core path, a skipped block could additionally cause the final payload to be deduplicated and the user to receive the no-reply fallback. The newer core delivery-receipt fixes in #145428 and #148301 protect final fallback independently; this PR fixes Feishu's handling of the original media-bearing block.
Why This Change Was Made
Deliver captioned media blocks through the existing Feishu caption and attachment senders. If the turn already has an active preview, finish that same preview with the authoritative caption, replacing any longer draft. Preserve text-only block suppression, existing partial-delivery error handling, and the public SDK contract.
User Impact
Users receive the caption and attachment with block streaming disabled. A preview can finish correctly even when core does not send a separate final payload. No configuration migration is required.
Evidence
04aa4879282: all 195 dispatcher tests passed, including two new tests using the real reply dispatcher queue,markComplete(),waitForIdle(), and deferred delivery finalization. These prove completion without an extra final payload; they do not inject a duplicate final.no-misused-promisesfindings reproduce identically after restoring the baseline test file; the full backport test-file lint lane is not claimed green.e698709b52508f5129d185e925bac0f40cbc22aa42b5f7c68df505af0d171d3d. The reviewed artifact was deployed through the existing managed-package patch workflow on a dedicated test account, preserving the installed core and semantic configuration. All archived files were verified against the installed package, and the actual loaded root was bound to that package. Gateway readiness and the Feishu channel connection passed, with zero reconnect attempts. This proves installed artifact identity and startup, not inbound/model-loop or live-message delivery behavior.openclaw/ci-gatecompleted successfully for04aa487928236d8a99a938dd273b39e532d53084, with no failed or pending checks. This head adds tests only to the previously reviewed production change at114be5dd4836972c6b29b3d741b002416435d5b5.Each historical case had two accepted message IDs and visible-reply state true. Readback found exactly one marker-bearing caption in the bounded window. Image assertions cover returned receipts, not an audit of unrelated images. The recorded source producer SHA-256 was
1635e9c249a4ac53d50ac4640b78c7b05c4904f543c077e2bf6aa5d126b764f8.The historical live proof exercises the source dispatcher and real transport, not normal inbound/model processing or the installed Gateway bundle. The September 15 test deployment does not add a new live-message claim. API readback is not a client screenshot. Failure injection is covered by automated tests. No production service, configuration, or managed Skill is changed by this PR validation.
An earlier broad Windows lane on the pre-rebase revision was not green: 100/102 files passed, with doctor cleanup
EPERMfailures and one setup SecretRef expectation that reproduced on the clean base. The focused results above are the current-head checks.