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

推荐订阅源

D
DataBreaches.Net
IT之家
IT之家
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
WordPress大学
WordPress大学
N
Netflix TechBlog - Medium
阮一峰的网络日志
阮一峰的网络日志
P
Proofpoint News Feed
L
LangChain Blog
博客园 - Franky
美团技术团队
J
Java Code Geeks
Microsoft Security Blog
Microsoft Security Blog
博客园 - 叶小钗
小众软件
小众软件
Y
Y Combinator Blog
B
Blog RSS Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
D
Docker
Hugging Face - Blog
Hugging Face - Blog
Jina AI
Jina AI
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
Vercel News
Vercel News

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(cli): report missing infer media providers · openclaw...
steipete · 2026-05-02 · via Recent Commits to openclaw:main

@@ -782,6 +782,51 @@ describe("capability cli", () => {

782782

);

783783

});

784784785+

it("reports missing image understanding configuration for image describe", async () => {

786+

mocks.describeImageFile.mockResolvedValueOnce({

787+

text: undefined,

788+

decision: {

789+

capability: "image",

790+

outcome: "skipped",

791+

attachments: [{ attachmentIndex: 0, attempts: [] }],

792+

},

793+

} as never);

794+795+

await expect(

796+

runRegisteredCli({

797+

register: registerCapabilityCli as (program: Command) => void,

798+

argv: ["capability", "image", "describe", "--file", "photo.jpg", "--json"],

799+

}),

800+

).rejects.toThrow("exit 1");

801+

expect(mocks.runtime.error).toHaveBeenCalledWith(

802+

expect.stringContaining("No image understanding provider is configured or ready"),

803+

);

804+

expect(mocks.runtime.error).toHaveBeenCalledWith(

805+

expect.stringContaining("agents.defaults.imageModel.primary"),

806+

);

807+

});

808+809+

it("reports missing image understanding configuration for image describe-many", async () => {

810+

mocks.describeImageFile.mockResolvedValueOnce({

811+

text: undefined,

812+

decision: {

813+

capability: "image",

814+

outcome: "skipped",

815+

attachments: [{ attachmentIndex: 0, attempts: [] }],

816+

},

817+

} as never);

818+819+

await expect(

820+

runRegisteredCli({

821+

register: registerCapabilityCli as (program: Command) => void,

822+

argv: ["capability", "image", "describe-many", "--file", "photo.jpg", "--json"],

823+

}),

824+

).rejects.toThrow("exit 1");

825+

expect(mocks.runtime.error).toHaveBeenCalledWith(

826+

expect.stringContaining("No image understanding provider is configured or ready"),

827+

);

828+

});

829+785830

it("rewrites mismatched explicit image output extensions to the detected file type", async () => {

786831

const jpegBase64 =

787832

"/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxAQEBUQEBAVFRUVFRUVFRUVFRUVFRUVFRUXFhUVFRUYHSggGBolHRUVITEhJSkrLi4uFx8zODMsNygtLisBCgoKDg0OGhAQGi0fHyUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLf/AABEIAAEAAQMBIgACEQEDEQH/xAAXAAEBAQEAAAAAAAAAAAAAAAAAAQID/8QAFhEBAQEAAAAAAAAAAAAAAAAAAAER/9oADAMBAAIQAxAAAAH2AP/EABgQAQEAAwAAAAAAAAAAAAAAAAEAEQIS/9oACAEBAAEFAk1o7//EABYRAQEBAAAAAAAAAAAAAAAAAAABEf/aAAgBAwEBPwGn/8QAFhEBAQEAAAAAAAAAAAAAAAAAABEB/9oACAECAQE/AYf/xAAaEAACAgMAAAAAAAAAAAAAAAABEQAhMUFh/9oACAEBAAY/AjK9cY2f/8QAGhABAQACAwAAAAAAAAAAAAAAAAERITFBUf/aAAgBAQABPyGQk7W5jVYkA//Z";

@@ -1278,6 +1323,30 @@ describe("capability cli", () => {

12781323

);

12791324

});

128013251326+

it("reports missing audio transcription configuration for audio transcribe", async () => {

1327+

mocks.transcribeAudioFile.mockResolvedValueOnce({

1328+

text: undefined,

1329+

decision: {

1330+

capability: "audio",

1331+

outcome: "skipped",

1332+

attachments: [{ attachmentIndex: 0, attempts: [] }],

1333+

},

1334+

} as never);

1335+1336+

await expect(

1337+

runRegisteredCli({

1338+

register: registerCapabilityCli as (program: Command) => void,

1339+

argv: ["capability", "audio", "transcribe", "--file", "memo.m4a", "--json"],

1340+

}),

1341+

).rejects.toThrow("exit 1");

1342+

expect(mocks.runtime.error).toHaveBeenCalledWith(

1343+

expect.stringContaining("No audio transcription provider is configured or ready"),

1344+

);

1345+

expect(mocks.runtime.error).toHaveBeenCalledWith(

1346+

expect.stringContaining("tools.media.audio.models"),

1347+

);

1348+

});

1349+12811350

it("surfaces the underlying transcription failure for audio transcribe", async () => {

12821351

mocks.transcribeAudioFile.mockRejectedValueOnce(

12831352

new Error("Audio transcription response missing text"),