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

推荐订阅源

V
Visual Studio Blog
Stack Overflow Blog
Stack Overflow Blog
G
Google Developers Blog
Microsoft Azure Blog
Microsoft Azure Blog
Engineering at Meta
Engineering at Meta
L
LangChain Blog
T
The Blog of Author Tim Ferriss
J
Java Code Geeks
Y
Y Combinator Blog
月光博客
月光博客
雷峰网
雷峰网
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
F
Fortinet All Blogs
A
About on SuperTechFans
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
P
Proofpoint News Feed
小众软件
小众软件
H
Help Net Security
Last Week in AI
Last Week in AI
B
Blog RSS Feed
宝玉的分享
宝玉的分享
N
Netflix TechBlog - Medium
博客园 - 叶小钗
The GitHub Blog
The GitHub 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
refactor(doctor): dedupe legacy TTS location scans · open...
vincentkoc · 2026-06-23 · via Recent Commits to openclaw:main

@@ -111,28 +111,30 @@ function hasLegacyTtsSpeakerSelectionInPersonas(value: unknown): boolean {

111111

});

112112

}

113113114-

function hasLegacyTtsSpeakerSelectionInAgentLocations(value: unknown): boolean {

114+

type LegacyTtsMatcher = (value: unknown) => boolean;

115+116+

function hasLegacyTtsInAgentLocations(value: unknown, matcher: LegacyTtsMatcher): boolean {

115117

const agents = getRecord(value);

116118

const agentList = Array.isArray(agents?.list) ? agents.list : [];

117-

return agentList.some((entry) => hasLegacyTtsSpeakerSelection(getRecord(getRecord(entry)?.tts)));

119+

return agentList.some((entry) => matcher(getRecord(getRecord(entry)?.tts)));

118120

}

119121120122

function supportsChannelRootTtsMigration(channelId: string): boolean {

121123

return !CHANNEL_ROOT_TTS_UNSUPPORTED_IDS.has(channelId.trim().toLowerCase());

122124

}

123125124-

function hasLegacyTtsSpeakerSelectionInChannelLocations(value: unknown): boolean {

126+

function hasLegacyTtsInChannelLocations(value: unknown, matcher: LegacyTtsMatcher): boolean {

125127

const channels = getRecord(value);

126128

for (const [channelId, channelValue] of Object.entries(channels ?? {})) {

127129

if (isBlockedObjectKey(channelId)) {

128130

continue;

129131

}

130132

const channel = getRecord(channelValue);

131133

const migrateRootTts = supportsChannelRootTtsMigration(channelId);

132-

if (migrateRootTts && hasLegacyTtsSpeakerSelection(getRecord(channel?.tts))) {

134+

if (migrateRootTts && matcher(getRecord(channel?.tts))) {

133135

return true;

134136

}

135-

if (hasLegacyTtsSpeakerSelection(getRecord(getRecord(channel?.voice)?.tts))) {

137+

if (matcher(getRecord(getRecord(channel?.voice)?.tts))) {

136138

return true;

137139

}

138140

const accounts = getRecord(channel?.accounts);

@@ -142,8 +144,8 @@ function hasLegacyTtsSpeakerSelectionInChannelLocations(value: unknown): boolean

142144

}

143145

const account = getRecord(accountValue);

144146

if (

145-

(migrateRootTts && hasLegacyTtsSpeakerSelection(getRecord(account?.tts))) ||

146-

hasLegacyTtsSpeakerSelection(getRecord(getRecord(account?.voice)?.tts))

147+

(migrateRootTts && matcher(getRecord(account?.tts))) ||

148+

matcher(getRecord(getRecord(account?.voice)?.tts))

147149

) {

148150

return true;

149151

}

@@ -152,7 +154,7 @@ function hasLegacyTtsSpeakerSelectionInChannelLocations(value: unknown): boolean

152154

return false;

153155

}

154156155-

function hasLegacyTtsSpeakerSelectionInPluginLocations(value: unknown): boolean {

157+

function hasLegacyTtsInPluginLocations(value: unknown, matcher: LegacyTtsMatcher): boolean {

156158

const entries = getRecord(value);

157159

if (!entries) {

158160

return false;

@@ -163,60 +165,32 @@ function hasLegacyTtsSpeakerSelectionInPluginLocations(value: unknown): boolean

163165

}

164166

const entry = getRecord(entryValue);

165167

const config = getRecord(entry?.config);

166-

return hasLegacyTtsSpeakerSelection(getRecord(config?.tts));

168+

return matcher(getRecord(config?.tts));

167169

});

168170

}

169171172+

function hasLegacyTtsSpeakerSelectionInAgentLocations(value: unknown): boolean {

173+

return hasLegacyTtsInAgentLocations(value, hasLegacyTtsSpeakerSelection);

174+

}

175+176+

function hasLegacyTtsSpeakerSelectionInChannelLocations(value: unknown): boolean {

177+

return hasLegacyTtsInChannelLocations(value, hasLegacyTtsSpeakerSelection);

178+

}

179+180+

function hasLegacyTtsSpeakerSelectionInPluginLocations(value: unknown): boolean {

181+

return hasLegacyTtsInPluginLocations(value, hasLegacyTtsSpeakerSelection);

182+

}

183+170184

function hasLegacyTtsEnabledInAgentLocations(value: unknown): boolean {

171-

const agents = getRecord(value);

172-

const agentList = Array.isArray(agents?.list) ? agents.list : [];

173-

return agentList.some((entry) => hasLegacyTtsEnabled(getRecord(getRecord(entry)?.tts)));

185+

return hasLegacyTtsInAgentLocations(value, hasLegacyTtsEnabled);

174186

}

175187176188

function hasLegacyTtsEnabledInChannelLocations(value: unknown): boolean {

177-

const channels = getRecord(value);

178-

for (const [channelId, channelValue] of Object.entries(channels ?? {})) {

179-

if (isBlockedObjectKey(channelId)) {

180-

continue;

181-

}

182-

const channel = getRecord(channelValue);

183-

const migrateRootTts = supportsChannelRootTtsMigration(channelId);

184-

if (migrateRootTts && hasLegacyTtsEnabled(getRecord(channel?.tts))) {

185-

return true;

186-

}

187-

if (hasLegacyTtsEnabled(getRecord(getRecord(channel?.voice)?.tts))) {

188-

return true;

189-

}

190-

const accounts = getRecord(channel?.accounts);

191-

for (const [accountId, accountValue] of Object.entries(accounts ?? {})) {

192-

if (isBlockedObjectKey(accountId)) {

193-

continue;

194-

}

195-

const account = getRecord(accountValue);

196-

if (

197-

(migrateRootTts && hasLegacyTtsEnabled(getRecord(account?.tts))) ||

198-

hasLegacyTtsEnabled(getRecord(getRecord(account?.voice)?.tts))

199-

) {

200-

return true;

201-

}

202-

}

203-

}

204-

return false;

189+

return hasLegacyTtsInChannelLocations(value, hasLegacyTtsEnabled);

205190

}

206191207192

function hasLegacyTtsEnabledInPluginLocations(value: unknown): boolean {

208-

const entries = getRecord(value);

209-

if (!entries) {

210-

return false;

211-

}

212-

return Object.entries(entries).some(([pluginId, entryValue]) => {

213-

if (isBlockedObjectKey(pluginId) || !LEGACY_TTS_PLUGIN_IDS.has(pluginId)) {

214-

return false;

215-

}

216-

const entry = getRecord(entryValue);

217-

const config = getRecord(entry?.config);

218-

return hasLegacyTtsEnabled(getRecord(config?.tts));

219-

});

193+

return hasLegacyTtsInPluginLocations(value, hasLegacyTtsEnabled);

220194

}

221195222196

function getOrCreateTtsProviders(tts: Record<string, unknown>): Record<string, unknown> {