Skip to content

fix(feishu): promote send attachment aliases instead of silent drop - #125664

Merged
obviyus merged 1 commit into
openclaw:mainfrom
SunnyShu0925:fix/feishu-send-attachment-drop-112244
Aug 26, 2026
Merged

obviyus merged 1 commit into
openclaw:mainfrom
SunnyShu0925:fix/feishu-send-attachment-drop-112244

Conversation

@SunnyShu0925

@SunnyShu0925 SunnyShu0925 commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Closes #112244

What Problem This Solves

When an agent sends a Feishu message with an attachment via a path/URL-style parameter (e.g. filePath, mediaUrl, image), the attachment was silently dropped and the send returned ok:true on the text-only branch — the agent believed the attachment was delivered when it was not. This promotes every attachment alias to a single canonical media URL, rejects attachment intent Feishu cannot represent (including present-but-malformed media source values), and propagates media-upload failures to the action caller, so the send either delivers the attachment or fails visibly.

  • Problem: The Feishu send action handler read only params.media. A direct Gateway message.action send may arrive with attachment aliases (path/filePath/fileUrl/image/mediaUrl/mediaUrls/attachments[]) instead of the canonical media field; those aliases were never promoted, so media was empty, the handler took its text-only success branch, and the attachment was lost while the action reported success. The Gateway action contract resolves both camelCase and snake_case spellings (mediaUrl/media_url, filePath/file_path) before a message action reaches a channel, and buffer/base64 may arrive nested inside attachments[] entries rather than only at the top level. A second silent-success class existed downstream: when a promoted alias reached feishuOutbound.sendMedia but the upload failed, the outbound layer caught the error and fell back to a text send, returning ok:true while the attachment never arrived.
  • Solution: Add resolveFeishuSendAttachmentMedia in the Feishu channel (mirrors the existing Mattermost resolveMattermostSendAttachmentMedia resolver) that collects every alias into one canonical mediaUrl, honors both camelCase and snake_case spellings (so media_urls/file_path/file_url are no longer invisible), accepts a single string in place of a mediaUrls array, scans each attachments[] entry for unsupported buffer/base64 payloads (not only the top level), rejects unsupported buffer/base64 payloads, rejects the file attachment-intent parameter (the linked issue's literal reproduction { message, file: "/path/to/script.py" } — file is deliberately excluded from the shared BASE_ACTION_MEDIA_SOURCE_PARAM_KEYS contract because its meaning is ambiguous, so it is rejected as an unsupported attachment intent rather than silently swallowed on the text-only success branch), rejects multiple attachments (Feishu delivers one media item per message), and rejects present-but-malformed media source values such as media: {} or mediaUrls: [{}] (a present non-string value is an attachment-intent signal the resolver cannot promote to a mediaUrl; treating it as absent would recreate the silent text-only ok:true success this PR removes). For the downstream class, feishuOutbound.sendMedia accepts an optional propagateMediaUploadFailure flag; the direct send action sets it so a media-upload failure is re-thrown to the caller as a controlled failure instead of being converted to a fallback text success.
  • What changed: extensions/feishu/src/channel.ts (new resolveFeishuSendAttachmentMedia + collectFeishuSendAttachmentMedia + toFeishuSnakeCaseKey/readFeishuParam for camelCase-or-snake_case lookup + readFeishuParamPresence to distinguish absent / present / malformed values + hasFeishuUnsupportedIntentValue so a present NON-string value for the unsupported file/buffer/base64 intent keys is rejected instead of silently skipped via string coercion; send action now calls it instead of readFeishuMediaParam, and passes propagateMediaUploadFailure: true to sendMedia scoped to ctx.action === "send" only so thread-reply keeps its fallback-text behavior); extensions/feishu/src/outbound.ts (new exported FeishuOutboundSendMedia type; feishuOutbound.sendMedia accepts propagateMediaUploadFailure and, when set, re-throws a wrapped Feishu send could not deliver the requested media attachment error on upload failure instead of falling back to text; when the caption was already delivered before the upload failed, the re-thrown error is the repository's existing createChannelPartialDeliveryError carrying the caption's message id, so the caller knows the text is visible and does not retry/duplicate it); src/gateway/server-methods/send.ts (createGatewayInflightUnavailableFailure detects isChannelPartialDeliveryError and preserves its deliveryResult on error.details.partialDelivery with retryable:false, so the caption receipt crosses the Gateway message.action boundary instead of being dropped by String(err) — one change covering all three call sites that route through this failure helper); extensions/feishu/src/channel.test.ts (regression tests for camelCase alias promotion, snake_case alias promotion, media_urls array, single-string mediaUrls, top-level and nested buffer/base64 rejection, mixed supported+unsupported rejection, top-level and nested file attachment-intent rejection, blank-payload ignore, blank-file ignore, multi-attachment rejection, malformed media source rejection for top-level/nested media: {}, mediaUrls: [{}], and non-string scalar values with blank-string-still-passes coverage, malformed non-string unsupported-intent rejection for top-level/nested file: {}/buffer: {}/base64: {}/file: 42, the propagateMediaUploadFailure: true assertion scoped to the send action's sendMedia call, and a thread-reply regression asserting the flag is absent and fallback is retained); extensions/feishu/src/outbound.test.ts (regression tests that propagateMediaUploadFailure re-throws on upload failure without a fallback text send, and that the default fallback behavior is unchanged when the flag is absent, plus a caption-preservation case asserting the re-thrown error is a ChannelPartialDeliveryError carrying the caption message id with visibleReplySent:true, and a no-caption case asserting a plain wholly-failed error); src/gateway/server-methods/send.test.ts (regression tests that message.action returns the caption receipt as error.details.partialDelivery with retryable:false when dispatch throws a ChannelPartialDeliveryError, and that a plain dispatch error stays retryable:true with no partial-delivery details).
  • What did NOT change: The shared Gateway hydration layer (hydrateAttachmentParamsForAction), the outbound runner path, thread-reply behavior (still text-only via readFeishuMediaParam), and every other channel. The closed PR fix(gateway): resolve canonical media params on message.action dispatch #112490 attempted a shared-layer normalization helper that no longer exists after the message.action dispatch refactor; this PR targets the current main directly at the Feishu boundary.

Why This Change Was Made

The fix is placed at the Feishu channel boundary rather than the shared Gateway hydration layer because the only channel confirmed to silently drop attachments and return success is Feishu: Mattermost already normalizes all aliases in its own resolveMattermostSendAttachmentMedia, iMessage expects attachments pre-hydrated to buffer and fails loudly on a raw path, and qa-channel/clickclack throw when mediaUrl is absent. A shared-layer fix would require proving it does not perturb those channels for a benefit that is currently Feishu-only; the channel-boundary fix localizes the blast radius and reuses a pattern maintainers have already accepted (Mattermost).

  • Best fix: Yes for the reported issue. The Feishu single-attachment limit and the unsupported-buffer constraint are Feishu-specific contract details that belong at the Feishu boundary, not in a channel-agnostic shared layer.
  • Alternative: A shared-layer normalization in hydrateAttachmentParamsForAction's send branch (originally considered). Rejected because it would need a proof of non-interference with Mattermost/iMessage/qa-channel and could not enforce Feishu's single-attachment contract without leaking channel-specific policy upward.
  • Refactor: No larger refactor needed. The new resolver mirrors an established sibling shape.
  • Risk / non-goals: thread-reply still rejects media via the existing text-only path (no change). Sandbox path resolution is not added at the channel layer (Mattermost does not do this either); the resolved mediaUrl is passed to feishuOutbound.sendMedia, which already enforces mediaLocalRoots/mediaAccess on load.

User Impact

After this change, asking an agent to send a Feishu message with a file path, URL, or image attachment either delivers the attachment or returns a clear error — it no longer reports success while silently sending text only. Agents that acted on the false ok:true (e.g. believing a file was shared) will now see an explicit failure for unsupported payloads. No configuration changes; other channels are unaffected.

Evidence

Real Feishu delivery proof (final head 87d227b33f2, rebased onto latest main + exact-head proof refresh)

Refreshed redacted proof from the current PR head 87d227b33f2d8866b2cf3e09ccab7ad4e55ee48f. This head is the fifteenth-review head cc6acc02bc8 rebased onto the latest origin/main (the prior head 9221e7d had been trimmed down to alias-promotion-only and silently dropped the malformed-rejection guard and the upload-failure propagation that earlier review rounds required, which reopened two P1 false-success paths; this head restores the full cc6acc02bc8 implementation — readFeishuParamPresence malformed detection, propagateMediaUploadFailure, the FEISHU_PROPAGATE_MEDIA_UPLOAD_FAILURE_MARKER, and the outbound.ts changes — on top of current main), plus the seventeenth-review P1 fix (preserve a delivered caption as partial delivery when the media upload fails), the eighteenth-review P1 fix (return that caption receipt through the Gateway message.action boundary instead of dropping it via String(err)), and the nineteenth-review P1 fix (reject present non-string values for the unsupported file/buffer/base64 attachment-intent keys instead of silently skipping them and falling through to a text-only ok:true). The twentieth-review rebase onto current origin/main resolved the one merge conflict in createGatewayInflightUnavailableFailure by composing both Gateway error outcomes on one boundary: a partial-delivery error still yields error.details.partialDelivery + retryable:false, and a recovery-owned OutboundDeliveryError (queue-owned retry) still yields error.details.code = OUTBOUND_DELIVERY_QUEUED, so the queued-delivery contract from main is preserved alongside the partial-delivery receipt (the two are mutually exclusive — partial delivery takes priority because an already-visible caption must not be retried). The twenty-first-review fixes address two further P1 findings: (1) the nested attachments[].image alias is now collected just like the top-level image alias (it was previously omitted from the nested attachment key list, so attachments: [{ image: "/tmp/a.png" }] silently fell through to text-only ok:true); (2) retryable is now set to false only on a partial-delivery receipt and omitted otherwise, restoring main's non-retryable shape for ordinary and queued failures (the prior retryable: !partialDelivery inadvertently marked every non-partial failure as retryable: true, which Gateway clients treat as permission to replay an indeterminate send). The real-Feishu transcript below (scenarios 5/9/10) was captured against the immediately-prior head df3de8c96cb and is retained because the seventeenth-, eighteenth-, and nineteenth-review changes do not alter any of those three code paths — scenario 5 is a successful filePath delivery (no upload failure), scenario 9 throws in the resolver before any caption send, and scenario 10 targets a document comment that never uploads — so their recorded messageIds remain valid on 87d227b33f2; the caption-preservation behavior at the outbound boundary is covered by scenario 11 (real Feishu), the Gateway-boundary serialization of that receipt into error.details.partialDelivery + retryable:false is covered by the paired regression test in src/gateway/server-methods/send.test.ts (pre-fix fail / post-fix pass), and the malformed non-string attachment-intent rejection is covered by scenario 12 (real Feishu, this head) below. Covers the unchanged direct-send attachment delivery (scenario 5, run so the transcript names the current head lineage), the twelfth-review P1 fix (scenario 9: malformed attachment containers and non-record entries now rejected before the text branch), the fifteenth-review P1 fix (scenario 10: a document-comment target with the propagation marker set now renders the media URL as a visible comment link and returns a success receipt instead of throwing), the eighteenth-review P1 fix (scenario 11: a direct send with a delivered caption and a controlled media failure now surfaces the real caption message id as a partial-delivery receipt instead of a receipt-less error), and the nineteenth-review P1 fix (scenario 12: present non-string file/buffer/base64 attachment-intent values now rejected before the text branch instead of silently skipped). Scenarios 5, 9, 11, and 12 are driven through feishuPlugin.actions.handleAction (the Gateway send dispatch path) with a real Feishu app (cli_aac95aea7f219cff, bot "SunnyApp"), a real media file on disk, and a real chat target (oc_8f9272069c4a73e6ab8fef16fa45a0ba); scenario 10 drives feishuOutbound.sendMedia directly against a real document-comment target (comment:docx:Ngd0ddcOnolCysxkexBcKjhNnH8:7675663856085028021, the same comment resolved in the tenth-round proof). The outbound sendMedia path is NOT mocked. App credentials were supplied via a 0600-perm temp file read by the proof script (never on a command line or in shell history) and removed after the run; the reply added by scenario 10 was deleted via the Feishu DELETE /drive/v1/files/{file_token}/comments/{comment_id}/replies/{reply_id} API after the run; secrets are not present in any output below.

=== 5. LEGAL filePath alias through the final-head adapter (positive delivery, re-run on df3de8c) ===
A supported alias (`filePath`) is driven through feishuPlugin.actions.handleAction on the final head
(87d227b33f2 lineage, rebased onto latest main; fifteenth-review tree plus the seventeenth-/eighteenth-/nineteenth-review caption-receipt and malformed-intent fixes; transcript re-run on the immediately-prior head df3de8c since scenario 5 has no upload failure and is unaffected by the caption-receipt / malformed-intent changes), traversing every changed function in this PR:
  handleAction
    -> resolveFeishuSendAttachmentMedia   (filePath alias promoted to mediaUrl)
    -> feishuOutbound.sendMedia           (propagateMediaUploadFailure: true, scoped to send)
    -> sendMediaFeishu                    (extensions/feishu/src/media.ts)
      -> loadWebMedia                     (local file read under mediaLocalRoots)
      -> uploadFileFeishu                 (real im/v1/files)
      -> sendFileFeishu                   (real im/v1/messages, msg_type=file)
input: send { to: chat:oc_8f9272069c4a73e6ab8fef16fa45a0ba, message, filePath: "/tmp/openclaw-proof-125664/proof-attachment.txt" }
result: ok:true, channel:"feishu", action:"send"
        messageId="om_x100b67b55822990cde9d3e11d0594ae"
        receipt.parts[0].kind = "media"  (NOT text-only)
        receipt.parts[0].platformMessageId = "om_x100b67b55822990cde9d3e11d0594ae"
        target = { kind:"chat", id:"oc_8f9272069c4a73e6ab8fef16fa45a0ba" }
        A supported alias traverses the full final-head adapter path to Feishu on the current head.

=== 9. MALFORMED attachment container / non-record entry (twelfth-review P1 fix: visible rejection) ===
A declared `attachments` field that is not an array, or an array with a non-record entry, expresses
attachment intent the resolver cannot promote. Pre-fix the resolver inspected `attachments` only when
it was an array and `continue`-d past non-record entries, so these inputs left no media candidate and
no error flag; with text present the direct send fell through to a text-only `ok:true` receipt — the
exact silent drop this PR removes. Post-fix the resolver rejects these declared intents before the
text branch. Driven through the real handleAction dispatch path (outbound NOT mocked); the rejection
happens in resolveFeishuSendAttachmentMedia before any Feishu API call, proving the guard fires on
the live code path rather than only under unit-test mocks.

9a. object attachments container
input: send { to: chat:oc_8f9272069c4a73e6ab8fef16fa45a0ba, message,
               attachments: { media: "/tmp/openclaw-proof-125664/proof-attachment.txt" } }
result: threw (NOT ok:true):
        "Feishu send supports media attachments through media, mediaUrl, path, filePath, fileUrl,
         image, mediaUrls, or attachments[] with one of those fields; a present malformed media
         source value is not supported — use a string path/URL (or a string array for mediaUrls)
         instead."
        No sendMessageFeishu, no sendMedia, no ok:true.

9b. attachments array with null entry
input: send { to: chat:oc_8f9272069c4a73e6ab8fef16fa45a0ba, message, attachments: [null] }
result: threw (NOT ok:true): same malformed-intent error as 9a.

9c. attachments array with non-record entry
input: send { to: chat:oc_8f9272069c4a73e6ab8fef16fa45a0ba, message, attachments: [42] }
result: threw (NOT ok:true): same malformed-intent error as 9a.

=== 10. DOCUMENT-COMMENT target + propagation marker -> visible media-link fallback (fifteenth-review P1 fix: NOT a throw) ===
A direct `send` action sets propagateMediaUploadFailure unconditionally. The tenth-round head threw
"document comments cannot host media attachments" whenever a direct send with media targeted a document
comment, which removed the established main behavior of rendering the media URL as a visible clickable
comment link — that visible link is NOT the silent text-only ok:true drop issue #112244 removes. The
fifteenth-review P1 fix reverts that throw: the comment target keeps its visible media-link fallback
regardless of the propagation flag; propagation is reserved for actual media-upload failures (the
sendMediaFeishu catch), which a comment target never reaches because it never uploads. Driven through
feishuOutbound.sendMedia directly with propagateMediaUploadFailure: true against a real document-comment
target (comment:docx:Ngd0ddcOnolCysxkexBcKjhNnH8:7675663856085028021); the mediaUrl is an external URL
so no file upload is attempted and the comment renders it as a plain link.
input: sendMedia { to: comment:docx:Ngd0ddcOnolCysxkexBcKjhNnH8:7675663856085028021,
                   text, mediaUrl: "https://example.com/openclaw-proof-125664-comment.png",
                   propagateMediaUploadFailure: true }
result: ok (NOT a throw), delivery_mode:"reply_comment", success:true
        reply_id = "7676404737977093416"
        content.elements[0].text_run.text =
          "proof 10 comment fallback (head df3de8c)\n\nhttps://example.com/openclaw-proof-125664-comment.png"
        <- the media URL is rendered as a VISIBLE comment text link (not a silent text-only ok)
        target = { kind:"chat", id:"7675663856085028021" }
        The reply added by this scenario was deleted via DELETE /drive/v1/files/.../replies/{reply_id} after the run.

=== cleanup: creds + proof dir removed ===

=== 11. DIRECT send with a delivered caption + controlled media failure -> partial-delivery receipt (eighteenth-review P1 fix) ===
A direct `send` action with a caption (text) and a media source that fails AFTER the caption is
delivered. Driven through feishuPlugin.actions.handleAction (the Gateway send dispatch path) on
the final head aa0f7358293 (transcript re-run on the immediately-prior head aa0f7358; the nineteenth-round malformed-intent fix does not alter the caption partial-delivery path, so the recorded receipt remains valid on 87d227b33f2), with a REAL Feishu app (cli_aac95aea7f219cff, bot "SunnyApp") and a
REAL chat target (oc_8f9272069c4a73e6ab8fef16fa45a0ba). The caption text is genuinely delivered
first (a real Feishu message id is returned); the mediaUrl is an unreachable host, so
sendMediaFeishu fails after the caption send. The outbound boundary (outbound.ts:1136) must throw
a ChannelPartialDeliveryError whose deliveryResult.messageIds carries the real caption message id
and visibleReplySent is true — so the caller knows the caption arrived and must not retry it
(retryable:false is enforced at the Gateway boundary by the paired send.test.ts regression).
Pre-fix (before the seventeenth-round outbound fix) this returned a text-only ok:true receipt
(the exact silent-drop issue #112244 removes). The outbound sendMedia / sendMediaFeishu /
sendOutboundText paths are NOT mocked.

  [security] blocked URL fetch (url-fetch) targetOrigin=http://127.0.0.1:1 reason=Blocked hostname or private/internal/special-use IP address

  === 11. caption + failing media — threw ===
  "Error: Feishu media preparation failed before message dispatch: Failed to fetch media from http://127.0.0.1:1/openclaw-proof-125664-unreachable.png: Blocked hostname or private/internal/special-use IP address | fetch_failed"

  === 11. partial-delivery receipt (P1 fix) ===
  {
    "messageIds": [
      "om_x100b67a4<redacted>"
    ],
    "visibleReplySent": true
  }

  === assertions ===
  11. partial-delivery error thrown:  true
  11. receipt.visibleReplySent === true:  true
  11. receipt.messageIds carries the real caption id:  true
  11. caption message id (redacted prefix):  om_x100b67a4

  <- the caption was genuinely delivered to the chat (real Feishu message id om_x100b67a4...)
  <- the media failure was controlled (unreachable URL, blocked at fetch)
  <- the outbound boundary preserved the caption receipt as a partial-delivery error
  <- the Gateway boundary serializes that receipt into error.details.partialDelivery + retryable:false
     (covered by src/gateway/server-methods/send.test.ts pre-fix fail / post-fix pass below)

=== cleanup: creds removed ===

=== 12. DIRECT send with a present non-string unsupported attachment-intent value -> visible rejection (nineteenth-review P1 fix) ===
A present NON-string value for an unsupported attachment-intent key (`file`/`buffer`/`base64`) —
e.g. `{ file: {} }` or `attachments: [{ buffer: {} }]` — used to be silently skipped (the resolver
read these keys via string coercion, which returns undefined for objects), leaving no media
candidate and falling through to a text-only ok:true receipt, recreating the silent-drop this PR
removes. Post-fix the resolver rejects the malformed intent before any text send. Driven through
feishuPlugin.actions.handleAction (the Gateway send dispatch path) on the final head 87d227b33f2,
with a REAL Feishu app (cli_aac95aea7f219cff, bot "SunnyApp") and a REAL chat target
(oc_8f9272069c4a73e6ab8fef16fa45a0ba). The rejection happens in the resolver before any Feishu
API call, so no message is delivered and no quota is consumed; the live code path
(handleAction -> resolveFeishuSendAttachmentMedia) is exercised with outbound NOT mocked.

  === 12a. top-level file: {} — threw (expected, P1 fix) ===
  "Feishu send supports media attachments through media, mediaUrl, path, filePath, fileUrl, image, mediaUrls, or attachments[] with one of those fields; the `file` attachment-intent parameter is not supported — use one of the supported media sources instead."

  === 12b. top-level buffer: {} — threw (expected, P1 fix) ===
  "Feishu send supports media attachments through media, mediaUrl, path, filePath, fileUrl, image, mediaUrls, or attachments[] with one of those fields; buffer/base64 payloads are not supported."

  === 12c. top-level base64: {} — threw (expected, P1 fix) ===
  "Feishu send supports media attachments through media, mediaUrl, path, filePath, fileUrl, image, mediaUrls, or attachments[] with one of those fields; buffer/base64 payloads are not supported."

  === 12d. nested attachments: [{ file: {} }] — threw (expected, P1 fix) ===
  "Feishu send supports media attachments through media, mediaUrl, path, filePath, fileUrl, image, mediaUrls, or attachments[] with one of those fields; the `file` attachment-intent parameter is not supported — use one of the supported media sources instead."

  === 12e. nested attachments: [{ buffer: {} }] — threw (expected, P1 fix) ===
  "Feishu send supports media attachments through media, mediaUrl, path, filePath, fileUrl, image, mediaUrls, or attachments[] with one of those fields; buffer/base64 payloads are not supported."

  === assertions ===
  12. all malformed-intent cases rejected before text branch:  true

  <- each present non-string intent value is rejected in the resolver before the text branch
  <- pre-fix (before this round's fix) each returned a text-only ok:true receipt (silent drop)
  <- the rejection fires on the live handleAction dispatch path (outbound NOT mocked)

=== cleanup: creds removed ===

Real Feishu delivery proof (prior head 91b014dd6216, fourth-review P1 fix)

Refreshed redacted proof from the current PR head, covering both the unchanged direct-send attachment delivery and the fourth-review P1 fix (document-comment fallback). Driven through feishuPlugin.actions.handleAction (the Gateway send dispatch path) and feishuOutbound.sendPayload with a real Feishu app (cli_aac95aea7f219cff, bot "SunnyApp"), a real media file on disk, and real chat + document-comment targets. The outbound sendMedia / sendPayload paths are NOT mocked. App credentials were supplied via a 0600-perm temp file read by the proof script (never on a command line or in shell history) and removed after the run; secrets are not present in any output below.

Targets:

  • chat: oc_8f9272069c4a73e6ab8fef16fa45a0ba (group "Sunny")
  • document comment: comment:docx:Ngd0ddcOnolCysxkexBcKjhNnH8:7675663856085028021 — a real Feishu docx wiki node (EsnCworwwiMXOmkeB6mc73upnkH) resolved to obj_token Ngd0ddcOnolCysxkexBcKjhNnH8 via wiki/v2/spaces/get_node, with a real document comment the bot has read/comment permission on.
=== 5. LEGAL filePath alias through the final-head adapter (positive delivery, re-run on 91b014d) ===
A supported alias (`filePath`) is driven through feishuPlugin.actions.handleAction on the new head
(91b014dd6216 + the P1 fix), traversing every changed function in this PR:
  handleAction
    -> resolveFeishuSendAttachmentMedia   (filePath alias promoted to mediaUrl)
    -> feishuOutbound.sendMedia           (propagateMediaUploadFailure: true, scoped to send)
    -> sendMediaFeishu                    (extensions/feishu/src/media.ts)
      -> loadWebMedia                     (local file read under mediaLocalRoots)
      -> uploadFileFeishu                 (real im/v1/files)
      -> sendFileFeishu                   (real im/v1/messages, msg_type=file)
input: send { to: chat:oc_8f9272069c4a73e6ab8fef16fa45a0ba, message, filePath: "/tmp/openclaw-proof-125664/proof-attachment.txt" }
result: ok:true, channel:"feishu", action:"send"
        messageId="om_x100b67634faf18a8c02463769f540a5"
        receipt.parts[0].kind = "media"  (NOT text-only)
        receipt.parts[0].platformMessageId = "om_x100b67634faf18a8c02463769f540a5"
        target = { kind:"chat", id:"oc_8f9272069c4a73e6ab8fef16fa45a0ba" }
        A supported alias traverses the full final-head adapter path to Feishu.
        The core direct-send attachment delivery is unchanged by the P1 fix.

=== 8. DOCUMENT-COMMENT target + media + propagation marker (fourth-review P1 fix: visible rejection) ===
The direct `send` action stamps the propagation marker on channelData.feishu before routing an
attachment through sendPayload. Drives feishuOutbound.sendPayload directly with the marker stamped
(exactly as the direct `send` action stamps it in channel.ts), targeting a real Feishu document
comment. Pre-fix the document-comment sendPayload branch cleared channelData, dropping the marker
so the undeliverable attachment degraded to a fallback-text `ok:true` receipt. Post-fix the comment
branch preserves the marker and the comment sendMedia rejects the unsupported media delivery before
any text receipt is produced (the rejection happens before sendOutboundText is called, so no
comment is posted).
input: sendPayload { to: comment:docx:Ngd0ddcOnolCysxkexBcKjhNnH8:7675663856085028021,
                     payload: { text, mediaUrl: "/tmp/openclaw-proof-125664/proof-attachment.txt",
                                channelData: { feishu: { __openclawPropagateMediaUploadFailure: true } } } }
path:   sendPayload
          -> parseFeishuCommentTarget(to) -> comment branch
          -> buildFeishuPropagationOnlyChannelData(payload)  (marker PRESERVED; pre-fix was channelData: undefined)
          -> sendFeishuFallbackPayload
            -> readFeishuPropagateMediaUploadFailure = true  (marker survived)
            -> shouldSeparate = true  (propagateMediaUploadFailure forces fan-out)
            -> sendMedia({ ..., propagateMediaUploadFailure: true })
              -> parseFeishuCommentTarget(to) -> comment branch
              -> mediaUrl && propagateMediaUploadFailure -> THROW
result: threw (NOT ok:true):
        "Feishu send could not deliver the requested media attachment:
         document comments cannot host media attachments."
        No sendOutboundText, no fallback text comment, no ok:true.
        A direct-send attachment to a document comment now fails visibly instead
        of degrading to a text-only success receipt.

=== 8b. DOCUMENT-COMMENT target + media, marker ABSENT (scope guard: default degrade unchanged) ===
Without the propagation marker (i.e. NOT a direct `send` action, e.g. a thread reply), the
document-comment behavior is unchanged — the media link degrades to a fallback text comment and
returns ok. Proves the P1 fix is scoped to the direct-send propagation policy and does not break
existing comment-thread text delivery.
input: sendPayload { to: comment:docx:Ngd0ddcOnolCysxkexBcKjhNnH8:7675663856085028021,
                     payload: { text: "proof 8b ...", mediaUrl: "/tmp/openclaw-proof-125664/proof-attachment.txt" } }
result: ok, delivery_mode: "reply_comment", success: true
        reply_id = "7675664390716132599"
        content.elements[0].text_run.text = "proof 8b comment target + media, no marker (default degrade)"
        target = { kind:"chat", id:"7675663856085028021" }
        The media link was rendered as a fallback text comment (default behavior preserved).
        The proof reply was cleaned up after the run.

=== cleanup: creds + comment-target + proof dir removed ===

Real Feishu delivery proof (prior head 80fdad787687, retained for before/after contrast)

The proof below was captured against an earlier head and is retained as the before/after contrast for the round-3/round-9 findings; it is superseded by the final-head proof above for the current review.

Driven through feishuPlugin.actions.handleAction — the same handler the Gateway dispatches message.action send through — with a real Feishu app (cli_aac95aea7f219cff, bot "SunnyApp"), a real media file on disk, and a real Feishu chat target (oc_8f9272069c4a73e6ab8fef16fa45a0ba). The outbound sendMedia path is NOT mocked; it resolves the alias, loads the file, uploads it to Feishu, and delivers a real message. Scenario 5 drives a supported filePath alias through the full final-head adapter path (handleAction → resolveFeishuSendAttachmentMedia → feishuOutbound.sendMedia → sendMediaFeishu → loadWebMedia → uploadFileFeishu → sendFileFeishu) and records a real kind:"media" delivery; scenario 7 drives a nested attachments[].mediaUrls list through the same full path (the round-9 P1 fix), proving the nested list is now collected instead of silently dropped. App credentials were supplied via a 0600-perm temp file read by the proof script (never on a command line or in shell history) and removed after the run; secrets are not present in any output below.

=== 1. LEGAL filePath alias, sendMedia cannot deliver (expect controlled failure) ===
input: send { to: chat:oc_8f9272069c4a73e6ab8fef16fa45a0ba, message, filePath: "/tmp/openclaw-proof-125664/proof-attachment.txt" }
resolver: filePath alias promoted -> mediaUrl="/tmp/openclaw-proof-125664/proof-attachment.txt" -> entered real sendMediaFeishu path
result:  threw (NOT ok:true): "Feishu send could not deliver the requested media attachment:
         Feishu media preparation failed before message dispatch: Feishu runtime not initialized"
         The direct send action sets propagateMediaUploadFailure, so an upload failure is now a
         controlled failure instead of a text-only fallback success. (Pre-fix this returned
         ok:true with a text-only messageId — see scenario 5 for the before/after contrast.)

=== 2. MALFORMED media:{} (expect visible error, NO delivery) ===
input: send { to: chat:oc_8f9272069c4a73e6ab8fef16fa45a0ba, message, media: {} }
result:  threw BEFORE the text branch: "Feishu send supports media attachments through media,
         mediaUrl, path, filePath, fileUrl, image, mediaUrls, or attachments[] with one of those
         fields; a present malformed media source value is not supported — use a string path/URL
         (or a string array for mediaUrls) instead."
         No sendMessageFeishu, no sendMedia, no ok:true. (Round-3 P1 finding fix.)

=== 3. LEGAL path alias, sendMedia cannot deliver (expect controlled failure) ===
input: send { to: chat:oc_8f9272069c4a73e6ab8fef16fa45a0ba, message, path: "/tmp/openclaw-proof-125664/proof-attachment.txt" }
resolver: path alias promoted -> mediaUrl="/tmp/openclaw-proof-125664/proof-attachment.txt" -> entered real sendMediaFeishu path
result:  threw (NOT ok:true): "Feishu send could not deliver the requested media attachment: ..."
         (same controlled-failure shape as scenario 1; pre-fix returned ok:true messageId=om_x100b6770452e44b0df97821836ac04c on a text-only fallback.)

=== 4. Real Feishu file upload + file-message delivery (raw API replication of the adapter path) ===
Replicates the API calls sendMediaFeishu (extensions/feishu/src/media.ts) makes against the
same real account and chat, proving the attachment delivery path reaches Feishu:
  upload  -> im/v1/files:  file_key=file_v3_0014m_d8741f8a-6b90-4902-95a5-dc17efcc41ag
  send    -> im/v1/messages (msg_type=file, file_key above):  code=0, msg=success,
             messageId=om_x100b6770473124a0c2f40dcfe677351
The file `proof-attachment.txt` was delivered to chat oc_8f9272069c4a73e6ab8fef16fa45a0ba.
(This scenario drives the Lark SDK directly; scenario 5 below drives the SAME alias through
the full final-head adapter path from handleAction.)

=== 5. Supported alias delivered through the final-head adapter (positive delivery proof) ===
A supported alias (`filePath`) is driven through feishuPlugin.actions.handleAction — the same
handler the Gateway dispatches `message.action send` through — so the request traverses every
changed function in this PR:
  handleAction
    -> resolveFeishuSendAttachmentMedia   (filePath alias promoted to mediaUrl)
    -> feishuOutbound.sendMedia           (propagateMediaUploadFailure: true, scoped to send)
    -> sendMediaFeishu                    (extensions/feishu/src/media.ts)
      -> loadWebMedia                     (local file read under mediaLocalRoots)
      -> uploadFileFeishu                 (real im/v1/files)
      -> sendFileFeishu                   (real im/v1/messages, msg_type=file)
input: send { to: chat:oc_8f9272069c4a73e6ab8fef16fa45a0ba, message, filePath: "/tmp/openclaw-proof-125664/proof-attachment.txt" }
result: ok:true, kind:"media" (NOT text-only), messageId=om_x100b676105250cacc2aed26cfca38ef
        receipt.parts[0].kind = "media"  — the attachment was delivered, not dropped.
Pre-fix main read only params.media, so this `filePath` alias never entered the media branch
and the send returned ok:true on a text-only branch (attachment lost). Post-fix the alias is
promoted and the file is really uploaded and delivered to chat oc_8f9272069c4a73e6ab8fef16fa45a0ba.

=== 7. Nested attachments[].mediaUrls delivered through the final-head adapter (round-9 P1 fix) ===
A nested `attachments[].mediaUrls` string list is driven through feishuPlugin.actions.handleAction
so the request traverses the round-9 fix (`collectFeishuSendAttachmentMedia` now calls
`readFeishuStringArrayParam(attachment, "mediaUrls")` inside the `attachments[]` loop, mirroring
the top-level collection):
  handleAction
    -> resolveFeishuSendAttachmentMedia
      -> collectFeishuSendAttachmentMedia  (nested mediaUrls entries now collected)
    -> feishuOutbound.sendMedia           (propagateMediaUploadFailure: true, scoped to send)
    -> sendMediaFeishu                    (extensions/feishu/src/media.ts)
      -> loadWebMedia                     (local file read under mediaLocalRoots)
      -> uploadFileFeishu                 (real im/v1/files)
      -> sendFileFeishu                   (real im/v1/messages, msg_type=file)
input: send { to: chat:oc_8f9272069c4a73e6ab8fef16fa45a0ba, message,
               attachments: [{ mediaUrls: ["/tmp/openclaw-proof-125664/proof-attachment.txt"] }] }
result: ok:true, kind:"media" (NOT text-only), messageId=om_x100b676102c2e8b4df935daff438c3f
        receipt.parts[0].kind = "media"  — the attachment was delivered, not dropped.
Pre-fix (head e39efb18033) the nested `mediaUrls` list passed the malformed check but produced
no candidate (only scalar attachment fields were collected inside the `attachments[]` loop), so
the request fell through to a text-only `ok:true` — the exact silent drop this PR removes.
Post-fix the nested list is collected and the file is really uploaded and delivered.

=== 6. Round-4 P1 fix before/after contrast (sendMedia upload failure) ===
Pre-fix head 9f245a633c (round 3): send { filePath } with sendMedia failing returned
  {"ok":true,...,"messageId":"om_x100b677045735ca8c2948b934ad6a04","receipt":{...,"kind":"text"...}}
  — the attachment was lost but the action reported success.
Post-fix head e39efb18033 (round 5, scoped to send): same input now throws
  "Feishu send could not deliver the requested media attachment: ..."
  — the agent receives a visible failure instead of a false ok:true. (Round-4 P1
  finding fix; round 5 scopes the flag to `send` so thread-reply keeps its
  existing fallback-text behavior.)

Unit-test behavior matrix (Feishu send action, extensions/feishu/src/channel.test.ts)

input                                                          => result (post-fix)
send { filePath: "/tmp/x.png" }                                => sendMedia once, mediaUrl="/tmp/x.png", text-only skipped
send { file_path: "/tmp/x.png" }   (snake_case)                => sendMedia once, mediaUrl="/tmp/x.png"
send { path:    "/tmp/script.py" }                             => sendMedia once, mediaUrl="/tmp/script.py"
send { fileUrl: "file:///tmp/script.py" }                      => sendMedia once, mediaUrl="file:///tmp/script.py"
send { file_url: "file:///tmp/script.py" } (snake_case)        => sendMedia once, mediaUrl="file:///tmp/script.py"
send { image:   "/tmp/image.png" }                             => sendMedia once, mediaUrl="/tmp/image.png"
send { mediaUrl:"/tmp/media.png" }                             => sendMedia once, mediaUrl="/tmp/media.png"
send { media_url:"/tmp/media.png" } (snake_case)               => sendMedia once, mediaUrl="/tmp/media.png"
send { media_urls: ["/tmp/report.md"] } (snake_case array)     => sendMedia once, mediaUrl="/tmp/report.md"
send { mediaUrls: "/tmp/single.png" } (single string, not array) => sendMedia once, mediaUrl="/tmp/single.png"
send { buffer:  "aGVsbG8=" }                                   => throws "buffer/base64 payloads are not supported"
send { attachments: [{ buffer: "aGVsbG8=" }] }   (nested)      => throws "buffer/base64 payloads are not supported"
send { attachments: [{ base64: "aGVsbG8=" }] }   (nested)      => throws "buffer/base64 payloads are not supported"
send { attachments: [{ filePath: "/tmp/r.md" }, { buffer: "aGVsbG8=" }] } (mixed) => throws "buffer/base64 payloads are not supported"
send { file: "/tmp/script.py", filename: "script.py" }         => throws "`file` attachment-intent parameter is not supported" (no text send)
send { attachments: [{ file: "/tmp/script.py" }] } (nested)    => throws "`file` attachment-intent parameter is not supported" (no text send)
send { mediaUrls: ["/tmp/a.png","/tmp/b.png"] }                => throws "Feishu send supports a single media attachment"
send { media: {} } (malformed, top-level)                      => throws "a present malformed media source value is not supported" (no text send)
send { filePath: 42 } (malformed scalar)                       => throws "a present malformed media source value is not supported" (no text send)
send { mediaUrls: [{}] } (malformed array entry)               => throws "a present malformed media source value is not supported" (no text send)
send { mediaUrls: ["/tmp/a.png", 7] } (mixed malformed entry)  => throws "a present malformed media source value is not supported" (no text send)
send { attachments: [{ media: {} }] } (malformed, nested)      => throws "a present malformed media source value is not supported" (no text send)
send { attachments: { media: "/tmp/a.png" } } (object container) => throws "a present malformed media source value is not supported" (no text send)
send { attachments: [null] } (non-record array entry)         => throws "a present malformed media source value is not supported" (no text send)
send { attachments: [42] } (non-record array entry)           => throws "a present malformed media source value is not supported" (no text send)
send { buffer: "", base64: "  " } (blank, no media alias)      => text-only send (blank is not unsupported intent)
send { attachments: [{ buffer: "", base64: "  " }] } (blank nested) => text-only send (unchanged)
send { file: "   " } (blank file)                              => text-only send (blank is not unsupported intent)
send { media: "   " } (blank media)                            => text-only send (blank string is not malformed)
send { mediaUrls: ["   "] } (blank array entry)                => text-only send (blank string entry is not malformed)
send { message: "hi" } (no media)                              => text-only send (unchanged)
send { filePath } + sendMedia upload fails (propagate=true, send only) => throws "Feishu send could not deliver the requested media attachment" (NOT ok:true)
thread-reply { media } + sendMedia upload fails (no flag)         => fallback text + ok:true (thread-reply keeps its existing behavior, unchanged)

Real runtime unit-test proof (vitest run via node scripts/run-vitest.mjs, on the current PR head 87d227b33f2):

Post-fix (this PR, 87d227b33f2):

$ node scripts/run-vitest.mjs extensions/feishu/src/channel.test.ts --run
 Test Files  1 passed (1)
      Tests  147 passed (147)

$ node scripts/run-vitest.mjs extensions/feishu/src/outbound.test.ts --run
 Test Files  1 passed (1)
      Tests  130 passed (130)

$ node scripts/run-vitest.mjs src/gateway/server-methods/send.test.ts --run
 Test Files  1 passed (1)
      Tests  116 passed (116)

Pre-fix (channel.ts reverted to the second-review head 30bfd86bf89 — the version ClawSweeper rated 2/6 — tests kept, malformed-source tests added):

$ node scripts/run-vitest.mjs extensions/feishu/src/channel.test.ts --run -t "malformed media source|not malformed" --reporter=verbose
 × rejects top-level scalar `media` malformed media source on send instead of text-only success
 × rejects top-level scalar `filePath` malformed media source on send instead of text-only success
 × rejects top-level `mediaUrls` object malformed media source on send instead of text-only success
 × rejects top-level `mediaUrls` array with non-string entry malformed media source on send instead of text-only success
 × rejects top-level `mediaUrls` array with number entry malformed media source on send instead of text-only success
 × rejects nested scalar `media` malformed media source on send instead of text-only success
 × rejects nested `mediaUrls` with non-string entry malformed media source on send instead of text-only success
 ✓ ignores blank top-level `media` media source on send (not malformed)
 ✓ ignores blank `mediaUrls` array entry media source on send (not malformed)
 ✓ ignores blank nested `media` media source on send (not malformed)
 Test Files  1 failed (1)
      Tests  7 failed | 3 passed | 126 skipped (136)

The 7 malformed tests fail on the second-review head because a present non-string value (e.g. media: {}) was read as absent by readFeishuStringParam, produced no mediaUrl, fell through to the text sender, and returned ok:true — confirming the third-review P1 finding ("Reject malformed declared media sources"). The 3 blank tests pass pre-fix because a blank string is a string and therefore not malformed. After the fix, all 10 pass alongside the full 136-test shard.

Gateway message.action boundary — caption receipt serialization (eighteenth-review P1 fix, src/gateway/server-methods/send.test.ts):

$ node scripts/run-vitest.mjs src/gateway/server-methods/send.test.ts --run -t "caption receipt"
 ✓ returns the caption receipt through message.action when dispatch fails with partial delivery
 Test Files  1 passed (1)
      Tests  1 passed | 115 skipped (116)

$ node scripts/run-vitest.mjs src/gateway/server-methods/send.test.ts --run -t "retryable"
 ✓ keeps an unavailable failure retryable when dispatch throws a plain error
 Test Files  1 passed (1)
      Tests  1 passed | 115 skipped (116)

Pre-fix (send.ts reverted to the seventeenth-round head 1331ae3f5cb — before the Gateway boundary preserved deliveryResult; the new send.test.ts cases kept):

$ node scripts/run-vitest.mjs src/gateway/server-methods/send.test.ts --run -t "caption receipt"
 × returns the caption receipt through message.action when dispatch fails with partial delivery
   AssertionError: expected undefined to be false // Object.is equality
     expect(response[2]?.retryable).toBe(false)
   — pre-fix createGatewayInflightUnavailableFailure used String(err) and dropped
     deliveryResult, so retryable was undefined and details.partialDelivery was absent
 Test Files  1 failed (1)
      Tests  1 failed | 115 skipped (116)

The pre-fix failure confirms the eighteenth-review P1: the seventeenth-round outbound fix throws ChannelPartialDeliveryError with the caption receipt, but the Gateway message.action boundary (createGatewayInflightUnavailableFailure) serialized it via String(err) and dropped deliveryResult, so the agent could not know the caption arrived and might retry it (duplicating visible text). Post-fix the boundary detects isChannelPartialDeliveryError, preserves deliveryResult on error.details.partialDelivery, and sets retryable:false so the agent does not resend an already-visible caption; a plain error stays retryable:true with no partial-delivery details (unchanged behavior). The real-Feishu scenario 11 above proves the outbound side of this receipt (a real caption message id is preserved); this regression proves the Gateway side of the same receipt.

Malformed non-string attachment-intent rejection (nineteenth-review P1 fix, extensions/feishu/src/channel.test.ts):

$ node scripts/run-vitest.mjs extensions/feishu/src/channel.test.ts --run -t "malformed .non-string"
 ✓ rejects malformed (non-string) top-level `file: {}` attachment intent on send instead of text-only success
 ✓ rejects malformed (non-string) top-level `buffer: {}` attachment intent on send instead of text-only success
 ✓ rejects malformed (non-string) top-level `base64: {}` attachment intent on send instead of text-only success
 ✓ rejects malformed (non-string) top-level `file: 42` attachment intent on send instead of text-only success
 ✓ rejects malformed (non-string) nested `attachments: [{ file: {} }]` attachment intent on send instead of text-only success
 ✓ rejects malformed (non-string) nested `attachments: [{ buffer: {} }]` attachment intent on send instead of text-only success
 Test Files  1 passed (1)
      Tests  6 passed | 141 skipped (147)

Pre-fix (channel.ts reverted to the eighteenth-round head aa0f7358293 — before the resolver rejected non-string unsupported-intent values; the new channel.test.ts cases kept):

$ node scripts/run-vitest.mjs extensions/feishu/src/channel.test.ts --run -t "malformed .non-string"
 × rejects malformed (non-string) top-level `file: {}` attachment intent on send instead of text-only success
 × rejects malformed (non-string) top-level `buffer: {}` attachment intent on send instead of text-only success
 × rejects malformed (non-string) top-level `base64: {}` attachment intent on send instead of text-only success
 × rejects malformed (non-string) top-level `file: 42` attachment intent on send instead of text-only success
 × rejects malformed (non-string) nested `attachments: [{ file: {} }]` attachment intent on send instead of text-only success
 × rejects malformed (non-string) nested `attachments: [{ buffer: {} }]` attachment intent on send instead of text-only success
   — pre-fix each case returned { ok: true, details: { action: "send", channel: "feishu" } } (text-only success, the silent drop)
 Test Files  1 failed (1)
      Tests  6 failed | 141 skipped (147)

The pre-fix failures confirm the nineteenth-review P1: the unsupported-intent keys (file/buffer/base64) were read via string coercion (readFeishuStringParam), which returns undefined for objects, so Boolean(...) was false, leaving no candidate and falling through to a text-only ok:true receipt — the exact silent-drop this PR removes. Post-fix the resolver detects a present non-string value via hasFeishuUnsupportedIntentValue and rejects it before the text branch, at both the top level and inside attachments[]; a blank string stays ignored (unchanged). The real-Feishu scenario 12 above proves this on the live handleAction dispatch path.

  • npx oxfmt --check extensions/feishu/src/channel.ts extensions/feishu/src/channel.test.ts: all matched files use the correct format.
  • npx oxlint -c .oxlintrc.json extensions/feishu/src/channel.ts extensions/feishu/src/channel.test.ts: 0 warnings, 0 errors.
  • What was not tested: The proof harness drives feishuPlugin.actions.handleAction directly rather than through a running Gateway process, so the in-process Feishu plugin runtime (media loader chain) is not initialized; scenario 1/3 reach sendMediaFeishu which raises PlatformMessageNotDispatchedError, and (post-fix) the direct send action now propagates that as a controlled failure instead of returning a text-only ok:true. The alias-to-mediaUrl promotion, entry into the real sendMedia path, and the propagate-on-failure behavior are proven by scenarios 1/3/5; the real Feishu file upload + file-message delivery is proven independently by scenario 4 (same account, same chat, same im/v1/files + im/v1/messages(msg_type=file) calls that sendMediaFeishu makes). Other channels were intentionally not changed and not re-tested.

AI Assistance

  • AI-assisted: Yes

  • Tools: Claude (glm-5.2 via local bridge)

  • Prompts / session excerpts: /open-source-pr issue 112244 workflow. Root-cause analysis compared the Feishu send handler against the Mattermost resolveMattermostSendAttachmentMedia resolver and audited every channel (Feishu/Mattermost/iMessage/qa-channel/clickclack/zalo/sms) to confirm the silent-drop was Feishu-only and the fix belonged at the Feishu boundary. A later /open-source-pr audit min-fix pass caught a trimmed head that had re-opened two false-success paths; the fix was restored to the full implementation. Full per-iteration session log available on request — the review history is also captured in the ClawSweeper review comment and commit history on this PR.

  • Confirmed understanding of code changes: Yes. resolveFeishuSendAttachmentMedia collects every attachment alias (media/mediaUrl/path/filePath/fileUrl/image/mediaUrls/attachments[] entries, camelCase + snake_case) into one canonical mediaUrl, dedups, enforces single-attachment, and rejects unsupported payloads (buffer/base64), the file intent key, and present-but-malformed values — all before the text branch. The unsupported-intent keys (file/buffer/base64) are read via hasFeishuUnsupportedIntentValue, which treats a present non-string value (e.g. file: {}) as a malformed intent to reject, not as absent via string coercion. The send action sets propagateMediaUploadFailure so a real upload failure re-throws instead of degrading to a text ok:true; when the caption was already delivered before the upload failed, the outbound boundary re-throws createChannelPartialDeliveryError carrying the caption's message id (so the caller knows the text is visible and does not retry/duplicate it), and a send with no delivered caption stays a plain wholly-failed error; the Gateway message.action boundary (createGatewayInflightUnavailableFailure in src/gateway/server-methods/send.ts) detects that partial-delivery error and preserves its deliveryResult on error.details.partialDelivery with retryable:false, so the receipt crosses the action/Gateway boundary instead of being dropped by String(err); the same boundary also preserves main's queued-delivery contract — a recovery-owned OutboundDeliveryError yields error.details.code = OUTBOUND_DELIVERY_QUEUED (the two outcomes are mutually exclusive, partial delivery first); retryable is set to false only for a partial-delivery receipt and omitted otherwise (ordinary and queued failures carry no retryable signal, matching main's shape so Gateway clients do not replay an indeterminate send); the nested attachments[].image alias is now collected just like the top-level image alias; thread-reply and the default outbound fallback are unchanged.

  • autoreview: N/A (not available in this environment; oxfmt --check, oxlint, and the feishu shard tests are green).

  • Twentieth review round (rebase + merge-conflict resolution = P1 queued-delivery fix): rebased onto current origin/main; the one merge conflict in createGatewayInflightUnavailableFailure was resolved by composing both Gateway error outcomes — partial-delivery (details.partialDelivery + retryable:false) and queued-delivery (details.code = OUTBOUND_DELIVERY_QUEUED for recovery-owned OutboundDeliveryError) — so main's queued-retry contract is preserved alongside the PR's partial-delivery receipt. The main-side reports structured details for queue-owned retry / ordinary failure regression test is retained (pre-fix fail / post-fix pass re-verified), alongside the PR's partial-delivery regression. oxfmt --check, oxlint -c .oxlintrc.json, tsgo (core shard), and vitest (gateway-methods shard, 122 tests) are green.

  • Twenty-first review round (two P1 fixes): (1) added image to FEISHU_ATTACHMENT_MEDIA_SOURCE_PARAM_KEYS so a nested attachments: [{ image: ... }] is collected as a media candidate instead of silently text-sending (regression test added: accepts a nested attachments[].image alias instead of dropping it, pre-fix fail / post-fix pass); (2) changed retryable from !partialDelivery to false-only-on-partial-delivery (omitted otherwise), restoring main's non-retryable shape for ordinary and queued failures so Gateway clients do not replay an indeterminate send (the reports structured details parameterized test now also asserts retryable is undefined; the plain-error test now asserts retryable is undefined instead of true; both pre-fix fail / post-fix pass). oxfmt --check, oxlint -c .oxlintrc.json, tsgo (core shard — only pre-existing main tui errors unrelated to this PR), and vitest (gateway-methods 122 + feishu channel 151) are green.

@clawsweeper

clawsweeper Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added channel: feishu Channel integration: feishu size: S labels Aug 18, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 18, 2026
@clawsweeper

clawsweeper Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 24, 2026, 11:19 AM ET / 15:19 UTC.

ClawSweeper review

What this changes

The PR makes Feishu resolve supported attachment aliases on direct sends, reject unsupported or ambiguous media requests visibly, and preserve partial-delivery receipts when upload fails after a caption is sent.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open: current main still silently sends Feishu text when a direct message action supplies attachment aliases instead of media; this branch repairs that owner-boundary behavior and addresses the prior review findings.

Priority: P1
Reviewed head: 87d227b33f2d8866b2cf3e09ccab7ad4e55ee48f

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with prior actionable findings addressed, strong regression coverage, and real-path evidence for the corrected delivery outcome.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (logs): The PR context includes redacted after-fix Feishu behavior evidence and is marked proof sufficient; the focused regression tests supplement that real-path proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (logs): The PR context includes redacted after-fix Feishu behavior evidence and is marked proof sufficient; the focused regression tests supplement that real-path proof.
Evidence reviewed 6 items Current-main defect: The current baseline reads only params.media, so aliases such as attachments or path values do not reach the Feishu upload path and can fall through to a text send.
Direct dispatch boundary: Gateway direct actions hydrate only the top-level buffer path before dispatch; the generic attachment-alias collection used by the outbound runner is not applied here.
PR resolves the channel-owned input contract: The branch adds Feishu-local alias collection and invokes it only for send actions, including nested attachment image aliases covered by the added regression tests.
Findings None None.
Security None None.

How this fits together

Gateway message actions dispatch channel-specific send parameters to the Feishu plugin. The plugin turns a supported local media path into a Feishu upload and returns a delivery receipt or an actionable error to the agent.

flowchart LR
  A[Agent message action] --> B[Gateway send dispatch]
  B --> C[Feishu channel plugin]
  C --> D[Resolve media aliases]
  D --> E{One supported file?}
  E -->|Yes| F[Feishu upload and receipt]
  E -->|No| G[Actionable send error]
  F --> H[Gateway response]
  G --> H
Loading

Before merge

  • Resolve merge risk (P1) - Existing direct sends that relied on unsupported file or malformed/multiple media values will now receive an error instead of a misleading text-only success; this intentional fail-closed change must remain limited to Feishu’s transport contract.
  • Complete next step (P2) - The open PR already owns a source-proven repair and has resolved the prior review’s concrete defects.
Agent review details

Security

None.

PR surface

Source +452, Tests +927. Total +1379 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 3 462 10 +452
Tests 3 929 2 +927
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 1391 12 +1379

Review metrics

Metric Value Why it matters
Production versus test delta production +452 net (462 added, 10 removed); tests +927 net (929 added, 2 removed) The bug fix adds substantial channel-specific validation and regression coverage; its growth is justified by Feishu’s one-media constraint and partial-delivery semantics.

Stored data model

Persistent data-model change detected: serialized state: extensions/feishu/src/channel.test.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #112244
Summary: This PR is a candidate repair for the Feishu direct-send false-success attachment-loss report.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Accept the explicit Feishu failure mode (recommended)
    Merge the localized fail-fast behavior so unsupported or ambiguous attachment intent no longer produces a false successful delivery receipt.

Technical review

Best possible solution:

Land the Feishu-local validation and receipt handling as the canonical direct-send behavior, with supported aliases continuing to resolve and unsupported intent failing visibly.

Do we have a high-confidence way to reproduce the issue?

Yes—current-main source provides a high-confidence direct path: a message action reaches the Feishu adapter with attachment aliases but the adapter reads only media, allowing a text-only success.

Is this the best way to solve the issue?

Yes—the channel-local repair follows the transport-specific single-media policy and existing sibling precedent without imposing Feishu rules on every channel.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 70d7fb5771f9.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (logs): The PR context includes redacted after-fix Feishu behavior evidence and is marked proof sufficient; the focused regression tests supplement that real-path proof.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P1: The existing direct-send workflow can deterministically report success while dropping a requested attachment.
  • merge-risk: 🚨 compatibility: Unsupported direct-send attachment forms change from silent text-only success to an explicit error.
  • merge-risk: 🚨 message-delivery: The patch changes how Feishu selects, uploads, rejects, and reports attachment delivery.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (logs): The PR context includes redacted after-fix Feishu behavior evidence and is marked proof sufficient; the focused regression tests supplement that real-path proof.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR context includes redacted after-fix Feishu behavior evidence and is marked proof sufficient; the focused regression tests supplement that real-path proof.

Evidence

What I checked:

  • Current-main defect: The current baseline reads only params.media, so aliases such as attachments or path values do not reach the Feishu upload path and can fall through to a text send. (extensions/feishu/src/channel.ts:117, 70d7fb5771f9)
  • Direct dispatch boundary: Gateway direct actions hydrate only the top-level buffer path before dispatch; the generic attachment-alias collection used by the outbound runner is not applied here. (src/infra/outbound/message-action-params.ts:664, 70d7fb5771f9)
  • PR resolves the channel-owned input contract: The branch adds Feishu-local alias collection and invokes it only for send actions, including nested attachment image aliases covered by the added regression tests. (extensions/feishu/src/channel.ts:129, 87d227b33f2d)
  • Partial delivery is retained accurately: After a caption has been delivered, upload failure becomes a non-retryable partial-delivery result and the gateway preserves that receipt rather than converting all errors into retryable failures. (extensions/feishu/src/outbound.ts:1126, 87d227b33f2d)
  • Sibling owner-boundary precedent: Mattermost already performs channel-local alias collection and validates its transport’s single-attachment constraint, supporting a Feishu-local policy rather than a shared Gateway policy. (extensions/mattermost/src/channel.ts:751, 70d7fb5771f9)
  • History provenance: Blame attributes the current baseline reader and nearby Gateway behavior to the current baseline commit; deeper history could not be expanded from this checkout, so ownership confidence remains medium. (extensions/feishu/src/channel.ts:117, 8fe2c1b83ca2)

Likely related people:

  • Peter Steinberger: Current-baseline blame covers the Feishu media reader and adjacent Gateway send behavior examined for this review. (role: recent contributor to the current baseline; confidence: medium; commits: 8fe2c1b83ca2; files: extensions/feishu/src/channel.ts, src/gateway/server-methods/send.ts)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (28 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-22T02:29:30.882Z sha aa0f735829313bec5fdf85745888343dde1254e6 :: needs changes before merge. :: [P1] Reject malformed attachment-intent values
  • reviewed 2026-08-22T04:38:40.410Z sha 73b253dc56456ccf339d4f05f78108565657eba8 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-23T06:38:54.692Z sha 73b253dc56456ccf339d4f05f78108565657eba8 :: needs maintainer review before merge. :: none
  • reviewed August 23, 2026, 3:22 AM ET / 07:22 UTC sha unknown :: needs maintainer review before merge. :: none
  • reviewed 2026-08-24T09:05:55.620Z sha 73b253dc56456ccf339d4f05f78108565657eba8 :: needs changes before merge. :: [P1] Preserve the queued-delivery error detail
  • reviewed 2026-08-24T09:56:29.281Z sha f53f5943349b6304ba34c39a49355cd9db161ee5 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-24T10:19:16.341Z sha 5a7f348ac9334908b4d8b3325dc1aec03de5efc3 :: needs changes before merge. :: [P1] Preserve ordinary action failures as non-retryable-by-default
  • reviewed 2026-08-24T12:21:25.135Z sha e340fd10f5d3e3225085673b2701bcac2913b452 :: needs changes before merge. :: [P1] Handle nested image attachment aliases | [P1] Keep non-partial delivery failures non-retryable

@SunnyShu0925
SunnyShu0925 force-pushed the fix/feishu-send-attachment-drop-112244 branch from 2bdb756 to 79bc883 Compare August 18, 2026 07:25
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Aug 18, 2026
@SunnyShu0925
SunnyShu0925 force-pushed the fix/feishu-send-attachment-drop-112244 branch from 79bc883 to 30bfd86 Compare August 18, 2026 08:10
@clawsweeper

clawsweeper Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper

clawsweeper Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@SunnyShu0925
SunnyShu0925 force-pushed the fix/feishu-send-attachment-drop-112244 branch from 30bfd86 to 9f245a6 Compare August 18, 2026 11:35
@clawsweeper

clawsweeper Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@SunnyShu0925
SunnyShu0925 force-pushed the fix/feishu-send-attachment-drop-112244 branch from 9f245a6 to a636768 Compare August 18, 2026 12:53
@clawsweeper

clawsweeper Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 18, 2026
@SunnyShu0925
SunnyShu0925 force-pushed the fix/feishu-send-attachment-drop-112244 branch from a636768 to 5ebb01d Compare August 19, 2026 00:50
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 19, 2026
@SunnyShu0925
SunnyShu0925 force-pushed the fix/feishu-send-attachment-drop-112244 branch from 5ebb01d to e39efb1 Compare August 19, 2026 02:36
@clawsweeper clawsweeper Bot removed the rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. label Aug 19, 2026
@clawsweeper clawsweeper Bot added the status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. label Aug 20, 2026
@SunnyShu0925
SunnyShu0925 force-pushed the fix/feishu-send-attachment-drop-112244 branch from bf96376 to cc6acc0 Compare August 20, 2026 03:01
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 20, 2026
@SunnyShu0925
SunnyShu0925 force-pushed the fix/feishu-send-attachment-drop-112244 branch from cc6acc0 to 9221e7d Compare August 20, 2026 15:23
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 20, 2026
@SunnyShu0925
SunnyShu0925 force-pushed the fix/feishu-send-attachment-drop-112244 branch from 9221e7d to df3de8c Compare August 21, 2026 09:04
@SunnyShu0925

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Aug 21, 2026
@SunnyShu0925

Copy link
Copy Markdown
Contributor Author

CI is currently red on this PR (and on other PRs such as #128663) due to a pnpm-lock.yaml inconsistency on main, not from changes in this PR.

Failure: pnpm install --frozen-lockfile fails with:

[ERR_PNPM_LOCKFILE_MISSING_DEPENDENCY] Broken lockfile: no entry for '@anthropic-ai/[email protected](...)' in pnpm-lock.yaml

Root cause (on main, not this PR): extensions/anthropic/package.json pins @anthropic-ai/claude-agent-sdk: "0.3.219", but after 234df15a6d7 (chore: refresh dependencies after seven-day cooldown #128414) the lockfile snapshots resolve 0.3.232, so the 0.3.219 entry is missing and --frozen-lockfile rejects it.

This PR does not touch pnpm-lock.yaml or extensions/anthropic/package.json — git diff --name-only origin/main...HEAD is limited to the 6 Feishu/Gateway source/test files. The same build-artifacts / check-lint / check-dependencies failures reproduce on #128663, confirming it is a main-level lockfile issue affecting all PRs rebased onto current main.

Once main's pnpm-lock.yaml is repaired, a rebase should clear these checks. The code changes themselves pass locally (oxfmt, oxlint, tsgo core shard, and the gateway-methods vitest shard — 122 tests — are green).

A direct Gateway message.action send may arrive with attachment aliases
(path/filePath/fileUrl/image/mediaUrl/mediaUrls/attachments[]) instead of
the canonical media field. The Feishu send handler only read params.media,
so any alias was silently dropped and the send returned ok:true on the
text-only branch, misleading the agent about delivery (openclaw#112244).

Add resolveFeishuSendAttachmentMedia (mirrors the Mattermost send-attachment
resolver) to collect every alias into one canonical mediaUrl, reject
unsupported buffer/base64 payloads, and reject multiple attachments (Feishu
delivers one media item per message). thread-reply keeps its text-only path.

Related to openclaw#112244
@obviyus

obviyus commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

Maintainer verification on exact head 87d227b.

No code changes were needed on top of the contributor commit. The Feishu owner boundary now promotes supported attachment aliases, rejects unsupported or malformed attachment intent visibly, preserves the established document-comment link fallback, and carries caption receipts through Gateway partial-delivery errors.

ClawSweeper items:

  • Applied the Rank-up move by making the merge discussion explicit: unsupported, malformed, or multiple direct-send attachment values fail visibly instead of returning text-only ok:true.
  • Accepted the compatibility and message-delivery risk because this is the intended Feishu-only contract for values Feishu cannot represent.
  • No security concerns, maintainer decisions, or code findings remain.

Local gates:

  • git diff --check: pass
  • node_modules/.bin/oxfmt --check on six touched files: pass
  • node scripts/run-oxlint.mjs on six touched files: pass
  • pnpm tsgo:core: pass
  • pnpm tsgo:extensions: pass
  • pnpm check:test-types: pass
  • Changed tests: 122 Gateway tests and 285 Feishu tests passed
  • Full owner sweep: 3,615 passed; six unrelated ACP/subagent Gateway agent tests failed
  • Local ClawSweeper review on this exact head: pass; zero findings, security concerns, maintainer decisions, and Rank-up moves

Telegram default-turn probe: pass. Doctor passed, the real-user DM received OPENCLAW_E2E_OK, and the mock provider recorded three requests. Evidence: proof/pr-125664/telegram/summary.json.

CI: openclaw/ci-gate passed on run 32743402675 for this exact head. The unrelated owner-sweep failures are not part of this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: feishu Channel integration: feishu gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Feishu message send silently drops unsupported attachment params (file/filePath/attachments/…) and returns ok:true — attachment never sent

2 participants