Fix conversation home reachability and Android timeout

This commit is contained in:
kris
2026-04-05 14:16:18 +08:00
parent 08a746c3bf
commit 272698234d
4 changed files with 51 additions and 5 deletions

View File

@@ -436,7 +436,7 @@ test("folder archive homepage rows keep the project title, compact subtitle, and
assert.equal(presentation.href, "/conversations/folders/mac-studio%3Aboss");
});
test("folder archive search aliases stay bounded to the latest thread titles", async () => {
test("folder archive search aliases keep full reachability across five threads", async () => {
await setup();
const state = await readState();
@@ -452,7 +452,31 @@ test("folder archive search aliases stay bounded to the latest thread titles", a
const folder = getConversationHomeItems(state).find((item) => item.conversationType === "folder_archive");
assert.ok(folder, "expected grouped folder archive item");
assert.deepEqual(folder?.searchAliases, ["发布回滚", "Android UI 收尾", "日志收口", "网络修复"]);
assert.deepEqual(folder?.searchAliases, [
"发布回滚",
"Android UI 收尾",
"日志收口",
"网络修复",
"审阅确认",
]);
});
test("folder archive search aliases still dedupe when multiple threads share the same title", async () => {
await setup();
const state = await readState();
state.projects = state.projects.filter((project) => project.id === "master-agent");
state.projects.push(
buildImportedThreadProject("mac-studio", "boss-thread-1", "Boss", "boss", "发布回滚", "thread-1", "2026-03-30T14:00:00+08:00"),
buildImportedThreadProject("mac-studio", "boss-thread-2", "Boss", "boss", "发布回滚", "thread-2", "2026-03-30T13:00:00+08:00"),
buildImportedThreadProject("mac-studio", "boss-thread-3", "Boss", "boss", "日志收口", "thread-3", "2026-03-30T12:00:00+08:00"),
buildImportedThreadProject("mac-studio", "boss-thread-4", "Boss", "boss", "网络修复", "thread-4", "2026-03-30T11:00:00+08:00"),
);
const folder = getConversationHomeItems(state).find((item) => item.conversationType === "folder_archive");
assert.ok(folder, "expected grouped folder archive item");
assert.deepEqual(folder?.searchAliases, ["发布回滚", "日志收口", "网络修复"]);
});
test("conversation items expose context status while keeping idle activity silent", async () => {