Reduce toast notification duration to 2500ms and suppress MessageAbortedError toasts

This commit is contained in:
Chris Scott committed 2026-01-22 23:47:01 -05:00
1 parent b022b0a2c5
commit 82ccacb7be
2 files changed
+6 -2

No files matched your search

+1
View File
@@ -47,6 +47,7 @@ function RouterContent() {
expand={false}
richColors
closeButton
duration={2500}
/>
</>
)
+5 -2
View File
@@ -292,11 +292,14 @@ export const useSSE = (opcodeUrl: string | null | undefined, directory?: string,
if (!('error' in event.properties)) break
if ('sessionID' in event.properties && event.properties.sessionID === currentSessionId) break
const parsed = parseOpenCodeError(event.properties.error)
const error = event.properties.error
if (error?.name === 'MessageAbortedError') break
const parsed = parseOpenCodeError(error)
if (parsed) {
showToast.error(parsed.title, {
description: parsed.message,
duration: 6000,
duration: 2500,
})
}
break