Files
cc-switch/tests/hooks
Jason 033017b0be fix(skills): stop the import dialog from locking while discover refetches
The import mutation's onSettled awaited every affected refresh, including
the discover list, which downloads each repository from GitHub (up to 60s
per repo). TanStack Query only settles a mutation after onSettled resolves,
so isPending stayed true and the import dialog could not be cancelled or
closed until discover finished. The discover segment stays mounted once
opened, so this hit anyone who had visited it on a slow GitHub connection.

Only await the installed and unmanaged refreshes the dialog depends on;
repos and discover are still invalidated in the background.

Fixes #7994
2026-10-09 21:07:30 +08:00
..
2025-11-22 19:18:35 +08:00