summaryrefslogtreecommitdiffhomepage
path: root/packages/app/src/context
diff options
context:
space:
mode:
authorAdam <[email protected]>2026-01-17 05:23:11 -0600
committerAdam <[email protected]>2026-01-17 05:23:17 -0600
commit2729705594b9429ce44cf371dbf7268ac3457d8b (patch)
treed6c32c922eb0fb6dbf4d5d35a234f11c1e4b2275 /packages/app/src/context
parentea13b6e8aa219f0c75eb13a6a58271d75c37521e (diff)
downloadopencode-2729705594b9429ce44cf371dbf7268ac3457d8b.tar.gz
opencode-2729705594b9429ce44cf371dbf7268ac3457d8b.zip
fix(app): archive session sometimes flaky
Diffstat (limited to 'packages/app/src/context')
-rw-r--r--packages/app/src/context/global-sync.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/app/src/context/global-sync.tsx b/packages/app/src/context/global-sync.tsx
index 74641a0a2..96f8c63ea 100644
--- a/packages/app/src/context/global-sync.tsx
+++ b/packages/app/src/context/global-sync.tsx
@@ -379,6 +379,8 @@ function createGlobalSync() {
}),
)
}
+ if (event.properties.info.parentID) break
+ setStore("sessionTotal", (value) => Math.max(0, value - 1))
break
}
if (result.found) {