summaryrefslogtreecommitdiffhomepage
path: root/packages/desktop/src/context
diff options
context:
space:
mode:
authorAdam <[email protected]>2025-12-10 21:21:36 -0600
committerAdam <[email protected]>2025-12-11 06:48:59 -0600
commit1b331548ba428a05c48895bfa374f1f140eb4c38 (patch)
treeb15201c52bf333dca287f656064c054c10f2eda7 /packages/desktop/src/context
parent3bb546c94d6bb295bfeafdafbb9d34b7cc462560 (diff)
downloadopencode-1b331548ba428a05c48895bfa374f1f140eb4c38.tar.gz
opencode-1b331548ba428a05c48895bfa374f1f140eb4c38.zip
wip(desktop): progress
Diffstat (limited to 'packages/desktop/src/context')
-rw-r--r--packages/desktop/src/context/global-sync.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/desktop/src/context/global-sync.tsx b/packages/desktop/src/context/global-sync.tsx
index 09dfb3a83..770275a5c 100644
--- a/packages/desktop/src/context/global-sync.tsx
+++ b/packages/desktop/src/context/global-sync.tsx
@@ -97,6 +97,10 @@ export const { use: useGlobalSync, provider: GlobalSyncProvider } = createSimple
if (directory === "global") {
switch (event.type) {
+ case "global.disposed": {
+ bootstrap()
+ break
+ }
case "project.updated": {
const result = Binary.search(globalStore.project, event.properties.id, (s) => s.id)
if (result.found) {
@@ -117,10 +121,6 @@ export const { use: useGlobalSync, provider: GlobalSyncProvider } = createSimple
const [store, setStore] = child(directory)
switch (event.type) {
- // case "server.instance.disposed": {
- // bootstrap()
- // break
- // }
case "session.updated": {
const result = Binary.search(store.session, event.properties.info.id, (s) => s.id)
if (result.found) {