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

推荐订阅源

S
SegmentFault 最新的问题
B
Blog
P
Proofpoint News Feed
美团技术团队
The GitHub Blog
The GitHub Blog
Y
Y Combinator Blog
A
About on SuperTechFans
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Vercel News
Vercel News
有赞技术团队
有赞技术团队
小众软件
小众软件
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Google DeepMind News
Google DeepMind News
Martin Fowler
Martin Fowler
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
aimingoo的专栏
aimingoo的专栏
H
Help Net Security
罗磊的独立博客
L
LangChain Blog
GbyAI
GbyAI
腾讯CDC
T
The Blog of Author Tim Ferriss
Microsoft Security Blog
Microsoft Security 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
fix: keep configured media STT providers registered · ope...
steipete · 2026-05-01 · via Recent Commits to openclaw:main

@@ -241,6 +241,43 @@ function collectRequestedSpeechProviderIds(cfg: OpenClawConfig | undefined): Set

241241

return requested;

242242

}

243243244+

function addMediaModelProviders(target: Set<string>, value: unknown): void {

245+

if (!Array.isArray(value)) {

246+

return;

247+

}

248+

for (const entry of value) {

249+

if (typeof entry === "object" && entry !== null) {

250+

addStringValue(target, (entry as { provider?: unknown }).provider);

251+

}

252+

}

253+

}

254+255+

function collectRequestedMediaUnderstandingProviderIds(

256+

cfg: OpenClawConfig | undefined,

257+

): Set<string> {

258+

const requested = new Set<string>();

259+

const media = cfg?.tools?.media;

260+

addMediaModelProviders(requested, media?.models);

261+

addMediaModelProviders(requested, media?.image?.models);

262+

addMediaModelProviders(requested, media?.audio?.models);

263+

addMediaModelProviders(requested, media?.video?.models);

264+

return requested;

265+

}

266+267+

function collectRequestedCapabilityProviderIds(params: {

268+

key: CapabilityProviderRegistryKey;

269+

cfg?: OpenClawConfig;

270+

}): Set<string> | undefined {

271+

switch (params.key) {

272+

case "speechProviders":

273+

return collectRequestedSpeechProviderIds(params.cfg);

274+

case "mediaUnderstandingProviders":

275+

return collectRequestedMediaUnderstandingProviderIds(params.cfg);

276+

default:

277+

return undefined;

278+

}

279+

}

280+244281

function removeActiveProviderIds(requested: Set<string>, entries: readonly unknown[]): void {

245282

for (const entry of entries as Array<{ provider: { id?: unknown; aliases?: unknown } }>) {

246283

const provider = entry.provider as { id?: unknown; aliases?: unknown };

@@ -262,7 +299,7 @@ function filterLoadedProvidersForRequestedConfig<K extends CapabilityProviderReg

262299

requested: Set<string>;

263300

entries: PluginRegistry[K];

264301

}): PluginRegistry[K] {

265-

if (params.key !== "speechProviders") {

302+

if (params.key !== "speechProviders" && params.key !== "mediaUnderstandingProviders") {

266303

return [] as unknown as PluginRegistry[K];

267304

}

268305

if (params.requested.size === 0) {

@@ -341,23 +378,16 @@ export function resolvePluginCapabilityProviders<K extends CapabilityProviderReg

341378342379

const activeRegistry = resolveRuntimePluginRegistry();

343380

const activeProviders = activeRegistry?.[params.key] ?? [];

344-

if (

345-

activeProviders.length > 0 &&

346-

params.key !== "memoryEmbeddingProviders" &&

347-

params.key !== "speechProviders"

348-

) {

349-

return activeProviders.map((entry) => entry.provider) as CapabilityProviderForKey<K>[];

350-

}

351-

if (activeProviders.length > 0 && params.key === "speechProviders" && !params.cfg) {

352-

return activeProviders.map((entry) => entry.provider) as CapabilityProviderForKey<K>[];

353-

}

354-

const missingRequestedSpeechProviders =

355-

activeProviders.length > 0 && params.key === "speechProviders"

356-

? collectRequestedSpeechProviderIds(params.cfg)

381+

const missingRequestedProviders =

382+

activeProviders.length > 0

383+

? collectRequestedCapabilityProviderIds({ key: params.key, cfg: params.cfg })

357384

: undefined;

358-

if (missingRequestedSpeechProviders) {

359-

removeActiveProviderIds(missingRequestedSpeechProviders, activeProviders);

360-

if (missingRequestedSpeechProviders.size === 0) {

385+

if (activeProviders.length > 0 && params.key !== "memoryEmbeddingProviders") {

386+

if (!missingRequestedProviders) {

387+

return activeProviders.map((entry) => entry.provider) as CapabilityProviderForKey<K>[];

388+

}

389+

removeActiveProviderIds(missingRequestedProviders, activeProviders);

390+

if (missingRequestedProviders.size === 0) {

361391

return activeProviders.map((entry) => entry.provider) as CapabilityProviderForKey<K>[];

362392

}

363393

}

@@ -390,7 +420,7 @@ export function resolvePluginCapabilityProviders<K extends CapabilityProviderReg

390420

activeProviders.length > 0

391421

? filterLoadedProvidersForRequestedConfig({

392422

key: params.key,

393-

requested: missingRequestedSpeechProviders ?? new Set(),

423+

requested: missingRequestedProviders ?? new Set(),

394424

entries: loadedProviders,

395425

})

396426

: loadedProviders;