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

推荐订阅源

量子位
WordPress大学
WordPress大学
小众软件
小众软件
云风的 BLOG
云风的 BLOG
IT之家
IT之家
人人都是产品经理
人人都是产品经理
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Last Week in AI
Last Week in AI
博客园 - 【当耐特】
T
Tailwind CSS Blog
阮一峰的网络日志
阮一峰的网络日志
V
V2EX
宝玉的分享
宝玉的分享
博客园 - Franky
F
Fortinet All Blogs
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
GbyAI
GbyAI
Hugging Face - Blog
Hugging Face - Blog
Jina AI
Jina AI
D
Docker
博客园 - 聂微东
C
Check Point Blog
H
Help Net Security

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
fix(slack): return non-image downloads as files · opencla...
steipete · 2026-04-25 · via Recent Commits to openclaw:main

@@ -558,18 +558,18 @@ describe("resolveSlackMedia", () => {

558558559559

const result = await resolveSlackMedia({

560560

files: [

561-

{ url_private: "https://files.slack.com/a.jpg", name: "a.jpg" },

562-

{ url_private: "https://files.slack.com/b.png", name: "b.png" },

561+

{ id: "FA", url_private: "https://files.slack.com/a.jpg", name: "a.jpg" },

562+

{ id: "FB", url_private: "https://files.slack.com/b.png", name: "b.png" },

563563

],

564564

token: "xoxb-test-token",

565565

maxBytes: 1024 * 1024,

566566

});

567567568568

expect(result).toHaveLength(2);

569569

expect(result![0].path).toBe("/tmp/a.jpg");

570-

expect(result![0].placeholder).toBe("[Slack file: a.jpg]");

570+

expect(result![0].placeholder).toBe("[Slack file: a.jpg (fileId: FA)]");

571571

expect(result![1].path).toBe("/tmp/b.png");

572-

expect(result![1].placeholder).toBe("[Slack file: b.png]");

572+

expect(result![1].placeholder).toBe("[Slack file: b.png (fileId: FB)]");

573573

});

574574575575

it("caps downloads to 8 files for large multi-attachment messages", async () => {

@@ -867,7 +867,7 @@ describe("resolveSlackThreadHistory", () => {

867867

it("includes file-only messages and drops empty-only entries", async () => {

868868

const replies = vi.fn().mockResolvedValueOnce({

869869

messages: [

870-

{ text: " ", ts: "1.000", files: [{ name: "screenshot.png" }] },

870+

{ text: " ", ts: "1.000", files: [{ id: "FSCREEN", name: "screenshot.png" }] },

871871

{ text: " ", ts: "2.000" },

872872

{ text: "hello", ts: "3.000", user: "U1" },

873873

],

@@ -885,7 +885,7 @@ describe("resolveSlackThreadHistory", () => {

885885

});

886886887887

expect(result).toHaveLength(2);

888-

expect(result[0]?.text).toBe("[attached: screenshot.png]");

888+

expect(result[0]?.text).toBe("[attached: screenshot.png (fileId: FSCREEN)]");

889889

expect(result[1]?.text).toBe("hello");

890890

});

891891

@@ -982,7 +982,7 @@ describe("resolveSlackThreadStarter", () => {

982982

text: " ",

983983

user: "U1",

984984

ts: "1.000",

985-

files: [{ name: "root.png", mimetype: "image/png" }],

985+

files: [{ id: "FROOT", name: "root.png", mimetype: "image/png" }],

986986

},

987987

],

988988

});

@@ -997,11 +997,11 @@ describe("resolveSlackThreadStarter", () => {

997997

});

998998999999

expect(result).toEqual({

1000-

text: "[attached: root.png]",

1000+

text: "[attached: root.png (fileId: FROOT)]",

10011001

userId: "U1",

10021002

botId: undefined,

10031003

ts: "1.000",

1004-

files: [{ name: "root.png", mimetype: "image/png" }],

1004+

files: [{ id: "FROOT", name: "root.png", mimetype: "image/png" }],

10051005

});

10061006

expect(vi.mocked(logVerbose)).not.toHaveBeenCalled();

10071007

});