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
fix(code): the Chat Agent's folder line stays out of the Code area
purpledb26069b7e12
diff --git a/src/components/chat/ChatNotices.tsx b/src/components/chat/ChatNotices.tsxindex e10ba57b..16411e53 100644--- a/src/components/chat/ChatNotices.tsx+++ b/src/components/chat/ChatNotices.tsx@@ -25,15 +25,23 @@ const ICON: Record<ChatNoticeId, typeof Paperclip> = {'agent-for-local-files': Bot,}+/** Zeilen ueber den Agent-Knopf und seinen Ordner im CHAT. Im Code-Bereich+ * gibt es diesen Knopf nicht, dort waehlt man den Ordner im Dateibaum; die+ * Anleitung stimmte dort nicht (Gegenprobe 01.10.2026). */+const CHAT_ONLY: ReadonlySet<ChatNoticeId> = new Set(['agent-outside-workspace', 'agent-for-local-files'])+interface Props {/** Die Dokumentenablage oeffnen, fuer die Zeile ueber den fehlgegangenen* Anhang. Fehlt sie, faellt der Knopf weg und der Satz bleibt wahr. */onAttachDocs?: () => void+ /** Wo gezeichnet wird. Im Code-Bereich fallen die Chat-Agent-Zeilen weg. */+ surface?: 'chat' | 'code'}-export function ChatNotices({ onAttachDocs }: Props) {- const notices = useChatNoticeStore((s) => s.notices)+export function ChatNotices({ onAttachDocs, surface = 'chat' }: Props) {+ const all = useChatNoticeStore((s) => s.notices)const dismiss = useChatNoticeStore((s) => s.dismiss)+ const notices = surface === 'code' ? all.filter((n) => !CHAT_ONLY.has(n.id)) : allif (notices.length === 0) return nulldiff --git a/src/components/chat/CodexView.tsx b/src/components/chat/CodexView.tsxindex 26220f09..4e815433 100644--- a/src/components/chat/CodexView.tsx+++ b/src/components/chat/CodexView.tsx@@ -699,7 +699,7 @@ export function CodexView() {als Geschwister UEBER dem Kasten statt darin; die Wartezeile unddie Composer-Hinweise sind Hinweise und stehen jetzt hier. DieZeile ueber das MODELL ist in den Modellwaehler gezogen. */}- <ChatNotices />+ <ChatNotices surface="code" /><LoopBar onStop={stopCodex} /><GoalBar /><LocalLaneWaitLine waiting={!!queuedForLocalLane} queuePosition={localLaneQueuePosition} />diff --git a/src/components/chat/__tests__/code-shows-no-chat-agent-notice.test.tsx b/src/components/chat/__tests__/code-shows-no-chat-agent-notice.test.tsxnew file mode 100644index 00000000..16ceaf26--- /dev/null+++ b/src/components/chat/__tests__/code-shows-no-chat-agent-notice.test.tsx@@ -0,0 +1,35 @@+/**+ * @vitest-environment jsdom+ *+ * Gegenprobe 01.10.2026: the Chat Agent's line "click the Sandbox or folder+ * button next to Agent" also showed in the Code area, which has no such+ * button (its folder is picked in the file tree). The Code area leaves the+ * Chat Agent's lines out; every other line still shows there.+ */+import { describe, it, expect, beforeEach, afterEach } from 'vitest'+import { createElement } from 'react'+import { render, screen, cleanup } from '@testing-library/react'+import { ChatNotices } from '../ChatNotices'+import { useChatNoticeStore } from '../../../stores/chatNoticeStore'+import { OUTSIDE_WORKSPACE_NOTICE } from '../../../lib/workspace-refusal'++beforeEach(() => {+ useChatNoticeStore.setState({ notices: [] })+ useChatNoticeStore.getState().show('agent-outside-workspace', OUTSIDE_WORKSPACE_NOTICE)+ useChatNoticeStore.getState().show('model-cannot-see-images', 'This model cannot see images.')+})+afterEach(() => cleanup())++describe('the Chat Agent line stays in Chat', () => {+ it('Chat shows it', () => {+ render(createElement(ChatNotices))+ expect(screen.getByTestId('chat-notices').textContent).toContain('next to Agent')+ })++ it('Code leaves it out and keeps the rest', () => {+ render(createElement(ChatNotices, { surface: 'code' }))+ const text = screen.getByTestId('chat-notices').textContent ?? ''+ expect(text).not.toContain('next to Agent')+ expect(text).toContain('cannot see images')+ })+})