fix: update stop reason to be 'other' instead of 'unknown' as per v6 changes

This commit is contained in:
Aiden Cline
2026-03-23 09:09:44 -05:00
parent cfe0fc4ca0
commit d6a2460444
+1 -1
View File
@@ -320,7 +320,7 @@ export namespace SessionPrompt {
if (!lastUser) throw new Error("No user message found in stream. This should never happen.")
if (
lastAssistant?.finish &&
!["tool-calls", "unknown"].includes(lastAssistant.finish) &&
!["tool-calls", "other"].includes(lastAssistant.finish) &&
lastUser.id < lastAssistant.id
) {
log.info("exiting loop", { sessionID })