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
Commit fc141d5
Browse filesBrowse the repository at this point in the historyBrowse files
fix(web): reopening the import dialog rescans cached results
The scan query stays fresh for 30 seconds, so reopening the dialog right after
an import showed the previous list. Refresh settled scans once on open; scans
still in flight are left alone so a first open does not scan twice.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@@ -17,6 +17,13 @@ export function ImportProjectsDialog({
17
17
// Freeze the targets so a reconnect elsewhere does not rescan mid-selection.
18
18
const[scanIds]=useState(environmentIds);
19
19
constscans=useProjectScans(scanIds);
20
+
const[initialScans]=useState(scans);
21
+
// oxlint-disable-next-line t3code/no-unreasoned-state-sync -- a cached scan can be up to 30s old on reopen, so rescan once to pick up new conversations; scans already in flight are left alone
0 commit comments