limit cached session views on tab switch

This commit is contained in:
Shantur Rathore
2025-12-14 17:07:17 +00:00
parent 7d2a349e95
commit c00b29145a

View File

@@ -490,7 +490,6 @@ const InstanceShell2: Component<InstanceShellProps> = (props) => {
append(parentId)
append(activeId)
current.forEach((id) => append(id))
const limit = parentId ? SESSION_CACHE_LIMIT + 1 : SESSION_CACHE_LIMIT
const trimmed = next.length > limit ? next.slice(0, limit) : next