From 2db6a1bf326402f02eff4ec98efae5c471e5b2e9 Mon Sep 17 00:00:00 2001 From: Noam Bressler Date: Mon, 26 Jan 2026 14:36:17 +0200 Subject: [PATCH] fix: await SessionRevert.cleanup for shell (#10669) --- packages/opencode/src/session/prompt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/opencode/src/session/prompt.ts b/packages/opencode/src/session/prompt.ts index 8554b44a72..b3f11b3350 100644 --- a/packages/opencode/src/session/prompt.ts +++ b/packages/opencode/src/session/prompt.ts @@ -1349,7 +1349,7 @@ NOTE: At any point in time through this workflow you should feel free to ask the const session = await Session.get(input.sessionID) if (session.revert) { - SessionRevert.cleanup(session) + await SessionRevert.cleanup(session) } const agent = await Agent.get(input.agent) const model = input.model ?? agent.model ?? (await lastModel(input.sessionID))