You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: opening a favorite marks the tab unsaved #909
After #908 a tab counts as dirty only while its content differs from savedContent (#855). openFavorite in src/components/favorites/QueryFavorites.tsx calls updateTabContent(fav.sql) but never sets that baseline. So a freshly opened favorite shows the dirty dot, and closing the tab asks about unsaved work that is already saved.
Reproduce
Open ?mock=connected and save a query as a favorite.
Open the favorite from the Favorites panel.
The tab shows the unsaved dot.
Fix
Call useEditorStore.getState().markTabSaved(tabId, fav.sql) after updateTabContent. Add a test in QueryFavorites.test.tsx.
Activity