Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
test(remote-agent): expect cancellation signal in Git credential confirmation
DavidShen1d968477c599
diff --git a/apps/desktop/src/main/remote-agent/executor/__tests__/gitCredentials.git-integration.test.ts b/apps/desktop/src/main/remote-agent/executor/__tests__/gitCredentials.git-integration.test.tsindex 13318aa520..b7a331ef73 100644--- a/apps/desktop/src/main/remote-agent/executor/__tests__/gitCredentials.git-integration.test.ts+++ b/apps/desktop/src/main/remote-agent/executor/__tests__/gitCredentials.git-integration.test.ts@@ -61,7 +61,7 @@ async function requiresCredentialConfirmation(history: GitCredentialHistory, comtry {expect(gate.authorize(action).ok, command).toBe(false);expect(await executor.confirm(action), command).toBe(false);- expect(confirm, command).toHaveBeenCalledExactlyOnceWith(action);+ expect(confirm, command).toHaveBeenCalledExactlyOnceWith(action, expect.any(AbortSignal));expect(gate.authorize(action).ok, command).toBe(false);} finally {await executor.close();