Skip to content

feat: implement lazy session restore feature with UI toggle#93

Open
quarterpound wants to merge 3 commits into
gi11es:masterfrom
quarterpound:master
Open

feat: implement lazy session restore feature with UI toggle#93
quarterpound wants to merge 3 commits into
gi11es:masterfrom
quarterpound:master

Conversation

@quarterpound

@quarterpound quarterpound commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

On launch, Deckard restored every saved session by immediately spawning its process for every tab in every project. With many projects open, that's dozens of forkpty + agent processes fired within seconds of opening the app, plus a burst of TCC prompts and CPU churn for sessions you may never look at.

This PR makes session startup lazy-capable: tabs and their terminal views are still created up front (the sidebar and tab bar look identical), but the underlying shell/agent process can be deferred until a tab is first opened.

"Restore sessions lazily" toggle controls it, defaulting off so existing behavior is preserved.

@quarterpound

Copy link
Copy Markdown
Contributor Author

@gi11es any chance you can take a look at this?

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.

2 participants