diff options
| author | Brendan Allan <[email protected]> | 2026-04-30 15:10:39 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-04-30 15:10:39 +0800 |
| commit | 908e28175f9e5c46206c8884bdd9a7dbb31d0f0b (patch) | |
| tree | 8e36c01813b8501623c46c717e5383652ec64038 /packages/app/src/context/global-sync | |
| parent | 3398fd7719dee3f17ec6601c6ae9bf7fc4d7c8a5 (diff) | |
| download | opencode-908e28175f9e5c46206c8884bdd9a7dbb31d0f0b.tar.gz opencode-908e28175f9e5c46206c8884bdd9a7dbb31d0f0b.zip | |
fix: invert *_ready getters to fix server status indicator (#25077)
Diffstat (limited to 'packages/app/src/context/global-sync')
| -rw-r--r-- | packages/app/src/context/global-sync/child-store.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/app/src/context/global-sync/child-store.ts b/packages/app/src/context/global-sync/child-store.ts index 4c3c677a7..a7209d3db 100644 --- a/packages/app/src/context/global-sync/child-store.ts +++ b/packages/app/src/context/global-sync/child-store.ts @@ -187,7 +187,7 @@ export function createChildStoreManager(input: { projectMeta: initialMeta, icon: initialIcon, get provider_ready() { - return providerQuery.isLoading + return !providerQuery.isLoading }, provider: { all: [], connected: [], default: {} }, config: {}, @@ -207,13 +207,13 @@ export function createChildStoreManager(input: { permission: {}, question: {}, get mcp_ready() { - return mcpQuery.isLoading + return !mcpQuery.isLoading }, get mcp() { return mcpQuery.isLoading ? {} : (mcpQuery.data ?? {}) }, get lsp_ready() { - return lspQuery.isLoading + return !lspQuery.isLoading }, get lsp() { return lspQuery.isLoading ? [] : (lspQuery.data ?? []) |
