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

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
The Blog of Author Tim Ferriss
博客园 - 司徒正美
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
有赞技术团队
有赞技术团队
量子位
S
SegmentFault 最新的问题
博客园 - 聂微东
博客园 - 【当耐特】
J
Java Code Geeks
美团技术团队
Hugging Face - Blog
Hugging Face - Blog
H
Help Net Security
V
V2EX
人人都是产品经理
人人都是产品经理
博客园 - Franky
罗磊的独立博客
Engineering at Meta
Engineering at Meta
A
About on SuperTechFans
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
酷 壳 – CoolShell
酷 壳 – CoolShell
云风的 BLOG
云风的 BLOG
Y
Y Combinator Blog
Apple Machine Learning Research
Apple Machine Learning Research

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(models): simplify codex auth route handling · op...
obviyus · 2026-05-18 · via Recent Commits to openclaw:main

@@ -402,18 +402,17 @@ export async function modelsStatusCommand(

402402

const syntheticProvidersToProbe = new Set(

403403

providers.map((provider) => normalizeProviderId(provider)),

404404

);

405-

const codexRuntimeAuthProviders = new Set<string>();

406-

for (const usage of providerUses) {

407-

if (

405+

const codexProvider = normalizeProviderId(OPENAI_CODEX_PROVIDER_ID);

406+

const codexProviderAlias = aliasMap[codexProvider] ?? codexProvider;

407+

const codexRuntimeAuthUsages = providerUses.filter(

408+

(usage) =>

408409

usage.allowCodexRuntimeFallback &&

409-

openAIProviderUsesCodexRuntimeByDefault({ provider: usage.provider, config: cfg })

410-

) {

411-

const codexProvider = normalizeProviderId(OPENAI_CODEX_PROVIDER_ID);

412-

codexRuntimeAuthProviders.add(codexProvider);

413-

syntheticProvidersToProbe.add(codexProvider);

414-

syntheticProvidersToProbe.add(aliasMap[codexProvider] ?? codexProvider);

415-

syntheticProvidersToProbe.add("codex");

416-

}

410+

openAIProviderUsesCodexRuntimeByDefault({ provider: usage.provider, config: cfg }),

411+

);

412+

if (codexRuntimeAuthUsages.length > 0) {

413+

syntheticProvidersToProbe.add(codexProvider);

414+

syntheticProvidersToProbe.add(codexProviderAlias);

415+

syntheticProvidersToProbe.add("codex");

417416

}

418417

for (const provider of syntheticProvidersToProbe) {

419418

const normalized = normalizeProviderId(provider);

@@ -440,8 +439,7 @@ export async function modelsStatusCommand(

440439

expiresAt: resolved.expiresAt,

441440

};

442441

syntheticAuthByProvider.set(normalized, syntheticAuth);

443-

const codexProvider = normalizeProviderId(OPENAI_CODEX_PROVIDER_ID);

444-

if (normalized === "codex" || (aliasMap[codexProvider] ?? codexProvider) === normalized) {

442+

if (normalized === "codex" || normalized === codexProviderAlias) {

445443

syntheticAuthByProvider.set(codexProvider, syntheticAuth);

446444

}

447445

}

@@ -455,14 +453,14 @@ export async function modelsStatusCommand(

455453

const shellFallbackEnabled =

456454

shouldEnableShellEnvFallback(process.env) || cfg.env?.shellEnv?.enabled === true;

457455458-

const providerAuthProviders = new Set(providers);

459-

for (const provider of codexRuntimeAuthProviders) {

460-

if (syntheticAuthByProvider.has(provider)) {

461-

providerAuthProviders.add(provider);

462-

}

463-

}

464-465-

const providerAuth = Array.from(providerAuthProviders)

456+

const providerAuth = Array.from(

457+

new Set([

458+

...providers,

459+

...(codexRuntimeAuthUsages.length > 0 && syntheticAuthByProvider.has(codexProvider)

460+

? [codexProvider]

461+

: []),

462+

]),

463+

)

466464

.toSorted((a, b) => a.localeCompare(b))

467465

.map((provider) =>

468466

resolveProviderAuthOverview({

@@ -535,29 +533,22 @@ export async function modelsStatusCommand(

535533

};

536534

const runtimeAuthRoutes = Array.from(

537535

new Map(

538-

providerUses

539-

.filter(

540-

(usage) =>

541-

usage.allowCodexRuntimeFallback &&

542-

openAIProviderUsesCodexRuntimeByDefault({ provider: usage.provider, config: cfg }),

543-

)

544-

.map((usage) => {

545-

const authProvider = normalizeProviderId(OPENAI_CODEX_PROVIDER_ID);

546-

const effective = providerAuthMap.get(authProvider)?.effective ?? {

547-

kind: "missing" as const,

548-

detail: "missing",

549-

};

550-

return [

551-

`${usage.provider}:codex:${authProvider}`,

552-

{

553-

provider: usage.provider,

554-

runtime: "codex",

555-

authProvider,

556-

status: hasUsableProviderAuth(authProvider) ? "usable" : "missing",

557-

effective,

558-

},

559-

] as const;

560-

}),

536+

codexRuntimeAuthUsages.map((usage) => {

537+

const effective = providerAuthMap.get(codexProvider)?.effective ?? {

538+

kind: "missing" as const,

539+

detail: "missing",

540+

};

541+

return [

542+

`${usage.provider}:codex:${codexProvider}`,

543+

{

544+

provider: usage.provider,

545+

runtime: "codex",

546+

authProvider: codexProvider,

547+

status: hasUsableProviderAuth(codexProvider) ? "usable" : "missing",

548+

effective,

549+

},

550+

] as const;

551+

}),

561552

).values(),

562553

).toSorted((a, b) => a.provider.localeCompare(b.provider));

563554

const missingProvidersInUse = Array.from(