mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
fix: suppress aborted error display and fix TTS button condition
This commit is contained in:
1 parent
c7ddebe508
commit
450262c2c5
2 files changed
+2
-6
No files matched your search
@@ -42,11 +42,7 @@ export function parseOpenCodeError(error: OpenCodeError | undefined | null): Par
|
||||
}
|
||||
|
||||
case 'MessageAbortedError':
|
||||
return {
|
||||
title: 'Message Aborted',
|
||||
message: error.data.message || 'The message was aborted',
|
||||
isRetryable: false,
|
||||
}
|
||||
return null
|
||||
|
||||
case 'APIError':
|
||||
return {
|
||||
|
||||
@@ -511,7 +511,7 @@ export function SessionDetail() {
|
||||
>
|
||||
<div className="relative w-[94%] md:max-w-4xl">
|
||||
<div className="absolute -top-5 right-0 md:right-4 z-50 flex flex-col items-end gap-2">
|
||||
{ttsEnabled && !hasPromptContent && !isStreamingResponse && lastAssistantMessage && lastAssistantText && (
|
||||
{ttsEnabled && !hasPromptContent && !isSessionActive && lastAssistantMessage && lastAssistantText && (
|
||||
<FloatingTTSButton
|
||||
messageId={lastAssistantMessage.info.id}
|
||||
content={lastAssistantText}
|
||||
|
||||
Reference in new issue
Block a user