Skip to content

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.

fix(pruef): the chat options mark is a prop value of the composer since prompt v2

purple96e4ac6e9da7
diff --git a/src/lib/__tests__/desktop-bau-ohne-handy.test.ts b/src/lib/__tests__/desktop-bau-ohne-handy.test.ts
index cb48090f..da8bd003 100644
--- a/src/lib/__tests__/desktop-bau-ohne-handy.test.ts
+++ b/src/lib/__tests__/desktop-bau-ohne-handy.test.ts
@@ -161,7 +161,9 @@ describe('the packages: a desktop build has no piece of src/mobile, a phone buil
it('the marks are what src/mobile writes, and nothing else in the app does', () => {
expect(read('src/mobile/ui/TabBar.tsx')).toContain('className="m-tabbar"')
expect(read('src/mobile/ui/Sheet.tsx')).toContain("'m-sheet-close'")
- expect(read('src/mobile/screens/chat/ChatPage.tsx')).toContain('testid="m-chat-options"')
+ // Since prompt v2 (m310) the options button is drawn by the composer and
+ // ChatPage hands the id over as a prop value, still a string literal.
+ expect(read('src/mobile/screens/chat/ChatPage.tsx')).toContain("testid: 'm-chat-options'")
// Nothing outside src/mobile writes them (the one way in is main.tsx).
for (const file of ['src/main.tsx', 'src/App.tsx', 'src/index.css']) {
for (const mark of MARKS) expect(read(file), `${file} ${mark}`).not.toContain(mark)