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

推荐订阅源

A
About on SuperTechFans
Y
Y Combinator Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Microsoft Security Blog
Microsoft Security Blog
aimingoo的专栏
aimingoo的专栏
I
InfoQ
C
Check Point Blog
IT之家
IT之家
MyScale Blog
MyScale Blog
Apple Machine Learning Research
Apple Machine Learning Research
Vercel News
Vercel News
Last Week in AI
Last Week in AI
GbyAI
GbyAI
P
Proofpoint News Feed
量子位
Stack Overflow Blog
Stack Overflow Blog
Microsoft Azure Blog
Microsoft Azure Blog
月光博客
月光博客
阮一峰的网络日志
阮一峰的网络日志
人人都是产品经理
人人都是产品经理
B
Blog
T
The Blog of Author Tim Ferriss
H
Help Net Security
云风的 BLOG
云风的 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(configure): show provider model picker after setup · ...
obviyus · 2026-04-29 · via Recent Commits to openclaw:main

@@ -139,15 +139,21 @@ describe("promptAuthConfig", () => {

139139

mocks.applyAuthChoice.mockResolvedValue({ config: {} });

140140

mocks.promptModelAllowlist.mockResolvedValue({ models: undefined });

141141

mocks.resolveProviderPluginChoice.mockReturnValue({

142-

provider: { id: "anthropic", label: "Anthropic", auth: [] },

143-

method: { id: "setup-token", label: "setup-token", kind: "token" },

144-

wizard: {

145-

modelAllowlist: {

146-

allowedKeys: ["anthropic/claude-sonnet-4-6"],

147-

initialSelections: ["anthropic/claude-sonnet-4-6"],

148-

message: "Anthropic OAuth models",

142+

provider: {

143+

id: "anthropic",

144+

label: "Anthropic",

145+

auth: [],

146+

wizard: {

147+

setup: {

148+

modelAllowlist: {

149+

allowedKeys: ["anthropic/claude-sonnet-4-6"],

150+

initialSelections: ["anthropic/claude-sonnet-4-6"],

151+

message: "Anthropic OAuth models",

152+

},

153+

},

149154

},

150155

},

156+

method: { id: "setup-token", label: "setup-token", kind: "token" },

151157

});

152158153159

await promptAuthConfig({}, makeRuntime(), noopPrompter);

@@ -180,14 +186,20 @@ describe("promptAuthConfig", () => {

180186

scopeKeys: ["anthropic/claude-opus-4-6", "anthropic/claude-sonnet-4-6"],

181187

});

182188

mocks.resolveProviderPluginChoice.mockReturnValue({

183-

provider: { id: "anthropic", label: "Anthropic", auth: [] },

184-

method: { id: "setup-token", label: "setup-token", kind: "token" },

185-

wizard: {

186-

modelAllowlist: {

187-

allowedKeys: ["anthropic/claude-opus-4-6", "anthropic/claude-sonnet-4-6"],

188-

initialSelections: ["anthropic/claude-sonnet-4-6"],

189+

provider: {

190+

id: "anthropic",

191+

label: "Anthropic",

192+

auth: [],

193+

wizard: {

194+

setup: {

195+

modelAllowlist: {

196+

allowedKeys: ["anthropic/claude-opus-4-6", "anthropic/claude-sonnet-4-6"],

197+

initialSelections: ["anthropic/claude-sonnet-4-6"],

198+

},

199+

},

189200

},

190201

},

202+

method: { id: "setup-token", label: "setup-token", kind: "token" },

191203

});

192204193205

const result = await promptAuthConfig({}, makeRuntime(), noopPrompter);

@@ -223,14 +235,20 @@ describe("promptAuthConfig", () => {

223235

scopeKeys: ["openai/gpt-5.5", "openai/gpt-5.4-mini"],

224236

});

225237

mocks.resolveProviderPluginChoice.mockReturnValue({

226-

provider: { id: "openai", label: "OpenAI", auth: [] },

227-

method: { id: "setup-token", label: "setup-token", kind: "token" },

228-

wizard: {

229-

modelAllowlist: {

230-

allowedKeys: ["openai/gpt-5.5", "openai/gpt-5.4-mini"],

231-

initialSelections: ["openai/gpt-5.5"],

238+

provider: {

239+

id: "openai",

240+

label: "OpenAI",

241+

auth: [],

242+

wizard: {

243+

setup: {

244+

modelAllowlist: {

245+

allowedKeys: ["openai/gpt-5.5", "openai/gpt-5.4-mini"],

246+

initialSelections: ["openai/gpt-5.5"],

247+

},

248+

},

232249

},

233250

},

251+

method: { id: "setup-token", label: "setup-token", kind: "token" },

234252

});

235253236254

const result = await promptAuthConfig({}, makeRuntime(), noopPrompter);

@@ -245,6 +263,7 @@ describe("promptAuthConfig", () => {

245263

});

246264247265

it("scopes the allowlist picker to the selected provider when available", async () => {

266+

vi.clearAllMocks();

248267

mocks.promptAuthChoiceGrouped.mockResolvedValue("openai-api-key");

249268

mocks.resolvePreferredProviderForAuthChoice.mockResolvedValue("openai");

250269

mocks.applyAuthChoice.mockResolvedValue({ config: {} });

@@ -259,6 +278,39 @@ describe("promptAuthConfig", () => {

259278

);

260279

});

261280281+

it("loads configured provider models after Ollama Cloud + Local and Cloud only setup", async () => {

282+

vi.clearAllMocks();

283+

mocks.promptAuthChoiceGrouped.mockResolvedValue("ollama");

284+

mocks.resolvePreferredProviderForAuthChoice.mockResolvedValue(undefined);

285+

mocks.applyAuthChoice.mockResolvedValue({

286+

config: {

287+

models: {

288+

providers: {

289+

ollama: {

290+

baseUrl: "https://ollama.com",

291+

api: "ollama",

292+

models: [

293+

{ id: "kimi-k2.5:cloud", name: "kimi-k2.5:cloud" },

294+

{ id: "qwen3-coder:480b-cloud", name: "qwen3-coder:480b-cloud" },

295+

],

296+

},

297+

},

298+

},

299+

},

300+

});

301+

mocks.promptModelAllowlist.mockResolvedValue({ models: undefined });

302+

mocks.resolveProviderPluginChoice.mockReturnValue(null);

303+304+

await promptAuthConfig({}, makeRuntime(), noopPrompter);

305+306+

expect(mocks.promptModelAllowlist).toHaveBeenCalledWith(

307+

expect.objectContaining({

308+

preferredProvider: "ollama",

309+

loadCatalog: true,

310+

}),

311+

);

312+

});

313+262314

it("returns to auth selection when plugin install onboarding asks for a retry", async () => {

263315

vi.clearAllMocks();

264316

mocks.promptAuthChoiceGrouped