Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

fix(desktop): 导出 wasLastStopSideTask 修复 typecheck 失败

Shinku3efdd13dceb4
diff --git a/apps/desktop/src/renderer/lib/makerChatStore.ts b/apps/desktop/src/renderer/lib/makerChatStore.ts
index 7515f66d32..31f3d211de 100644
--- a/apps/desktop/src/renderer/lib/makerChatStore.ts
+++ b/apps/desktop/src/renderer/lib/makerChatStore.ts
@@ -7960,7 +7960,7 @@ function getRunningSnapshot(): ReadonlyMap<string, SessionStatusInfo> {
/** 最近一次 running→stopped 是否来自 side-task(见 lastStopWasSideTask)。
* useSessionRunningStatus 在 transition entry 已被调度清除后以此兜底,
* 使 side-task 结束不触发 done/error 终态通知。 */
-function wasLastStopSideTask(sessionId: string): boolean {
+export function wasLastStopSideTask(sessionId: string): boolean {
return !!sessions.get(sessionId)?.lastStopWasSideTask;
}