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

推荐订阅源

G
Google Developers Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
WordPress大学
WordPress大学
阮一峰的网络日志
阮一峰的网络日志
V
Visual Studio Blog
雷峰网
雷峰网
博客园_首页
The Cloudflare Blog
Hugging Face - Blog
Hugging Face - Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
爱范儿
爱范儿
小众软件
小众软件
D
Docker
P
Proofpoint News Feed
B
Blog
Vercel News
Vercel News
B
Blog RSS Feed
U
Unit 42
月光博客
月光博客
The GitHub Blog
The GitHub Blog
Apple Machine Learning Research
Apple Machine Learning Research
Y
Y Combinator Blog
I
InfoQ
Recent Announcements
Recent Announcements

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: register opencode image understanding · openclaw/ope...
steipete · 2026-04-25 · via Recent Commits to openclaw:main

@@ -127,6 +127,8 @@ vi.mock("../model-auth.js", () => ({

127127

"minimax-portal": ["MINIMAX_OAUTH_TOKEN"],

128128

moonshot: ["MOONSHOT_API_KEY"],

129129

openai: ["OPENAI_API_KEY"],

130+

opencode: ["OPENCODE_API_KEY", "OPENCODE_ZEN_API_KEY"],

131+

"opencode-go": ["OPENCODE_API_KEY", "OPENCODE_ZEN_API_KEY"],

130132

openrouter: ["OPENROUTER_API_KEY"],

131133

zai: ["ZAI_API_KEY", "Z_AI_API_KEY"],

132134

};

@@ -180,6 +182,8 @@ async function createOpenClawCodingToolsWithFreshModules(options?: CreateOpenCla

180182

["minimax", "MiniMax-VL-01"],

181183

["minimax-portal", "MiniMax-VL-01"],

182184

["openai", "gpt-5.4-mini"],

185+

["opencode", "gpt-5-nano"],

186+

["opencode-go", "kimi-k2.5"],

183187

["zai", "glm-4.6v"],

184188

]);

185189

__testing.setProviderDepsForTest({

@@ -479,6 +483,8 @@ function installImageUnderstandingProviderStubs(...providers: MediaUnderstanding

479483

["minimax", "MiniMax-VL-01"],

480484

["minimax-portal", "MiniMax-VL-01"],

481485

["openai", "gpt-5.4-mini"],

486+

["opencode", "gpt-5-nano"],

487+

["opencode-go", "kimi-k2.5"],

482488

["zai", "glm-4.6v"],

483489

]);

484490

__testing.setProviderDepsForTest({

@@ -691,6 +697,32 @@ describe("image tool implicit imageModel config", () => {

691697

});

692698

});

693699700+

it("pairs opencode primary with the plugin-owned image model when auth exists", async () => {

701+

await withTempAgentDir(async (agentDir) => {

702+

vi.stubEnv("OPENCODE_API_KEY", "opencode-test");

703+

const cfg: OpenClawConfig = {

704+

agents: { defaults: { model: { primary: "opencode/minimax-m2.7" } } },

705+

};

706+

expect(resolveImageModelConfigForTool({ cfg, agentDir })).toEqual({

707+

primary: "opencode/gpt-5-nano",

708+

});

709+

expect(createImageTool({ config: cfg, agentDir })).not.toBeNull();

710+

});

711+

});

712+713+

it("pairs opencode-go primary with the Go plugin-owned image model when auth exists", async () => {

714+

await withTempAgentDir(async (agentDir) => {

715+

vi.stubEnv("OPENCODE_API_KEY", "opencode-test");

716+

const cfg: OpenClawConfig = {

717+

agents: { defaults: { model: { primary: "opencode-go/kimi-k2.6" } } },

718+

};

719+

expect(resolveImageModelConfigForTool({ cfg, agentDir })).toEqual({

720+

primary: "opencode-go/kimi-k2.5",

721+

});

722+

expect(createImageTool({ config: cfg, agentDir })).not.toBeNull();

723+

});

724+

});

725+694726

it("pairs zai primary with glm-4.6v (and fallbacks) when auth exists", async () => {

695727

await withTempAgentDir(async (agentDir) => {

696728

vi.stubEnv("ZAI_API_KEY", "zai-test");