Skip to content

fix: drop cached forge clients on app reset#3071

Merged
afonsojramos merged 1 commit into
mainfrom
fix/reset-forge-client-caches
Jul 24, 2026
Merged

fix: drop cached forge clients on app reset#3071
afonsojramos merged 1 commit into
mainfrom
fix/reset-forge-client-caches

Conversation

@afonsojramos

Copy link
Copy Markdown
Member

Since the TanStack Query / store refactor, "Reset App" wiped accounts and the query cache but left authenticated Octokit clients cached in memory (v6 cleared them via clearOctokitClientCache in AppContext, and that call was dropped in the migration). reset() now drops per-account forge client state the same way removeAccount already does, so no token-bearing clients outlive a reset.

Resetting the app wiped accounts but left authenticated Octokit
clients cached in memory. Clear per-account forge client state on
reset, mirroring removeAccount.
@afonsojramos
afonsojramos requested a review from setchy as a code owner July 24, 2026 01:40
@github-actions github-actions Bot added the bug Something isn't working label Jul 24, 2026
@sonarqubecloud

Copy link
Copy Markdown

@afonsojramos
afonsojramos merged commit 316ab00 into main Jul 24, 2026
17 checks passed
@afonsojramos
afonsojramos deleted the fix/reset-forge-client-caches branch July 24, 2026 12:52
@github-actions github-actions Bot added this to the Release 7.x.x milestone Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Development

Successfully merging this pull request may close these issues.

1 participant