Skip to content

feat: restore open tabs on the next launch - #197

Merged
nextestudios merged 2 commits into
mainfrom
feature/51-persist-tabs
Sep 27, 2026
Merged

nextestudios merged 2 commits into
mainfrom
feature/51-persist-tabs

Conversation

@nextestudios

Copy link
Copy Markdown
Owner

Summary

  • With 2+ tabs open, the tabs' disk folders, their order and the active tab are saved in settings.json (OpenTabs, ActiveOpenTab) whenever they change (quiet save, no SettingsChanged event), and restored by AppController.Start (screen opens on the active tab). With a single tab the launch still lands on Home, as before.
  • Archive/search/Recycle Bin tabs are saved as the last disk folder they came from.
  • Restore never blocks or crashes: each folder is checked with Task.Run (a disconnected network drive doesn't freeze the UI); a missing/unreadable one becomes an "(indisponível)" tab (title + PaneState.IsUnavailable) that shows Home with a footer notice, and keeps its saved path so it isn't lost while a drive is disconnected. Background tabs don't enter Recents and a failed background load no longer sends the active tab home.
  • Menu → Restaurar abas ao abrir: sim/não disables it and erases the saved list.
  • Docs: GUIDE pair, CHANGELOG pair, PRIVACY (open tab folders stored locally), ui-redesign regression row.

Tests

  • CI: TabsJourneyTests::Open_tabs_are_restored_on_the_next_launch_a_missing_folder_shows_home_and_it_can_be_disabled (3 tabs, one folder deleted between sessions; order, active tab, unavailable tab showing Home without an error dialog, disabling).
  • Manual: none beyond the existing "Abas (feat: add file navigation tabs #50)" checks.

Closes #51

🤖 Generated with Claude Code

@nextestudios
nextestudios force-pushed the feature/51-persist-tabs branch 4 times, most recently from 7850a4d to 52756fd Compare September 27, 2026 22:19
nextestudios and others added 2 commits September 27, 2026 19:24
With two or more tabs open, the folders, order and active tab are saved in
settings and restored at startup. Each folder is checked off the UI thread;
a missing one becomes an "(indisponível)" tab that shows Home with a notice.
Menu -> "Restaurar abas ao abrir" turns it off and erases the saved list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…story

The keyboard closes before the folder reloads and the typed text is only
remembered when the submit finishes, so the assertion raced with it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@nextestudios
nextestudios force-pushed the feature/51-persist-tabs branch from 52756fd to aa12099 Compare September 27, 2026 22:24
@nextestudios
nextestudios merged commit da3e96a into main Sep 27, 2026
1 check passed
@nextestudios
nextestudios deleted the feature/51-persist-tabs branch September 27, 2026 22:27
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.

feat: persist open tabs between sessions

1 participant