fix(webui): polish session titles and status

This commit is contained in:
Xubin Ren
2026-05-17 23:52:50 +08:00
parent 361f31c0e4
commit 2f323e24c1
10 changed files with 134 additions and 27 deletions
+6 -2
View File
@@ -233,9 +233,13 @@ describe("NanobotClient", () => {
client.connect();
lastSocket().fakeOpen();
lastSocket().fakeMessage({ event: "session_updated", chat_id: "chat-title" });
lastSocket().fakeMessage({
event: "session_updated",
chat_id: "chat-title",
scope: "metadata",
});
expect(globalHandler).toHaveBeenCalledWith("chat-title");
expect(globalHandler).toHaveBeenCalledWith("chat-title", "metadata");
expect(chatHandler).not.toHaveBeenCalled();
});