Skip to content

feat: preserve opened editor files across app restarts - #355

Merged
AmethystLiang merged 1 commit into
mainfrom
restart-should-preserve-opened-files
Apr 7, 2026
Merged

AmethystLiang merged 1 commit into
mainfrom
restart-should-preserve-opened-files

Conversation

@AmethystLiang

Copy link
Copy Markdown
Contributor

Summary

  • Persist edit-mode editor files in the workspace session so they are restored on app restart
  • Diffs and conflict views are intentionally excluded as they depend on transient git state
  • Cleans up editor state when a repo is removed (open files, active file tracking per worktree)
  • Validates persisted worktrees still exist before restoring, falls back to terminal tab when active file is missing

Test plan

  • Unit tests for hydrateEditorSession covering: restore, empty session, stale active file fallback, deleted worktree filtering
  • Manual: open files in editor, restart app, verify files are restored
  • Manual: remove a repo, verify its editor files are cleaned up

Persist edit-mode files in the workspace session so they are restored
on restart. Diffs and conflict views are intentionally excluded as they
depend on transient git state.
@AmethystLiang
AmethystLiang merged commit e5f10f8 into main Apr 7, 2026
1 check passed
@AmethystLiang
AmethystLiang deleted the restart-should-preserve-opened-files branch April 7, 2026 03:48
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
Persist edit-mode files in the workspace session so they are restored
on restart. Diffs and conflict views are intentionally excluded as they
depend on transient git state.
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