fix message list session transitions (#1172)

This commit is contained in:
ekko
2026-05-31 09:53:58 +08:00
committed by GitHub
parent 96bdf8d1af
commit e5c5f98fbd
6 changed files with 337 additions and 33 deletions
@@ -283,6 +283,8 @@ async function syncRouteSession() {
const sessionProfile = routeProfile.value || findHistorySession(sessionId)?.profile || null
const currentProfile = historySession.value?.profile || null
if (historySessionId.value !== sessionId || currentProfile !== sessionProfile) {
historySessionId.value = sessionId
historySession.value = null
await loadHistorySession(sessionId, sessionProfile)
}
}