Fix conversation folder search targeting

This commit is contained in:
kris
2026-04-05 14:51:01 +08:00
parent 272698234d
commit a46f11cf6c
8 changed files with 426 additions and 34 deletions

View File

@@ -459,9 +459,16 @@ test("folder archive search aliases keep full reachability across five threads",
"网络修复",
"审阅确认",
]);
assert.deepEqual(folder?.searchTargetProjectIds, [
"boss-thread-1",
"boss-thread-2",
"boss-thread-3",
"boss-thread-4",
"boss-thread-5",
]);
});
test("folder archive search aliases still dedupe when multiple threads share the same title", async () => {
test("folder archive search aliases keep same-label threads reachable through every project id", async () => {
await setup();
const state = await readState();
@@ -476,7 +483,8 @@ test("folder archive search aliases still dedupe when multiple threads share the
const folder = getConversationHomeItems(state).find((item) => item.conversationType === "folder_archive");
assert.ok(folder, "expected grouped folder archive item");
assert.deepEqual(folder?.searchAliases, ["发布回滚", "日志收口", "网络修复"]);
assert.deepEqual(folder?.searchAliases, ["发布回滚", "发布回滚", "日志收口", "网络修复"]);
assert.deepEqual(folder?.searchTargetProjectIds, ["boss-thread-1", "boss-thread-2", "boss-thread-3", "boss-thread-4"]);
});
test("conversation items expose context status while keeping idle activity silent", async () => {