mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
sync
This commit is contained in:
parent
555511b507
commit
9f0ae33d0b
1 changed files with 1 additions and 0 deletions
|
|
@ -1092,6 +1092,7 @@ export namespace Session {
|
|||
}
|
||||
|
||||
export async function unrevert(input: { sessionID: string }) {
|
||||
log.info("unreverting", input)
|
||||
const session = await get(input.sessionID)
|
||||
if (!session.revert) return session
|
||||
if (session.revert.snapshot) await Snapshot.restore(input.sessionID, session.revert.snapshot)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue