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(code): the empty Code area shows the Code view with its composer

purplea67ef7852492
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ef0cb543..d9566299 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -56,6 +56,9 @@ cloud catalogue. It also fixes the bugs reported on GitHub and Discord since
bin, because LM Studio offers no way to delete a model from outside, and
Details showed nothing. Details now says to delete it in LM Studio under
My Models, and does the same for other local servers.
+- **The Code area always has an input box.** With no code conversation open
+ it showed "Type below to start." over nothing; the first instruction can now
+ be typed right there.
- **Turbo checkpoints start at a few steps.** SD-Turbo, SDXL-Turbo,
Lightning, Hyper-SD and LCM checkpoints start at 4 steps and CFG 1 instead
of the family's 25 steps.
diff --git a/e2e/leerzustand-sitzt-mittig.spec.ts b/e2e/leerzustand-sitzt-mittig.spec.ts
index 01460ad2..c14b2e85 100644
--- a/e2e/leerzustand-sitzt-mittig.spec.ts
+++ b/e2e/leerzustand-sitzt-mittig.spec.ts
@@ -94,15 +94,26 @@ for (const { label, width, height } of sizes) {
expectMittig(m)
})
- test(`Code-Leerzustand sitzt mittig bei ${label}`, async ({ page }) => {
+ // 3.0.4 Gegenprobe (02.10.2026): ohne Unterhaltung zeigte der Code-Bereich
+ // die Chat-Eingangsseite ohne Eingabefeld. Jetzt steht dort die Code-Ansicht
+ // mit ihrem Composer; ihr Leerblock muss genauso mittig sitzen.
+ test(`Code-Leerzustand sitzt mittig bei ${label} und hat ein Eingabefeld`, async ({ page }) => {
await page.addInitScript(tauriMockInit, { assistantReply: DEFAULT_ASSISTANT_REPLY, modelName: DEFAULT_MODEL_NAME })
await seedOnboardingDone(page)
await page.setViewportSize({ width, height })
await page.goto('/')
await expect(page.getByTestId('chat-landing')).toBeVisible()
await page.getByRole('button', { name: 'Code', exact: true }).click()
- await expect(page.getByTestId('chat-landing')).toBeVisible()
- const m = await measureLanding(page)
+ await expect(page.getByTestId('codex-landing')).toBeVisible()
+ await expect(page.getByRole('main').locator('textarea')).toBeVisible()
+ const m = await page.evaluate(() => {
+ const box = document.querySelector('[data-testid="codex-landing"]') as HTMLElement
+ const kids = Array.from(box.children) as HTMLElement[]
+ const top = Math.min(...kids.map((k) => k.getBoundingClientRect().top))
+ const bottom = Math.max(...kids.map((k) => k.getBoundingClientRect().bottom))
+ const a = box.getBoundingClientRect()
+ return { blockCenterY: (top + bottom) / 2, areaCenterY: (a.top + a.bottom) / 2, areaHeight: a.height, deviationPct: (((top + bottom) / 2 - (a.top + a.bottom) / 2) / a.height) * 100 }
+ })
expectMittig(m)
})
}
diff --git a/src/components/chat/ChatView.tsx b/src/components/chat/ChatView.tsx
index 6657b650..3d210a1c 100644
--- a/src/components/chat/ChatView.tsx
+++ b/src/components/chat/ChatView.tsx
@@ -299,7 +299,13 @@ export function ChatView() {
traegt seinen eigenen `overflow-y-auto` weiter unten. */}
<div className="flex-1 flex overflow-clip min-h-0">
<div className="flex-1 flex flex-col min-w-0 relative">
- {chatMode === 'codex' && activeConversationId ? (
+ {/* 3.0.4 Gegenprobe on the Windows box (02.10.2026): the Code area
+ with no conversation fell through to the chat landing page, which
+ says "Type below to start." over a composer the Code area hides,
+ so there was nothing to type into until New Chat. The Code view
+ has its own composer and its first send creates the code
+ conversation (useCodex), so it serves the empty state too. */}
+ {chatMode === 'codex' ? (
<CodexView />
) : (<>
<AnimatePresence mode="wait">
@@ -765,94 +771,88 @@ export function ChatView() {
LoopBar und GoalBar sind Bedienelemente (Bremse, Loeschen) und
bleiben sichtbar, nur eine Etage hoeher; die Wartezeile der
lokalen Spur ist ein Hinweis und war vorher im Kasten. */}
- {chatMode !== 'codex' && (
- <>
- <LoopBar onStop={stopGeneration} />
- <GoalBar />
- <LocalLaneWaitLine
- waiting={!!queuedForLocalLane}
- queuePosition={localLaneQueuePosition}
- onApproval={waitingOnApproval}
- onApprovalIn={localLaneHolderTitle}
- />
- </>
- )}
-
- {/* Code mode brings its own composer, so it stays out of this one. */}
- {chatMode !== 'codex' && (
- <ChatInput
- onSend={sendMessage}
- onStop={stopGeneration}
- isGenerating={busy.thisChat || queuedForLocalLane}
- waitingForLocalLane={queuedForLocalLane}
- pendingApproval={pendingApproval}
- onApprove={approveToolCall}
- onReject={rejectToolCall}
- // Commands need the tool catalog to drive, which only Agent
- // mode has here. Plain chat leaves "/cmd" as ordinary text.
- slashCommands={isAgentActive ? 'agent' : 'chat'}
- composerModel={
- /* What this chat's answers were written by rides on the
- picker itself now, as a dot plus a tooltip, instead of a
- second chip in the row (Meldung 4, R5 re-measure; David
- 2026-09-02 wanted it hidden away). */
- <ModelSelector openUpward answeredBy={conversationModelHint} />
- }
- // No plan lives here. The prompt window is the prompt window
- // (David, 2026-08-22): the plan band sits in the session strip
- // above, next to the other standing status controls.
- // Was HIER noch steht, ist genau eine Zeile, und sie steht
- // unter Vorbehalt: `GroupCostHint` sagt, was der naechste Enter
- // kostet („1 round = 3 answers = 3x the cost"). Geld wird nicht
- // stumm geschaltet, ohne dass der Eigner es entschieden hat, und
- // die Zeile gibt es ueberhaupt nur in einem Gruppenchat. Alles
- // andere, was hier stand, ist ausgezogen (siehe oben).
- composerAbove={<GroupCostHint />}
- composerActions={
- <>
- {/* Documents (RAG), shown in both modes since A9. In
- Cloud mode without an embedding lane it stays visible
- and says what is missing. */}
- <DocsButton
- availability={docs}
- open={ragPanelOpen}
- ragEnabled={ragEnabled}
- docCount={docCount}
- onToggle={() => setRagPanelOpen(!ragPanelOpen)}
- />
-
- {/* Plugins (Chat Tools + Caveman + Personas) */}
- <PluginsDropdown openUpward />
-
- {/* Tools: agent permission overrides (only when agent active) */}
- {isAgentActive && (
- <div className="relative">
- <button
- onClick={() => setToolsDropdownOpen(!toolsDropdownOpen)}
- aria-expanded={toolsDropdownOpen}
- className="lu-control"
- >
- {/* Kein eigener Gruenton mehr: das Icon erbt die
- Farbe des Controls, sonst traegt ein neutrales
- Control wieder einen Akzent von sich aus. */}
- <Wrench size={11} />
- <span>Tools</span>
- <ChevronDown size={9} className={`transition-transform ${toolsDropdownOpen ? 'rotate-180' : ''}`} />
- </button>
- {toolsDropdownOpen && (
- <>
- <div className="fixed inset-0 z-40" onClick={() => setToolsDropdownOpen(false)} />
- <div className="absolute left-0 bottom-full mb-0.5 z-50 w-28 rounded-md bg-white dark:bg-[#1a1a1a] border border-gray-200 dark:border-white/10 shadow-xl py-0.5 px-0.5">
- <PermissionOverrideBar />
- </div>
- </>
- )}
- </div>
- )}
- </>
- }
- />
- )}
+ <LoopBar onStop={stopGeneration} />
+ <GoalBar />
+ <LocalLaneWaitLine
+ waiting={!!queuedForLocalLane}
+ queuePosition={localLaneQueuePosition}
+ onApproval={waitingOnApproval}
+ onApprovalIn={localLaneHolderTitle}
+ />
+
+ {/* Code mode brings its own composer (CodexView above). */}
+ <ChatInput
+ onSend={sendMessage}
+ onStop={stopGeneration}
+ isGenerating={busy.thisChat || queuedForLocalLane}
+ waitingForLocalLane={queuedForLocalLane}
+ pendingApproval={pendingApproval}
+ onApprove={approveToolCall}
+ onReject={rejectToolCall}
+ // Commands need the tool catalog to drive, which only Agent
+ // mode has here. Plain chat leaves "/cmd" as ordinary text.
+ slashCommands={isAgentActive ? 'agent' : 'chat'}
+ composerModel={
+ /* What this chat's answers were written by rides on the
+ picker itself now, as a dot plus a tooltip, instead of a
+ second chip in the row (Meldung 4, R5 re-measure; David
+ 2026-09-02 wanted it hidden away). */
+ <ModelSelector openUpward answeredBy={conversationModelHint} />
+ }
+ // No plan lives here. The prompt window is the prompt window
+ // (David, 2026-08-22): the plan band sits in the session strip
+ // above, next to the other standing status controls.
+ // Was HIER noch steht, ist genau eine Zeile, und sie steht
+ // unter Vorbehalt: `GroupCostHint` sagt, was der naechste Enter
+ // kostet („1 round = 3 answers = 3x the cost"). Geld wird nicht
+ // stumm geschaltet, ohne dass der Eigner es entschieden hat, und
+ // die Zeile gibt es ueberhaupt nur in einem Gruppenchat. Alles
+ // andere, was hier stand, ist ausgezogen (siehe oben).
+ composerAbove={<GroupCostHint />}
+ composerActions={
+ <>
+ {/* Documents (RAG), shown in both modes since A9. In
+ Cloud mode without an embedding lane it stays visible
+ and says what is missing. */}
+ <DocsButton
+ availability={docs}
+ open={ragPanelOpen}
+ ragEnabled={ragEnabled}
+ docCount={docCount}
+ onToggle={() => setRagPanelOpen(!ragPanelOpen)}
+ />
+
+ {/* Plugins (Chat Tools + Caveman + Personas) */}
+ <PluginsDropdown openUpward />
+
+ {/* Tools: agent permission overrides (only when agent active) */}
+ {isAgentActive && (
+ <div className="relative">
+ <button
+ onClick={() => setToolsDropdownOpen(!toolsDropdownOpen)}
+ aria-expanded={toolsDropdownOpen}
+ className="lu-control"
+ >
+ {/* Kein eigener Gruenton mehr: das Icon erbt die
+ Farbe des Controls, sonst traegt ein neutrales
+ Control wieder einen Akzent von sich aus. */}
+ <Wrench size={11} />
+ <span>Tools</span>
+ <ChevronDown size={9} className={`transition-transform ${toolsDropdownOpen ? 'rotate-180' : ''}`} />
+ </button>
+ {toolsDropdownOpen && (
+ <>
+ <div className="fixed inset-0 z-40" onClick={() => setToolsDropdownOpen(false)} />
+ <div className="absolute left-0 bottom-full mb-0.5 z-50 w-28 rounded-md bg-white dark:bg-[#1a1a1a] border border-gray-200 dark:border-white/10 shadow-xl py-0.5 px-0.5">
+ <PermissionOverrideBar />
+ </div>
+ </>
+ )}
+ </div>
+ )}
+ </>
+ }
+ />
</>)}
</div>
diff --git a/src/components/chat/CodexView.tsx b/src/components/chat/CodexView.tsx
index 4d57c7c3..87fdcbac 100644
--- a/src/components/chat/CodexView.tsx
+++ b/src/components/chat/CodexView.tsx
@@ -30,6 +30,7 @@ import { useSettingsStore } from '../../stores/settingsStore'
import { useModelStore } from '../../stores/modelStore'
import { useAnyAgentLoopActive } from '../../stores/agentLoopStore'
import { useUIStore } from '../../stores/uiStore'
+import { RecentChats } from './RecentChats'
import { useAgentModeStore } from '../../stores/agentModeStore'
import {
CODEX_WORKDIR_LOCK_TITLE,
@@ -157,6 +158,7 @@ export function CodexView() {
const lockReason = codexBusyReason({ sendsInFlight, threads, generating: generatingMap, loop })
// The open explorer already says why the folder is held (explorer-workdir-lock).
const explorerCollapsed = useUIStore((s) => s.explorerCollapsed)
+ const sidebarOpen = useUIStore((s) => s.sidebarOpen)
// Where the agent goes while no folder is picked: a per-chat workspace or
// settings.defaultWorkspace both beat an empty picker, so the header and the
@@ -370,7 +372,7 @@ export function CodexView() {
{/* Messages */}
<div ref={scrollRef} className="flex-1 min-h-[10rem] overflow-y-auto scrollbar-thin" data-testid="codex-transcript">
{messages.length === 0 ? (
- <div className="flex flex-col items-center justify-center h-full text-center">
+ <div className="flex flex-col items-center justify-center h-full text-center" data-testid="codex-landing">
<Code size={28} className="text-gray-300 dark:text-gray-700 mb-2" />
<p className="text-[0.7rem] text-gray-500 font-medium">Coding Agent</p>
<p className="text-[0.55rem] text-gray-400 dark:text-gray-600 mt-0.5 max-w-[300px]">
@@ -386,6 +388,14 @@ export function CodexView() {
"Select folder..." in the file tree panel on the right.
</p>
)}
+ {/* With the side panel collapsed the latest code chats stand
+ here, as they did on the old Code landing (GH #141). With no
+ conversation open this is the Code area's start screen. */}
+ {!sidebarOpen && !activeConversationId && (
+ <div className="w-full pt-3 flex flex-col items-center text-left">
+ <RecentChats />
+ </div>
+ )}
</div>
) : (
<div ref={contentRef} className="py-1">
diff --git a/src/lib/release-notes.ts b/src/lib/release-notes.ts
index ebbf6bcf..ef4fc77e 100644
--- a/src/lib/release-notes.ts
+++ b/src/lib/release-notes.ts
@@ -156,7 +156,7 @@ export const RELEASE_NOTES: ReleaseNote[] = [
},
{
title: 'Fixes from GitHub and Discord.',
- detail: 'A group chat answers with every LU Engine model in it, also when the models sit in your Model Storage folder. Ollama models download without one already installed. A GGUF from the CivitAI search lands where ComfyUI reads it. A fresh ComfyUI install on Windows gets its own Python environment, which fixes "hipdnn_backend.dll Bad Image" on AMD cards. The window no longer disappears on Linux. A character trained on your own machine takes up to 100 photos, and Details on an LM Studio model says where to delete it. A newer image or video model with a missing encoder or VAE names that file and offers the download, instead of ending in "Value not in list". A LoRA deleted from the loras folder leaves the stack, a run only sends LoRAs ComfyUI lists, and Clear turns the stack off. The Code agent runs tool calls a cloud model writes into its answer or sends under the name "function", instead of stopping on them. A downloaded render is always the one you picked, and Download in the gallery strip opens the Save dialog on Windows. Create no longer offers the starter download while ComfyUI is still starting, and Turbo or Lightning checkpoints start at 4 steps.',
+ detail: 'A group chat answers with every LU Engine model in it, also when the models sit in your Model Storage folder. Ollama models download without one already installed. A GGUF from the CivitAI search lands where ComfyUI reads it. A fresh ComfyUI install on Windows gets its own Python environment, which fixes "hipdnn_backend.dll Bad Image" on AMD cards. The window no longer disappears on Linux. A character trained on your own machine takes up to 100 photos, and Details on an LM Studio model says where to delete it. A newer image or video model with a missing encoder or VAE names that file and offers the download, instead of ending in "Value not in list". A LoRA deleted from the loras folder leaves the stack, a run only sends LoRAs ComfyUI lists, and Clear turns the stack off. The Code agent runs tool calls a cloud model writes into its answer or sends under the name "function", instead of stopping on them. A downloaded render is always the one you picked, and Download in the gallery strip opens the Save dialog on Windows. Create no longer offers the starter download while ComfyUI is still starting, and Turbo or Lightning checkpoints start at 4 steps. The Code area has an input box even before the first code conversation.',
},
{
title: 'Writing a long file no longer ends the run.',