mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
add session diff
This commit is contained in:
parent
7aeb89dd49
commit
8afaec6794
1 changed files with 8 additions and 0 deletions
|
|
@ -32,6 +32,14 @@ export namespace ShareNext {
|
|||
},
|
||||
])
|
||||
})
|
||||
Bus.subscribe(Session.Event.Diff, async (evt) => {
|
||||
await sync(evt.properties.sessionID, [
|
||||
{
|
||||
type: "session_diff",
|
||||
data: evt.properties.diff,
|
||||
},
|
||||
])
|
||||
})
|
||||
}
|
||||
|
||||
export async function create(sessionID: string) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue