GeezerVison is showing github.com — refactor(app): load sync state through TanStack Query by Brendonovich · Pull Request #23792 · anomalyco/opencode
Conversation
Summary
- Move global and per-project sync loading onto TanStack Query so config, providers, paths, MCP status, and LSP status come from shared queries.
- Refetch the shared MCP query after connect/disconnect instead of manually reloading MCP state in each UI surface.
- Disable automatic TanStack Query refetch triggers so these sync queries only rerun when explicitly requested.
Why
The branch is primarily about consolidating app sync/bootstrap state around TanStack Query and removing duplicate MCP loading logic. The query client defaults keep those shared queries from refetching on mount, focus, or reconnect and causing extra status requests.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Brendonovich
changed the title
feat(app): configure TanStack Query client with default options
refactor(app): load sync state through TanStack Query
Apr 22, 2026
|
⚠️ Blocking Beta Release
This PR cannot be merged into the beta branch due to: Fetch failed
Please resolve this issue to include this PR in the next beta release.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Add defaultOptions to QueryClient to disable automatic refetching:
- refetchOnReconnect: false
- refetchOnMount: false
- refetchOnWindowFocus: false
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|