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

推荐订阅源

Google DeepMind News
Google DeepMind News
aimingoo的专栏
aimingoo的专栏
爱范儿
爱范儿
D
Docker
I
InfoQ
Microsoft Security Blog
Microsoft Security Blog
G
Google Developers Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Vercel News
Vercel News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
Tailwind CSS Blog
D
DataBreaches.Net
月光博客
月光博客
N
Netflix TechBlog - Medium
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
V
Visual Studio Blog
MyScale Blog
MyScale Blog
B
Blog
阮一峰的网络日志
阮一峰的网络日志
L
LangChain Blog
Recent Announcements
Recent Announcements
Microsoft Azure Blog
Microsoft Azure Blog
WordPress大学
WordPress大学

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: restore models list registry fallback · openclaw/ope...
steipete · 2026-04-24 · via Recent Commits to openclaw:main

@@ -70,13 +70,16 @@ export async function modelsListCommand(

7070

providerFilter,

7171

useProviderCatalogFastPath,

7272

});

73+

const loadRegistryState = async () => {

74+

const loaded = await loadListModelRegistry(cfg, { providerFilter });

75+

modelRegistry = loaded.registry;

76+

discoveredKeys = loaded.discoveredKeys;

77+

availableKeys = loaded.availableKeys;

78+

availabilityErrorMessage = loaded.availabilityErrorMessage;

79+

};

7380

try {

7481

if (shouldLoadRegistry) {

75-

const loaded = await loadListModelRegistry(cfg, { providerFilter });

76-

modelRegistry = loaded.registry;

77-

discoveredKeys = loaded.discoveredKeys;

78-

availableKeys = loaded.availableKeys;

79-

availabilityErrorMessage = loaded.availabilityErrorMessage;

82+

await loadRegistryState();

8083

} else if (!opts.all) {

8184

const loaded = loadConfiguredListModelRegistry(cfg, entries, { providerFilter });

8285

modelRegistry = loaded.registry;

@@ -88,14 +91,7 @@ export async function modelsListCommand(

8891

process.exitCode = 1;

8992

return;

9093

}

91-

if (availabilityErrorMessage !== undefined) {

92-

runtime.error(

93-

`Model availability lookup failed; falling back to auth heuristics for discovered models: ${availabilityErrorMessage}`,

94-

);

95-

}

96-97-

const rows: ModelRow[] = [];

98-

const rowContext = {

94+

const buildRowContext = (skipRuntimeModelSuppression: boolean) => ({

9995

cfg,

10096

agentDir,

10197

authStore,

@@ -106,16 +102,35 @@ export async function modelsListCommand(

106102

provider: providerFilter,

107103

local: opts.local,

108104

},

109-

skipRuntimeModelSuppression: useProviderCatalogFastPath,

110-

};

105+

skipRuntimeModelSuppression,

106+

});

107+

const rows: ModelRow[] = [];

111108112109

if (opts.all) {

113-

await appendAllModelRowSources({

110+

let rowContext = buildRowContext(useProviderCatalogFastPath);

111+

const initialAppend = await appendAllModelRowSources({

114112

rows,

115113

context: rowContext,

116114

modelRegistry,

117115

useProviderCatalogFastPath,

118116

});

117+

if (initialAppend.requiresRegistryFallback) {

118+

try {

119+

await loadRegistryState();

120+

} catch (err) {

121+

runtime.error(`Model registry unavailable:\n${formatErrorWithStack(err)}`);

122+

process.exitCode = 1;

123+

return;

124+

}

125+

rows.length = 0;

126+

rowContext = buildRowContext(false);

127+

await appendAllModelRowSources({

128+

rows,

129+

context: rowContext,

130+

modelRegistry,

131+

useProviderCatalogFastPath: false,

132+

});

133+

}

119134

} else {

120135

const registry = modelRegistry;

121136

if (!registry) {

@@ -127,10 +142,16 @@ export async function modelsListCommand(

127142

rows,

128143

entries,

129144

modelRegistry: registry,

130-

context: rowContext,

145+

context: buildRowContext(false),

131146

});

132147

}

133148149+

if (availabilityErrorMessage !== undefined) {

150+

runtime.error(

151+

`Model availability lookup failed; falling back to auth heuristics for discovered models: ${availabilityErrorMessage}`,

152+

);

153+

}

154+134155

if (rows.length === 0) {

135156

runtime.log("No models found.");

136157

return;