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): selectLightState/lightStateEquals 补全 pendingTaskWakeStarted 字段

Shinkuf29952fc8869
diff --git a/apps/desktop/src/renderer/lib/makerChatStore.ts b/apps/desktop/src/renderer/lib/makerChatStore.ts
index e9c23d2d29..8d9c882040 100644
--- a/apps/desktop/src/renderer/lib/makerChatStore.ts
+++ b/apps/desktop/src/renderer/lib/makerChatStore.ts
@@ -7994,6 +7994,7 @@ function selectLightState(state: SessionChatState): SessionChatLightState {
fastMode: state.fastMode,
planModeEnabled: state.planModeEnabled,
pendingTaskWake: state.pendingTaskWake,
+ pendingTaskWakeStarted: state.pendingTaskWakeStarted,
turnStoppedByUser: state.turnStoppedByUser,
};
}
@@ -8037,6 +8038,7 @@ function lightStateEquals(a: SessionChatLightState, b: SessionChatLightState): b
a.fastMode === b.fastMode &&
a.planModeEnabled === b.planModeEnabled &&
a.pendingTaskWake === b.pendingTaskWake &&
+ a.pendingTaskWakeStarted === b.pendingTaskWakeStarted &&
a.turnStoppedByUser === b.turnStoppedByUser
);
}