Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
test(pi): canonicalize Windows session fixtures natively
nanab3d7a366ebd6
diff --git a/packages/maker-core/src/agents/pi/__tests__/pi-startsession-cleanup.test.ts b/packages/maker-core/src/agents/pi/__tests__/pi-startsession-cleanup.test.tsindex a510a847a5..c62eb37da8 100644--- a/packages/maker-core/src/agents/pi/__tests__/pi-startsession-cleanup.test.ts+++ b/packages/maker-core/src/agents/pi/__tests__/pi-startsession-cleanup.test.ts@@ -94,7 +94,10 @@ describe('PiAgent.startSession failure cleanup (mocked pi process)', () => {proxyDisposed = 0;preparedMcpContext = undefined;agentHome = mkdtempSync(path.join(tmpdir(), 'pi-cleanup-home-'));- cwd = realpathSync(mkdtempSync(path.join(tmpdir(), 'pi-cleanup-cwd-')));+ // Match fs.promises.realpath used by launch-time validation. On Windows the+ // non-native sync implementation may preserve an 8.3 alias (RUNNER~1)+ // while the async native implementation returns the final long path.+ cwd = realpathSync.native(mkdtempSync(path.join(tmpdir(), 'pi-cleanup-cwd-')));});afterEach(() => {