Skip to content

Added support for attachment path - #32

Open
dodaa08 wants to merge 4 commits into
mainfrom
Inbound-fix
Open

Added support for attachment path#32
dodaa08 wants to merge 4 commits into
mainfrom
Inbound-fix

Conversation

@dodaa08

@dodaa08 dodaa08 commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Inbound Media Context

buildMediaContext() in src/service/inbound.ts downloads inbound Rocket.Chat file attachments to temp paths (or preserves URLs) and exposes them to OpenClaw core for media understanding. It emits both legacy Media* fields and newer Attachment* compatibility keys:

Family Keys
Path MediaPath/MediaPaths, AttachmentPath/AttachmentPaths
URL MediaUrl/MediaUrls, AttachmentUrl/AttachmentUrls
Type/MIME MediaType/MediaTypes, AttachmentContentType/AttachmentContentTypes
Directory AttachmentDir/AttachmentDirs
Index AttachmentIndex/AttachmentIndexes

Core reads MediaPath/MediaUrls/MediaType via normalizeAttachments(); the Attachment* names are the CLI-template tokens referenced in docs.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant