Skip to content

Commit c66def2

Browse files
committed
fix: noreply
1 parent 008ccb4 commit c66def2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/opencode/src/session/prompt.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,13 @@ export namespace SessionPrompt {
191191
const session = await Session.get(input.sessionID)
192192
await SessionRevert.cleanup(session)
193193

194-
await createUserMessage(input)
194+
const message = await createUserMessage(input)
195195
await Session.touch(input.sessionID)
196196

197+
if (input.noReply) {
198+
return message
199+
}
200+
197201
return loop(input.sessionID)
198202
})
199203

0 commit comments

Comments
 (0)