diff options
| author | Adam <[email protected]> | 2025-11-18 11:35:17 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-11-18 11:35:23 -0600 |
| commit | 333b8e907bb758adca3da69f4af72b9abe08777a (patch) | |
| tree | 6d8543480918607a1ce2941123835a4af7e072b4 /packages/desktop/src/context/sync.tsx | |
| parent | 13f319b64fcfb8ea34871ab5678514c0f5b3a04d (diff) | |
| download | opencode-333b8e907bb758adca3da69f4af72b9abe08777a.tar.gz opencode-333b8e907bb758adca3da69f4af72b9abe08777a.zip | |
fix(desktop): busy state and reactivity
Diffstat (limited to 'packages/desktop/src/context/sync.tsx')
| -rw-r--r-- | packages/desktop/src/context/sync.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/desktop/src/context/sync.tsx b/packages/desktop/src/context/sync.tsx index 14c0309c4..3852a6feb 100644 --- a/packages/desktop/src/context/sync.tsx +++ b/packages/desktop/src/context/sync.tsx @@ -26,6 +26,7 @@ export const { use: useSync, provider: SyncProvider } = createSimpleContext({ .slice(0, store.limit) setStore("session", sessions) }), + status: () => sdk.client.session.status().then((x) => setStore("session_status", x.data!)), config: () => sdk.client.config.get().then((x) => setStore("config", x.data!)), changes: () => sdk.client.file.status().then((x) => setStore("changes", x.data!)), node: () => sdk.client.file.list({ query: { path: "/" } }).then((x) => setStore("node", x.data!)), |
