mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-17 13:01:24 +00:00
The post-handoff `resetProviderStatus(provider)` call destroyed the adapter that `startProviderAuth` had just created, because the hardened `resetProviderStatus` now restores from the auth snapshot (which has `adapter: null` for first-time connects). The subsequent OAuth callback then failed with `google/onedrive adapter not initialized`, and the error was persisted onto the provider state. Introduce `clearConnectingStatus` for the "release connecting UI" intent and switch the PKCE flow to use it, so adapter and auth restore-snapshot are left untouched until the callback completes. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>