Browse Source

ensure session.info is synced when shared

Dax Raad 8 months ago
parent
commit
4a06e164d2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/opencode/src/session/index.ts

+ 1 - 0
packages/opencode/src/session/index.ts

@@ -151,6 +151,7 @@ export namespace Session {
       }
       }
     })
     })
     await Storage.writeJSON<ShareInfo>("session/share/" + id, share)
     await Storage.writeJSON<ShareInfo>("session/share/" + id, share)
+    await Share.sync("session/info/" + id, session)
     for (const msg of await messages(id)) {
     for (const msg of await messages(id)) {
       await Share.sync("session/message/" + id + "/" + msg.id, msg)
       await Share.sync("session/message/" + id + "/" + msg.id, msg)
     }
     }