From 41f4a53b1f5362054a013551f0dc44aabfa61552 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 28 Dec 2025 17:02:03 -0600 Subject: [PATCH] Display "Resume" button when there's no finish button / only throw EmptyMessageError when finish_reason is not "stop" --- src/components/Shakespeare/ChatPane.tsx | 4 ++-- src/lib/SessionManager.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Shakespeare/ChatPane.tsx b/src/components/Shakespeare/ChatPane.tsx index 423ff94e..9034e77a 100644 --- a/src/components/Shakespeare/ChatPane.tsx +++ b/src/components/Shakespeare/ChatPane.tsx @@ -798,8 +798,8 @@ export const ChatPane = forwardRef(({ {!isLoadingHistory && renderStreamingMessage()} - {/* Resume button - shown when not loading and finish reason is not "stop" or "length" */} - {!isLoadingHistory && !isLoading && lastFinishReason && lastFinishReason !== 'stop' && lastFinishReason !== 'length' && messages.length > 0 && ( + {/* Resume button - shown when not loading and finish reason is not "stop" or "length" (or no finish reason) */} + {!isLoadingHistory && !isLoading && (!lastFinishReason || (lastFinishReason !== 'stop' && lastFinishReason !== 'length')) && messages.length > 0 && (