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。

修复改名顺序测试的脆弱匹配

nothingyuancando696e012d15dc
diff --git a/apps/desktop/src/main/__tests__/deviceLinkAutoTitleWiring.test.ts b/apps/desktop/src/main/__tests__/deviceLinkAutoTitleWiring.test.ts
index 3c833b7dbb..fd5169a6ce 100644
--- a/apps/desktop/src/main/__tests__/deviceLinkAutoTitleWiring.test.ts
+++ b/apps/desktop/src/main/__tests__/deviceLinkAutoTitleWiring.test.ts
@@ -203,12 +203,12 @@ describe('user rename notification ordering', () => {
// local-db:sessions:update(本机重命名框)
[
"if (typeof p.title === 'string') noteUserTitleWritten(sid);",
- 'await withStatusWriteLock(sid, p.status, () => writeSessionPatch(db, sid, setObj, p.status));',
+ 'await withStatusWriteLock(',
],
// patchSessionMetaInDb(device-link 远程改名)
[
'if (patch.title !== undefined) noteUserTitleWritten(sessionId);',
- 'await withStatusWriteLock(sessionId, patch.status, async () => {',
+ 'withStatusWriteLock(sessionId, patch.status, async () => {',
],
// renameSessionTitlesInDb(MCP 批量改名)
[