Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
test(desktop): makerSendTransaction 切片补注入预算重放(#4598)
Zhang Yunjin6e6c92a7b220
diff --git a/apps/desktop/src/main/maker-ipc/__tests__/makerSendTransaction.test.ts b/apps/desktop/src/main/maker-ipc/__tests__/makerSendTransaction.test.tsindex e03e6d17f6..422d520787 100644--- a/apps/desktop/src/main/maker-ipc/__tests__/makerSendTransaction.test.ts+++ b/apps/desktop/src/main/maker-ipc/__tests__/makerSendTransaction.test.ts@@ -4213,6 +4213,8 @@ describe('session-agent-switch handoff injection', () => {throwIpcError: (code: string, message: string) => { throw Object.assign(new Error(message), { code }); },providerGroupService: { beforeSend }, agentInputCoordinatorHolder: null,log: { warn: vi.fn() },+ // 同一段适配器里还有预算重放(只在有未完成意图时跑);本用例只关心切换守卫。+ replayPendingSessionContextWindowBudgetUnderLock: vi.fn(async () => undefined),};const compiled = ts.transpileModule(`return ({${adapter}}).applyPendingAgentSwitch;`,{ compilerOptions: { target: ts.ScriptTarget.ES2022 } }).outputText;