Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
test(desktop): 用量热路径跟随 openai-codex 前缀判定
kl7e68cdcca70d
diff --git a/apps/desktop/src/main/__tests__/makerEventHotPathOrdering.test.ts b/apps/desktop/src/main/__tests__/makerEventHotPathOrdering.test.tsindex d292643172..762d65ce5d 100644--- a/apps/desktop/src/main/__tests__/makerEventHotPathOrdering.test.ts+++ b/apps/desktop/src/main/__tests__/makerEventHotPathOrdering.test.ts@@ -890,7 +890,7 @@ describe('maker:event hot path ordering', () => {);expect(codexDoneSource).toContain('const isCustomProviderRoute =');expect(codexDoneSource).toContain('turnContext.isUserProviderRoute');- expect(codexDoneSource).toMatch(/&&\s*pricingModel\.startsWith\('codex\/'\);/);+ expect(codexDoneSource).toMatch(/&&\s*isCodexGatewayWireModel\(pricingModel\);/);expect(codexDoneSource).toMatch(/&&\s*isExclusiveXaiModelId\(pricingModel\);/);expect(codexDoneSource).toContain('const hasGatewayKey = Boolean(readClaudeApiKey());');expect(codexDoneSource).toContain('const hasEffectiveGatewayRoute =');