Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
test(maker-core): 拒绝把空 PID 文件解析为进程组 0
Kirozeng8c95d5319fc5
diff --git a/packages/maker-core/src/agents/pi/__tests__/cindySubagentRunner.test.ts b/packages/maker-core/src/agents/pi/__tests__/cindySubagentRunner.test.tsindex be39f9c9a4..93389efcf4 100644--- a/packages/maker-core/src/agents/pi/__tests__/cindySubagentRunner.test.ts+++ b/packages/maker-core/src/agents/pi/__tests__/cindySubagentRunner.test.ts@@ -1600,12 +1600,15 @@ describe('Cindy durable PI Subagent runner', () => {// have recorded its pid yet — the same spawn/write window that// `gateFinishOnPidCount` closes for the multi-lane cases. Wait for the// pid to land on disk instead of racing the first read, or this flakes- // as an ENOENT under a loaded CI runner.+ // as an ENOENT under a loaded CI runner. The file must also carry a+ // positive pid: an empty or newline-only file parses as 0, and+ // `process.kill(0, 0)` probes the caller's process group, which stays+ // alive for the whole suite and turns the race into a timeout.const childPid = await waitFor(async () => {try {const pid = Number((await readFile(fixture.pidsFile, 'utf8')).trim().split('\n')[0]);- return Number.isSafeInteger(pid) ? pid : null;+ return Number.isSafeInteger(pid) && pid > 0 ? pid : null;} catch {return null;}