feat(desktop): add recently opened tabs tracking#3526
Merged
ComputelessComputer merged 6 commits intomainfrom Feb 2, 2026
Merged
feat(desktop): add recently opened tabs tracking#3526ComputelessComputer merged 6 commits intomainfrom
ComputelessComputer merged 6 commits intomainfrom
Conversation
✅ Deploy Preview for hyprnote canceled.
|
✅ Deploy Preview for hyprnote-storybook canceled.
|
4855f2c to
1751535
Compare
1751535 to
33cbfbe
Compare
Tests were failing because code accessed Tauri runtime internals (window.__TAURI_INTERNALS__.metadata) and tauri-generated commands during unit tests. Add a global window mock exposing __TAURI_INTERNALS__ metadata (currentWindow/currentWebview labels) and mock tauri command helpers in the test setup so tests can run in the JS test environment without a real Tauri runtime.
33cbfbe to
0cdf277
Compare
Guard against corrupted or manually modified stored data causing runtime errors when accessing recentlyOpenedSessionIds. Add runtime checks after JSON.parse to ensure the parsed value is an array of strings; return an empty array if validation fails or parsing throws.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds tracking of recently opened tabs in the desktop application, allowing users to see and navigate back to tabs they've previously visited.
Review & Testing Checklist for Human
Suggested test plan: Open several different tab types (notes, chat, calendar, settings), switch between them, close a few, then check the recently opened list. Verify ordering reflects actual usage recency and that closed tabs are handled gracefully (either removed or shown as re-openable).
Notes
Link to Devin run: https://app.devin.ai/sessions/1b9ae9acc87349e393883ca54ed961c6
Requested by: @ComputelessComputer