mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
fix(sessions): settle session before revert stage and notify active-session delete eagerly
This commit is contained in:
1 parent
2d14972fad
commit
7bc71d7123
5 files changed
+54
-29
No files matched your search
@@ -241,6 +241,8 @@ export async function removeShell(id: string, directory: string): Promise<void>
|
||||
}
|
||||
|
||||
export async function stageRevert(sessionID: string, messageID: string): Promise<SessionRevert> {
|
||||
await interruptSession(sessionID)
|
||||
await callOpenCode((api) => api.session.wait({ sessionID }))
|
||||
return callOpenCode((api) => api.session.revert.stage({ sessionID, messageID }))
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user