Skip to content

Commit c7b0ceb

Browse files
Apply PR #19483: refactor(session): effectify SessionPrompt service
2 parents 74006f0 + a95b5c7 commit c7b0ceb

File tree

5 files changed

+2350
-1435
lines changed

5 files changed

+2350
-1435
lines changed

packages/opencode/src/server/routes/session.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ export const SessionRoutes = lazy(() =>
381381
}),
382382
),
383383
async (c) => {
384-
SessionPrompt.cancel(c.req.valid("param").sessionID)
384+
await SessionPrompt.cancel(c.req.valid("param").sessionID)
385385
return c.json(true)
386386
},
387387
)
@@ -699,7 +699,7 @@ export const SessionRoutes = lazy(() =>
699699
),
700700
async (c) => {
701701
const params = c.req.valid("param")
702-
SessionPrompt.assertNotBusy(params.sessionID)
702+
await SessionPrompt.assertNotBusy(params.sessionID)
703703
await Session.removeMessage({
704704
sessionID: params.sessionID,
705705
messageID: params.messageID,

0 commit comments

Comments
 (0)