perf(ui): streamline session sidebar state

This commit is contained in:
c_w_xiaohei
2026-08-26 00:42:36 +08:00
parent 3b7d5e1c34
commit 26dbc2f309
84 changed files with 5159 additions and 2809 deletions
+2 -1
View File
@@ -238,7 +238,8 @@ export const orderSessionsByLifecycleScopes = (
for (const root of roots) {
append(root);
}
for (const session of sessions) {
const remaining = sessions.filter((session) => !visited.has(session.id)).sort(compare);
for (const session of remaining) {
append(session);
}
return ordered;