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

推荐订阅源

博客园_首页
H
Help Net Security
N
Netflix TechBlog - Medium
Apple Machine Learning Research
Apple Machine Learning Research
P
Proofpoint News Feed
A
About on SuperTechFans
V
V2EX
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
宝玉的分享
宝玉的分享
aimingoo的专栏
aimingoo的专栏
F
Fortinet All Blogs
博客园 - 【当耐特】
Microsoft Security Blog
Microsoft Security Blog
Martin Fowler
Martin Fowler
I
InfoQ
Google DeepMind News
Google DeepMind News
人人都是产品经理
人人都是产品经理
Engineering at Meta
Engineering at Meta
腾讯CDC
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
B
Blog RSS Feed
U
Unit 42
The Cloudflare Blog
Y
Y Combinator 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(qa): restore OpenAI OAuth release contracts · opencla...
steipete · 2026-05-31 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -389,6 +389,15 @@ export function buildOpenAIProvider(): ProviderPlugin {

389389

resolveUsageAuth: codexHooks.resolveUsageAuth,

390390

fetchUsageSnapshot: codexHooks.fetchUsageSnapshot,

391391

refreshOAuth: codexHooks.refreshOAuth,

392+

buildMissingAuthMessage: (ctx) => {

393+

if (normalizeProviderId(ctx.provider) !== PROVIDER_ID) {

394+

return undefined;

395+

}

396+

if (ctx.listProfileIds(PROVIDER_ID).length === 0) {

397+

return undefined;

398+

}

399+

return 'No API key found for provider "openai". You are authenticated with OpenAI ChatGPT/Codex OAuth. Use openai/gpt-5.5 with the ChatGPT/Codex OAuth profile, or set OPENAI_API_KEY for direct OpenAI API access.';

400+

},

392401

matchesContextOverflowError: ({ errorMessage }) =>

393402

/content_filter.*(?:prompt|input).*(?:too long|exceed)/i.test(errorMessage),

394403

resolveReasoningOutputMode: () => "native",

Original file line numberDiff line numberDiff line change

@@ -117,7 +117,7 @@ export function describeOpenAIProviderCatalogContract() {

117117

const { openaiProvider } = await contractDepsPromise;

118118

expectCodexMissingAuthHint(

119119

(params) => openaiProvider.buildMissingAuthMessage?.(params.context) ?? undefined,

120-

"openai/gpt-*",

120+

"openai/gpt-5.5",

121121

);

122122

});

123123
Original file line numberDiff line numberDiff line change

@@ -27,7 +27,9 @@ describe("qa model selection runtime", () => {

2727

vi.clearAllMocks();

2828

resolveEnvApiKey.mockReturnValue(undefined);

2929

loadAuthProfileStoreForRuntime.mockReturnValue({ profiles: {} });

30-

listProfilesForProvider.mockReturnValue([]);

30+

listProfilesForProvider.mockImplementation((store: { profiles?: Record<string, unknown> }) =>

31+

Object.keys(store.profiles ?? {}),

32+

);

3133

});

3234
3335

it("keeps the OpenAI live default when an API key is configured", () => {

@@ -39,9 +41,14 @@ describe("qa model selection runtime", () => {

3941

});

4042
4143

it("prefers the Codex OAuth live default when only Codex auth profiles are available", () => {

42-

listProfilesForProvider.mockImplementation((_store: unknown, provider: string) =>

43-

provider === "openai" ? ["openai:user@example.com"] : [],

44-

);

44+

loadAuthProfileStoreForRuntime.mockReturnValue({

45+

profiles: {

46+

"openai:user@example.com": {

47+

provider: "openai",

48+

mode: "oauth",

49+

},

50+

},

51+

});

4552
4653

expect(resolveQaPreferredLiveModel()).toBe("openai/gpt-5.5");

4754

expect(defaultQaRuntimeModelForMode("live-frontier")).toBe("openai/gpt-5.5");

@@ -53,19 +60,20 @@ describe("qa model selection runtime", () => {

5360

});

5461
5562

it("keeps the OpenAI live default when stored OpenAI profiles are available", () => {

56-

listProfilesForProvider.mockImplementation((_store: unknown, provider: string) =>

57-

provider === "openai" ? [`${provider}:user@example.com`] : [],

58-

);

63+

loadAuthProfileStoreForRuntime.mockReturnValue({

64+

profiles: {

65+

"openai:api-key": {

66+

provider: "openai",

67+

mode: "api_key",

68+

},

69+

},

70+

});

5971
6072

expect(resolveQaPreferredLiveModel()).toBeUndefined();

6173

expect(defaultQaRuntimeModelForMode("live-frontier")).toBe("openai/gpt-5.5");

6274

});

6375
6476

it("leaves mock defaults unchanged", () => {

65-

listProfilesForProvider.mockImplementation((_store: unknown, provider: string) =>

66-

provider === "openai" ? ["openai:user@example.com"] : [],

67-

);

68-
6977

expect(defaultQaRuntimeModelForMode("mock-openai")).toBe("mock-openai/gpt-5.5");

7078

expect(defaultQaRuntimeModelForMode("mock-openai", { alternate: true })).toBe(

7179

"mock-openai/gpt-5.5-alt",

Original file line numberDiff line numberDiff line change

@@ -16,10 +16,12 @@ export function resolveQaLiveFrontierPreferredModel() {

1616

allowKeychainPrompt: false,

1717

externalCliProviderIds: ["openai"],

1818

});

19-

if (listProfilesForProvider(store, "openai").length > 0) {

19+

const openAiProfileIds = listProfilesForProvider(store, "openai");

20+

const openAiProfileModes = openAiProfileIds.map((profileId) => store.profiles[profileId]?.mode);

21+

if (openAiProfileModes.some((mode) => mode === "api_key" || mode === "aws-sdk")) {

2022

return undefined;

2123

}

22-

return listProfilesForProvider(store, "openai").length > 0

24+

return openAiProfileModes.some((mode) => mode === "oauth" || mode === "token")

2325

? QA_CODEX_OAUTH_LIVE_MODEL

2426

: undefined;

2527

} catch {