Skip to content

fix: drop cached forge clients on app reset#3071

Open
afonsojramos wants to merge 1 commit into
mainfrom
fix/reset-forge-client-caches
Open

fix: drop cached forge clients on app reset#3071
afonsojramos wants to merge 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

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