Skip to content

Save sessions automatically by default - #2179

Merged
bbatsov merged 2 commits into
masterfrom
fix/session-autosave-default
Aug 29, 2026
Merged

Save sessions automatically by default#2179
bbatsov merged 2 commits into
masterfrom
fix/session-autosave-default

Conversation

@bbatsov

@bbatsov bbatsov commented Aug 28, 2026

Copy link
Copy Markdown
Owner

projectile-session-restore-on-switch has always been on, and it reads what autosave writes. With autosave defaulting to nil, enabling projectile-session-mode gave you a mode that restores layouts it never records, so nothing came back until you ran projectile-session-save by hand.

Enabling the mode is already an opt-in to session management, so let it manage sessions. Restoring at startup stays off by default, since that rebuilds everything at launch rather than when you ask for a project.

`projectile-session-restore-on-switch' has always been on, and it reads
what autosave writes. With autosave off by default, turning on
`projectile-session-mode' gave you a mode that restores layouts it never
records: nothing came back until you ran `projectile-session-save' by
hand, and most people would reasonably conclude the restore was broken.

Enabling the mode is already an explicit opt-in to session management, so
have it manage sessions. Restoring at startup stays opt-in, since that
rebuilds the world at launch rather than when you ask for a project.
@bbatsov
bbatsov merged commit 463d94c into master Aug 29, 2026
5 checks passed
@bbatsov
bbatsov deleted the fix/session-autosave-default branch August 29, 2026 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant