mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 08:37:22 +00:00
Display "Resume" button when there's no finish button / only throw EmptyMessageError when finish_reason is not "stop"
This commit is contained in:
2 files changed
+3
-3
No files matched your search
@@ -551,7 +551,7 @@ export class SessionManager {
|
||||
};
|
||||
|
||||
// Check if the assistant message is empty (no content, reasoning, or tool calls)
|
||||
if (isEmptyMessage(assistantMessage)) {
|
||||
if (isEmptyMessage(assistantMessage) && finishReason !== 'stop') {
|
||||
console.error('Empty assistant message detected', {
|
||||
projectId,
|
||||
providerModel,
|
||||
|
||||
Reference in new issue
Block a user