summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--packages/opencode/src/session/index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/opencode/src/session/index.ts b/packages/opencode/src/session/index.ts
index 619e8cc98..ddd668b8e 100644
--- a/packages/opencode/src/session/index.ts
+++ b/packages/opencode/src/session/index.ts
@@ -463,7 +463,7 @@ export namespace Session {
// Process revert cleanup first, before creating new messages
const session = await get(input.sessionID)
if (session.revert) {
- cleanupRevert(session)
+ await cleanupRevert(session)
}
const userMsg: MessageV2.Info = {
id: input.messageID ?? Identifier.ascending("message"),
@@ -1131,7 +1131,7 @@ export namespace Session {
using abort = lock(input.sessionID)
const session = await get(input.sessionID)
if (session.revert) {
- cleanupRevert(session)
+ await cleanupRevert(session)
}
const userMsg: MessageV2.User = {
id: Identifier.ascending("message"),