惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
爱范儿
爱范儿
J
Java Code Geeks
L
LangChain Blog
V
V2EX
大猫的无限游戏
大猫的无限游戏
S
SegmentFault 最新的问题
博客园 - Franky
Microsoft Azure Blog
Microsoft Azure Blog
Jina AI
Jina AI
Blog — PlanetScale
Blog — PlanetScale
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Cloudflare Blog
博客园 - 司徒正美
B
Blog
G
Google Developers Blog
Stack Overflow Blog
Stack Overflow Blog
罗磊的独立博客
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Apple Machine Learning Research
Apple Machine Learning Research
Engineering at Meta
Engineering at Meta
MyScale Blog
MyScale Blog
有赞技术团队
有赞技术团队
Hugging Face - Blog
Hugging Face - Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
docs(slack): document attachment vision behavior and know...
haroldfabla2 · 2026-04-29 · via Recent Commits to openclaw:main

@@ -899,6 +899,71 @@ openclaw pairing list slack

899899

</Accordion>

900900

</AccordionGroup>

901901902+

## Attachment vision reference

903+904+

Slack can attach downloaded media to the agent turn when Slack file downloads succeed and size limits permit. Image files can be passed through the media understanding path or directly to a vision-capable reply model; other files are retained as downloadable file context rather than treated as image input.

905+906+

### Supported media types

907+908+

| Media type | Source | Current behavior | Notes |

909+

| ------------------------------ | -------------------- | --------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |

910+

| JPEG / PNG / GIF / WebP images | Slack file URL | Downloaded and attached to the turn for vision-capable handling | Per-file cap: `channels.slack.mediaMaxMb` (default 20 MB) |

911+

| PDF files | Slack file URL | Downloaded and exposed as file context for tools such as `download-file` or `pdf` | Slack inbound does not convert PDFs into image-vision input automatically |

912+

| Other files | Slack file URL | Downloaded when possible and exposed as file context | Binary files are not treated as image input |

913+

| Thread replies | Thread starter files | Root-message files can be hydrated as context when the reply has no direct media | File-only starters use an attachment placeholder |

914+

| Multi-image messages | Multiple Slack files | Each file is evaluated independently | Slack processing is capped at eight files per message |

915+916+

### Inbound pipeline

917+918+

When a Slack message with file attachments arrives:

919+920+

1. OpenClaw downloads the file from Slack's private URL using the bot token (`xoxb-...`).

921+

2. The file is written to the media store on success.

922+

3. Downloaded media paths and content types are added to the inbound context.

923+

4. Image-capable model/tool paths can use image attachments from that context.

924+

5. Non-image files remain available as file metadata or media references for tools that can handle them.

925+926+

### Thread-root attachment inheritance

927+928+

When a message arrives in a thread (has a `thread_ts` parent):

929+930+

- If the reply itself has no direct media and the included root message has files, Slack can hydrate the root files as thread-starter context.

931+

- Direct reply attachments take precedence over root-message attachments.

932+

- A root message that has only files and no text is represented with an attachment placeholder so the fallback can still include its files.

933+934+

### Multi-attachment handling

935+936+

When a single Slack message contains multiple file attachments:

937+938+

- Each attachment is processed independently through the media pipeline.

939+

- Downloaded media references are aggregated into the message context.

940+

- Processing order follows Slack's file order in the event payload.

941+

- A failure in one attachment's download does not block others.

942+943+

### Size, download, and model limits

944+945+

- **Size cap**: Default 20 MB per file. Configurable via `channels.slack.mediaMaxMb`.

946+

- **Download failures**: Files that Slack cannot serve, expired URLs, inaccessible files, oversize files, and Slack auth/login HTML responses are skipped instead of being reported as unsupported formats.

947+

- **Vision model**: Image analysis uses the active reply model when it supports vision, or the image model configured at `agents.defaults.imageModel`.

948+949+

### Known limits

950+951+

| Scenario | Current behavior | Workaround |

952+

| -------------------------------------- | ---------------------------------------------------------------------------- | -------------------------------------------------------------------------- |

953+

| Expired Slack file URL | File skipped; no error shown | Re-upload the file in Slack |

954+

| Vision model not configured | Image attachments are stored as media references, but not analyzed as images | Configure `agents.defaults.imageModel` or use a vision-capable reply model |

955+

| Very large images (> 20 MB by default) | Skipped per size cap | Increase `channels.slack.mediaMaxMb` if Slack allows |

956+

| Forwarded/shared attachments | Text and Slack-hosted image/file media are best-effort | Re-share directly in the OpenClaw thread |

957+

| PDF attachments | Stored as file/media context, not automatically routed through image vision | Use `download-file` for file metadata or the `pdf` tool for PDF analysis |

958+959+

### Related documentation

960+961+

- [Media understanding pipeline](/nodes/media-understanding)

962+

- [PDF tool](/tools/pdf)

963+

- Epic: [#51349](https://github.com/openclaw/openclaw/issues/51349) — Slack attachment vision enablement

964+

- Regression tests: [#51353](https://github.com/openclaw/openclaw/issues/51353)

965+

- Live verification: [#51354](https://github.com/openclaw/openclaw/issues/51354)

966+902967

## Related

903968904969

<CardGroup cols={2}>