Fix TTS sanitization and message handling bugs

- Add duplicate config validation to backend
- Fix TTS button comparison using original text
- Track original vs sanitized text in TTS context
- Update toast import in message hooks
- Add type safety for error handling
This commit is contained in:
Chris Scott committed 2025-12-18 22:44:07 -05:00
1 parent 698ad7b020
commit 44240f0aab
9 files changed
+23 -10

No files matched your search

+1 -1
View File
@@ -243,7 +243,7 @@ export function TextPart({ part }: TextPartProps) {
remarkPlugins={[remarkGfm]}
rehypePlugins={[rehypeHighlight, rehypeRaw]}
components={{
code({ className, children, node, ...props }) {
code({ className, children, ...props }) {
const isInline = !className || !className.includes('language-')
if (className?.includes('language-mermaid') && mermaidComplete) {