Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
docs(maker-core): closeIfIdle 契约补充宿主独占 RPC 操作
Zhang Yunjin1fef19f26bae
diff --git a/packages/maker-core/src/session.ts b/packages/maker-core/src/session.tsindex 400e9f59ae..553b458705 100644--- a/packages/maker-core/src/session.ts+++ b/packages/maker-core/src/session.ts@@ -1572,9 +1572,10 @@ export class Session {}/**- * Close only when no send reservation or agent turn is active. The check and- * close reservation are synchronous, so a concurrent send either wins first- * and keeps the session open, or observes closePromise and is rejected.+ * Close only when no send reservation, agent turn, or host-initiated exclusive+ * RPC operation (manual compact / rewind / model switch) is active. The check+ * and close reservation are synchronous, so a concurrent send either wins+ * first and keeps the session open, or observes closePromise and is rejected.*/closeIfIdle(): Promise<boolean> {if (this.status !== 'active' || this.closePromise || this.isTurnRunning() || this.hasUnsettledTurn()