summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLuke Parker <[email protected]>2026-01-02 20:16:12 +1000
committerGitHub <[email protected]>2026-01-02 04:16:12 -0600
commitc600114db9971fd35ed80730c0ec264b46dc60fe (patch)
tree926051740497db8849303875812e789e54c4f13d
parent038cff4a93bb39238534898b4790229773c4ff22 (diff)
downloadopencode-c600114db9971fd35ed80730c0ec264b46dc60fe.tar.gz
opencode-c600114db9971fd35ed80730c0ec264b46dc60fe.zip
fix(share): handle NotFoundError for non-shared sessions in sync (#6634)
-rw-r--r--packages/opencode/src/share/share-next.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/opencode/src/share/share-next.ts b/packages/opencode/src/share/share-next.ts
index 37ecdf7ea..95271f8c8 100644
--- a/packages/opencode/src/share/share-next.ts
+++ b/packages/opencode/src/share/share-next.ts
@@ -127,7 +127,7 @@ export namespace ShareNext {
const queued = queue.get(sessionID)
if (!queued) return
queue.delete(sessionID)
- const share = await get(sessionID)
+ const share = await get(sessionID).catch(() => undefined)
if (!share) return
await fetch(`${await url()}/api/share/${share.id}/sync`, {