zellij-org / zellij

A terminal workspace with batteries included
https://zellij.dev
MIT License
21.87k stars 663 forks source link

fix(startup): do not parse resurrectable sessions on startup #3505

Closed imsnif closed 4 months ago

imsnif commented 4 months ago

Previously, when starting a new session we would parse all the layouts of the resurrectable sessions in order to make sure the name is not colliding.

This could be a lengthy process if there were lots of dead sessions in the cache. Now we forgo this process and use the file-name instead to determine the session name (previously this would not be accurate, since the file name would stick around when renaming sessions, but this is no longer the case - making this improvement possible).