fix(web): keep rectification sessions listed and persist chats on first send
Empty-consultation filtering is now session_type scoped so birth-time rows stay in the sidebar. Subtitles use updatedAt with sort/group/cursor. New chats stay local until the first send.
This commit is contained in:
@@ -313,7 +313,11 @@ test("self-hosted staging bootstrap reads profile and sessions through same-orig
|
||||
assert.doesNotMatch(page, /createBrowserSupabaseClient/);
|
||||
assert.match(page, /fetch\("\/api\/account"/);
|
||||
assert.match(page, /fetch\("\/api\/sessions"/);
|
||||
assert.match(page, /writeChatSession\(initialSession\.id,[\s\S]*?"create"\)/);
|
||||
// 原值:启动时空列表立刻 writeChatSession(initialSession.id, ..., "create")
|
||||
// 新值:本地 createSession,第一问 send() 才 persistSession(..., "create")
|
||||
// 原因:BUG-989 第一问之前不落库
|
||||
assert.doesNotMatch(page, /writeChatSession\(initialSession\.id,[\s\S]*?"create"\)/);
|
||||
assert.match(page, /await persistSession\(currentSession, "create"\)/);
|
||||
assert.match(page, /fetch\(`\/api\/sessions\/\$\{encodeURIComponent\(sessionId\)\}`/);
|
||||
assert.match(accountRoute, /AUTH_PROVIDER\?\.trim\(\) === "self-hosted"/);
|
||||
assert.match(accountRoute, /profile,/);
|
||||
|
||||
Reference in New Issue
Block a user