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。

merge: 同步 main(db24db2aa),解决 sessions.ts 的静音写入块与 clearSessionAttention 相邻冲突

WZBbiao6c9b34a214e4
diff --cc apps/desktop/src/main/localDb/ipc/sessions.ts
index 8c9ddf264b,4d9d30c761..ca9dcd9922
--- a/apps/desktop/src/main/localDb/ipc/sessions.ts
+++ b/apps/desktop/src/main/localDb/ipc/sessions.ts
@@@ -2046,15 -2045,9 +2047,18 @@@ export async function updateSessionInDb
row.summary = null;
}
const updated = sessionToCamel(row);
+ // 「消息免打扰」是通知面专用标记:同步给进程内索引,免得通知/灵动岛路径逐事件查库。
+ if (p.notificationsMuted !== undefined) {
+ noteSessionNotificationsMuted(sid, updated.notificationsMuted === true, dbClient);
+ // 已经上岛的任务现在才被静音:后面的事件(含终态)都被门挡住,得先把它从岛上收走,
+ // 否则卡片会永远停在「运行中」。
+ if (updated.notificationsMuted === true) {
+ notifyAgentIslandSessionPatch(sid, { notificationsMuted: true });
+ }
+ }
+ if (updated.status === 'deleted' && isOwnerScopeCurrent(ownerScope)) {
+ clearSessionAttention(sid, 'explicit');
+ }
const projectTargetChanged = p.workspaceKind !== undefined || p.workingDir !== undefined;
const settingsChanged = Object.keys(p).some((key) => REMOTE_PERSIST_FIELDS.has(key));
const titleChanged = p.title !== undefined;