Răsfoiți Sursa

fix(share): handle NotFoundError for non-shared sessions in sync (#6634)

Luke Parker 1 lună în urmă
părinte
comite
c600114db9
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      packages/opencode/src/share/share-next.ts

+ 1 - 1
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`, {