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

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
云风的 BLOG
云风的 BLOG
IT之家
IT之家
C
Check Point Blog
T
The Blog of Author Tim Ferriss
S
SegmentFault 最新的问题
人人都是产品经理
人人都是产品经理
H
Hackread – Cybersecurity News, Data Breaches, AI and More
美团技术团队
M
MIT News - Artificial intelligence
Jina AI
Jina AI
Blog — PlanetScale
Blog — PlanetScale
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Microsoft Security Blog
Microsoft Security Blog
G
Google Developers Blog
F
Fortinet All Blogs
V
Visual Studio Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
T
Tailwind CSS Blog
Hugging Face - Blog
Hugging Face - Blog
MyScale Blog
MyScale Blog
爱范儿
爱范儿
The Cloudflare Blog
博客园 - 三生石上(FineUI控件)

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(tools): honor config apiKey in media tool preflight (...
hxy91819 · 2026-05-23 · via Recent Commits to openclaw:main

@@ -27,7 +27,7 @@ import {

2727

import {

2828

buildToolModelConfigFromCandidates,

2929

coerceToolModelConfig,

30-

hasAuthForProvider,

30+

hasProviderAuthForTool,

3131

hasToolModelConfig,

3232

resolveDefaultModelRef,

3333

type ToolModelConfig,

@@ -192,6 +192,7 @@ export function isCapabilityProviderConfigured<T extends CapabilityProvider>(par

192192

provider?: T;

193193

providerId?: string;

194194

cfg?: OpenClawConfig;

195+

workspaceDir?: string;

195196

agentDir?: string;

196197

authStore?: AuthProfileStore;

197198

}): boolean {

@@ -203,8 +204,10 @@ export function isCapabilityProviderConfigured<T extends CapabilityProvider>(par

203204

});

204205

if (!provider) {

205206

return params.providerId

206-

? hasAuthForProvider({

207+

? hasProviderAuthForTool({

207208

provider: params.providerId,

209+

cfg: params.cfg,

210+

workspaceDir: params.workspaceDir,

208211

agentDir: params.agentDir,

209212

authStore: params.authStore,

210213

})

@@ -216,8 +219,10 @@ export function isCapabilityProviderConfigured<T extends CapabilityProvider>(par

216219

agentDir: params.agentDir,

217220

});

218221

}

219-

return hasAuthForProvider({

222+

return hasProviderAuthForTool({

220223

provider: provider.id,

224+

cfg: params.cfg,

225+

workspaceDir: params.workspaceDir,

221226

agentDir: params.agentDir,

222227

authStore: params.authStore,

223228

});

@@ -251,6 +256,7 @@ export function resolveSelectedCapabilityProvider<T extends CapabilityProvider>(

251256252257

function resolveCapabilityModelCandidatesForTool(params: {

253258

cfg?: OpenClawConfig;

259+

workspaceDir?: string;

254260

agentDir?: string;

255261

authStore?: AuthProfileStore;

256262

providers: CapabilityProvider[];

@@ -267,6 +273,7 @@ function resolveCapabilityModelCandidatesForTool(params: {

267273

providers: params.providers,

268274

provider,

269275

cfg: params.cfg,

276+

workspaceDir: params.workspaceDir,

270277

agentDir: params.agentDir,

271278

authStore: params.authStore,

272279

})

@@ -309,6 +316,7 @@ function resolveCapabilityModelCandidatesForTool(params: {

309316310317

export function resolveCapabilityModelConfigForTool(params: {

311318

cfg?: OpenClawConfig;

319+

workspaceDir?: string;

312320

agentDir?: string;

313321

authStore?: AuthProfileStore;

314322

modelConfig?: AgentModelConfig;

@@ -326,10 +334,13 @@ export function resolveCapabilityModelConfigForTool(params: {

326334

};

327335

return buildToolModelConfigFromCandidates({

328336

explicit,

337+

cfg: params.cfg,

338+

workspaceDir: params.workspaceDir,

329339

agentDir: params.agentDir,

330340

authStore: params.authStore,

331341

candidates: resolveCapabilityModelCandidatesForTool({

332342

cfg: params.cfg,

343+

workspaceDir: params.workspaceDir,

333344

agentDir: params.agentDir,

334345

authStore: params.authStore,

335346

providers: getProviders(),

@@ -339,6 +350,7 @@ export function resolveCapabilityModelConfigForTool(params: {

339350

providers: getProviders(),

340351

providerId,

341352

cfg: params.cfg,

353+

workspaceDir: params.workspaceDir,

342354

agentDir: params.agentDir,

343355

authStore: params.authStore,

344356

}),

@@ -367,6 +379,7 @@ export function hasGenerationToolAvailability(params: {

367379

providers,

368380

provider,

369381

cfg: params.cfg,

382+

workspaceDir: params.workspaceDir,

370383

agentDir: params.agentDir,

371384

authStore: params.authStore,

372385

}),

@@ -396,8 +409,10 @@ export function hasGenerationToolAvailability(params: {

396409

contract: params.providerKey,

397410

config: params.cfg,

398411

}).some((providerId) =>

399-

hasAuthForProvider({

412+

hasProviderAuthForTool({

400413

provider: providerId,

414+

cfg: params.cfg,

415+

workspaceDir: params.workspaceDir,

401416

agentDir: params.agentDir,

402417

authStore: params.authStore,

403418

}),