Repository navigation
fix(zalouser): deliver received attachments as readable media - #192608
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
Collaborator
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 5, 2026
…aw#192608) Carry received Zalo Personal files, photos, and videos through the shared guarded media store into agent input. Preserve original document names, admission and command checks, cancellation, CDN/HTTPS/private-network/redirect/size/MIME limits, and rejected-file cleanup. Synthetic durable-ingress regressions prove the missing handoff red on main and green with the repair, including authorization and cleanup controls. Independent review and exact-head CI cover the final candidate. Supersedes openclaw#159253, thanks @ceo633. Closes openclaw#159249.
RomneyDa
added a commit
that referenced
this pull request
Nov 17, 2026
…90730) Keep line breaks and indentation after channel-specific mention removal. Retain existing single-line whitespace normalization. Release adaptation: extend the maintenance-line Feishu bot.test.ts command admission coverage rather than restoring the newer bot.commands.test.ts harness. Production changes are the original three parser hunks. Companion dispositions: #190975 concerns the independent Zalo group cache clock test; #192608 concerns attachment handoff, not text command parsing; #197656 removes main-only retired test allocations. All are not applicable to this bounded backport. No later #190730 mention through bd692e9. (cherry picked from commit 2bd7edf) Co-authored-by: Masato Hoshino <[email protected]> Co-authored-by: RomneyDa <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Supersedes #159253, thanks @ceo633.
Closes #159249.
What Problem This Solves
Fixes: files, photos, and videos received through Zalo Personal reach the agent as filenames and CDN links without readable attachments.
User Impact
Authorized attachments reach the agent as stored media with their original document filenames. Failed downloads leave an attachment-unavailable notice alongside the message. No configuration change is required.
Why This Change Was Made
Carry recognized received attachments through Zalouser's existing normalizer and monitor into the shared media store and inbound context. Downloads run after sender and mention checks, enforce HTTPS and Zalo CDN hosts across redirects, retain private-network/MIME/size protections and deadlines, and honor monitor and ingress cancellation. Recheck sender and command access before downloading and before dispatch; retire newly staged files if access or cancellation rejects the turn.
Production grows by 105 lines because the handoff was missing. There is no dead or duplicate media path in this owner to remove without unrelated changes. The repair adds no transport abstraction, SDK capability, dependency, or configuration option. A separate 219-line regression allocation covers the new durable-ingress suite; the shared test budget is unchanged.
Evidence
9e59d23aff4d553dd264133d5efeffd10e359a40: all five initial cases failed because no readable media was materialized; the same cases passed with the repair.Final head
09d73ac2bbba30845f04ea9731b8ffea8e5f87ca: 48 checks pass, 58 are skipped, and none are pending or failed. Linux CI and macOS CI are green.