fix: permission rejection no longer stalls queued messages

Queued messages were not "flushed" pending a new prompt on
tool permission rejection, despite UI indication to the contrary.
This commit is contained in:
alexisy 2025-12-01 19:32:38 +00:00
parent 540407e193
commit bc349b7e25
No known key found for this signature in database
GPG key ID: DFAEB15C0E474F55

View file

@ -370,8 +370,8 @@ export namespace SessionProcessor {
}
}
input.assistantMessage.time.completed = Date.now()
if (blocked) input.assistantMessage.finish = "stop"
await Session.updateMessage(input.assistantMessage)
if (blocked) return "stop"
if (input.assistantMessage.error) return "stop"
return "continue"
}