The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
// T1 Nacht-Durchtest 3.0.9 (Jäger A, A5): eine URL, ein Hash oder Base64 ohne
// Leerzeichen lief aus der Blase und wurde am Fensterrand abgeschnitten
// (computed overflow-wrap: normal, scrollWidth 26 379 px bei 638 px Blase).
// Beide Wege, die Text in eine Blase schreiben, tragen deshalb wrap-anywhere.
import { readFileSync } from 'node:fs'
import { resolve } from 'node:path'
import { describe, expect, it } from 'vitest'
const src = (f: string) => readFileSync(resolve(__dirname, '..', f), 'utf8')
describe('a word without spaces in a chat bubble', () => {
it('wraps in the answer (markdown root)', () => {
expect(src('MarkdownRenderer.tsx')).toMatch(/className="markdown-content[^"]*\bwrap-anywhere\b/)
})
it('wraps in the user bubble', () => {
// 3.1.0 (C58): the text goes through <UserText>, which only colours
// quotes and actions when the chat look asks for it; the paragraph and
// its wrapping are unchanged.
expect(src('MessageBubble.tsx')).toMatch(/whitespace-pre-wrap wrap-anywhere">(\{message\.displayContent \|\| message\.content\}|<UserText text=\{message\.displayContent \|\| message\.content\} \/>)/)
})
})