fix(web): 四个页面共用一份会话列表,空会话不入列
对话、星盘、星历、报告进同一 (app) 外壳,列表只拉一次。服务端不再列出空咨询;新建复用已有空会话。新标题改成「生时校正 · M月D日」,侧栏副标题用创建时间。
This commit is contained in:
@@ -59,18 +59,21 @@ test("general no-birth-time replies keep a question-specific session title", ()
|
||||
});
|
||||
|
||||
test("daily and topic consultations get distinct dated or domain titles", () => {
|
||||
const at = new Date(2026, 7, 22, 8, 36);
|
||||
// 原值:8月22日 · 今日节奏;同名追加墙钟 08:36;8月22日 · 生时校正
|
||||
// 新值:今日节奏 · 8月22日;同名不再加 HH:MM;生时校正 · 8月22日
|
||||
// 原因:任务书 T4 类别在前,同名靠副标题区分
|
||||
const at = new Date(Date.UTC(2026, 7, 22, 0, 36));
|
||||
assert.equal(
|
||||
resolveSessionTitle("深入看今日", undefined, { entrypoint: "daily_starlanguage", at }),
|
||||
"8月22日 · 今日节奏",
|
||||
"今日节奏 · 8月22日",
|
||||
);
|
||||
assert.equal(
|
||||
resolveSessionTitle("深入看今日", undefined, {
|
||||
entrypoint: "daily_starlanguage",
|
||||
at,
|
||||
existingTitles: ["8月22日 · 今日节奏"],
|
||||
existingTitles: ["今日节奏 · 8月22日"],
|
||||
}),
|
||||
"8月22日 · 今日节奏 08:36",
|
||||
"今日节奏 · 8月22日",
|
||||
);
|
||||
assert.equal(
|
||||
resolveSessionTitle("请帮我梳理目前的事业方向和下一步重点。", undefined, { theme: "career", at }),
|
||||
@@ -81,7 +84,7 @@ test("daily and topic consultations get distinct dated or domain titles", () =>
|
||||
entrypoint: "birth_time_rectification",
|
||||
at,
|
||||
}),
|
||||
"8月22日 · 生时校正",
|
||||
"生时校正 · 8月22日",
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user