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(compact): the line reads the same for /compact and auto

purple5cc84b685420
diff --git a/src/components/__tests__/compact-block.test.ts b/src/components/__tests__/compact-block.test.ts
index a85ebedc..a89a7cea 100644
--- a/src/components/__tests__/compact-block.test.ts
+++ b/src/components/__tests__/compact-block.test.ts
@@ -77,9 +77,8 @@ describe('Eine Zeile wie ein Werkzeugaufruf', () => {
expect(html).not.toContain('rounded-full border')
})
- it('/compact sagt, dass der Nutzer es war; automatisch steht nichts dabei', () => {
- expect(rendern(schnitt({ trigger: 'manual' }))).toContain('/compact')
- expect(rendern(schnitt({ trigger: 'auto' }))).not.toContain('/compact')
+ it('/compact und automatisch sehen gleich aus: der Befehl steht schon als Hinweis im Verlauf', () => {
+ expect(rendern(schnitt({ trigger: 'manual' }))).toBe(rendern(schnitt({ trigger: 'auto' })))
})
it('eine kaputte Zahl wird zu 0, nicht zu einem Minus', () => {
diff --git a/src/components/chat/CompactBlock.tsx b/src/components/chat/CompactBlock.tsx
index 4facb78b..46ede617 100644
--- a/src/components/chat/CompactBlock.tsx
+++ b/src/components/chat/CompactBlock.tsx
@@ -53,9 +53,6 @@ export function CompactBlock({ cut }: Props) {
<span className={`t-micro italic pr-0.5 ${running ? 'lu-tool-shimmer' : 'text-gray-600 dark:text-gray-400'}`}>
{label}
</span>
- {cut?.trigger === 'manual' && (
- <span className="t-micro text-gray-400 dark:text-gray-600">/compact</span>
- )}
{canOpen && (
<ChevronDown
size={10}