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
feat(ui): Compact und Hintergrundagenten in Chat, Agent und Code montiert
Claudedded6fb1b6e2
diff --git a/src/components/__tests__/die-typo-leiter-und-ihre-umgehung.test.ts b/src/components/__tests__/die-typo-leiter-und-ihre-umgehung.test.tsindex 787e69d0..bc47cada 100644--- a/src/components/__tests__/die-typo-leiter-und-ihre-umgehung.test.ts+++ b/src/components/__tests__/die-typo-leiter-und-ihre-umgehung.test.ts@@ -83,6 +83,7 @@ const FUNDSTELLEN = [...WERTE.values()].reduce((a, b) => a + b, 0)// Welle 1 (Klasse gebaut) 30 Werte / 1026 Fundstellen// 25 Werte / 1009 Fundstellen// Welle 2 (Klasse gezogen) 23 Werte / 826 Fundstellen+// 2.6.8 (Auto-Compact) 23 Werte / 820 Fundstellen//// Welle 1 hat `#7c3aed`/`#a78bfa` (jetzt Tokens), `8px` (identisch zu// 0.5rem), `0.75rem` (identisch zu 12px) und `0.63rem` abgebaut.@@ -98,8 +99,18 @@ const FUNDSTELLEN = [...WERTE.values()].reduce((a, b) => a + b, 0)// index.css. Der groesste Rest ist `0.55rem` (8,8px) und `0.5rem` (8px):// dorthin zu ziehen waere +14 bzw. +25 %, also ein Entwurf und keine// Zusammenfuehrung.+//+// 2.6.8 hat diese Klinke ausgeloest, und das ist der Beweis, dass sie+// arbeitet: die neue Auto-Compact-Zeile in den Einstellungen entstand+// durch Abschreiben der Nachbarzeile und brachte drei frische+// Umgehungen mit (829). Der Ausweg war nicht, die Schranke zu heben,+// sondern die ganze Zahlensektion — Max Tokens, Context window und die+// neue Zeile — auf die Leiter zu stellen: `.t-micro` fuer Beschriftung+// und Hilfstext, `.t-mono` fuer die drei Zahlenfelder. Das ist genau+// der Zug, den diese Klinke erzwingen soll, und er hat die Sektion+// nebenbei einheitlich gemacht statt einheitlich falsch.const SCHRANKE_WERTE = 23-const SCHRANKE_FUNDSTELLEN = 826+const SCHRANKE_FUNDSTELLEN = 820describe('die Umgehung ist gedeckelt und darf nur schrumpfen', () => {it(`hoechstens ${SCHRANKE_WERTE} verschiedene arbitraere Schriftgroessen`, () => {diff --git a/src/components/chat/ChatInput.tsx b/src/components/chat/ChatInput.tsxindex 861c1152..fa918a35 100644--- a/src/components/chat/ChatInput.tsx+++ b/src/components/chat/ChatInput.tsx@@ -1,6 +1,6 @@import { useState, useRef, useEffect, useCallback, type ReactNode } from 'react'import { Send, Square, Paperclip, X, Brain, Terminal } from 'lucide-react'-import { matchAgentCommands, type AgentCommand } from '../../lib/agent-commands'+import { matchAgentCommands, type AgentCommand, type CommandScope } from '../../lib/agent-commands'import { VoiceButton } from './VoiceButton'import { ApprovalDialog } from './ApprovalDialog'import { useVoiceStore } from '../../stores/voiceStore'@@ -23,7 +23,13 @@ interface Props {* Enable the "/command" typeahead. Only the Coding Agent (Code view) sets this* — slash commands belong there, not in the normal chat (David 2026-06-12).*/- slashCommands?: boolean+ /**+ * Which commands this composer offers. Was a boolean meaning+ * "Coding-Agent-only"; since 2.6.8 it is the SCOPE, because the answer+ * stopped being all-or-nothing: plain chat offers /compact and nothing else,+ * while Agent and Coding offer the whole set. Undefined = no menu at all.+ */+ slashCommands?: CommandScope/*** Open the Documents (RAG) panel. The clip button is images-only; this lets the* composer point a user who tried to attach a PDF/doc to the right place@@ -182,12 +188,14 @@ export function ChatInput({ onSend, onStop, isGenerating, pendingApproval, onAppif (textareaRef.current) textareaRef.current.style.height = 'auto'}- // Update the input + the slash-command typeahead together. The typeahead is- // Coding-Agent-only — in the normal chat (slashCommands unset) "/foo" is just- // text and no menu appears.+ // Update the input + the slash-command typeahead together. The menu shows+ // what the SURFACE can actually carry out: everything in Agent and Coding,+ // and in plain chat only the commands marked for it (today: /compact).+ // Offering an agent command where there is no tool catalogue would be+ // offering work the surface cannot do.const updateInput = (value: string) => {setInput(value)- const matches = slashCommands ? matchAgentCommands(value) : []+ const matches = slashCommands ? matchAgentCommands(value, slashCommands) : []setCmdMenu(matches)setCmdIndex(0)}diff --git a/src/components/chat/ChatView.tsx b/src/components/chat/ChatView.tsxindex fe1221f6..888a2fb3 100644--- a/src/components/chat/ChatView.tsx+++ b/src/components/chat/ChatView.tsx@@ -5,6 +5,7 @@ import { useChatStore } from '../../stores/chatStore'import { useModelStore } from '../../stores/modelStore'import { useRAGStore } from '../../stores/ragStore'import { useAgentModeStore } from '../../stores/agentModeStore'+import { AgentPanel } from './AgentPanel'import { MessageList } from './MessageList'import { ChatInput } from './ChatInput'import { RAGPanel } from './RAGPanel'@@ -512,7 +513,7 @@ export function ChatView() {onReject={rejectToolCall}// Commands need the tool catalog to drive, which only Agent// mode has here. Plain chat leaves "/cmd" as ordinary text.- slashCommands={isAgentActive}+ slashCommands={isAgentActive ? 'agent' : 'chat'}onAttachDocs={appMode !== 'cloud' ? () => setRagPanelOpen(true) : undefined}composerModel={<div className="flex items-center gap-1.5">@@ -593,6 +594,18 @@ export function ChatView() {</ErrorBoundary>)}</AnimatePresence>++ {/* Hintergrundagenten, ganz aussen rechts.+ HIER und nicht in CodexView, obwohl der Code-Modus eigene Spalten+ hat: diese eine Montage deckt BEIDE Bereiche ab, weil CodexView+ innerhalb dieser Zeile gerendert wird. Im Code-Modus steht das+ Panel damit rechts NEBEN dem Explorer statt in ihm — zwei+ Spalten mit zwei Aufgaben, und keine musste die andere aufnehmen.+ Es rendert `null`, solange diese Konversation keine+ Hintergrundaufgabe hat, also auch im normalen Chat immer: dort+ kommt `delegate_task` gar nicht erst in die Werkzeugliste+ (CHAT_TOOLS), festgehalten in multiagent-nicht-im-chat.test.ts. */}+ <AgentPanel /></div>{/* Export toast */}diff --git a/src/components/chat/CodexView.tsx b/src/components/chat/CodexView.tsxindex b4c12f70..3172199d 100644--- a/src/components/chat/CodexView.tsx+++ b/src/components/chat/CodexView.tsx@@ -2,6 +2,7 @@ import { useCodex } from '../../hooks/useCodex'import { useAutoScroll } from '../../hooks/useAutoScroll'import { useCodexStore } from '../../stores/codexStore'import { useChatStore } from '../../stores/chatStore'+import { useBackgroundAgentWake } from '../../hooks/useBackgroundAgentWake'import { useGenerationStore } from '../../stores/generationStore'import { ChatInput } from './ChatInput'import { ToolCallBlock } from './ToolCallBlock'@@ -25,8 +26,10 @@ import { useSettingsStore } from '../../stores/settingsStore'import { useModelStore } from '../../stores/modelStore'import { StagedChangesPanel } from './StagedChangesPanel'import { SlashStepsBlock } from './SlashStepsBlock'+import { CompactBlock } from './CompactBlock'+import { compactionAnchors } from '../../lib/compact-summary'import { User, Code, Eye, GitBranch, Download, RefreshCw, RotateCcw, Folder, Check, AlertTriangle } from 'lucide-react'-import { useEffect, useState } from 'react'+import { Fragment, useEffect, useState } from 'react'import { checkGitInstalled, openExternal, type GitStatus } from '../../api/backend'import { CodexConfirmDialog } from './CodexConfirmDialog'import { stripModelNoise } from '../../lib/strip-model-noise'@@ -42,6 +45,10 @@ const stripChannelTags = (text: string) => stripModelNoise(text, { aggressive: texport function CodexView() {const { sendInstruction, stopCodex, isRunning } = useCodex()+ // Derselbe Weckhaken wie im Agentenweg: eine Hintergrundaufgabe endet fast+ // immer NACH dem Zug, der sie startete, und ohne diesen Haken erfuehre das+ // Modell davon erst bei der naechsten Eingabe des Menschen.+ useBackgroundAgentWake(useChatStore((s) => s.activeConversationId), sendInstruction)const activeConversationId = useChatStore((s) => s.activeConversationId)const conversations = useChatStore((s) => s.conversations)const thread = useCodexStore((s) => activeConversationId ? s.threads[activeConversationId] : undefined)@@ -49,6 +56,15 @@ export function CodexView() {const conversation = conversations.find(c => c.id === activeConversationId)const messages = conversation?.messages || []+ // Verdichtungslinien fuer den Code-Verlauf. Codex blendet nur `hidden` aus+ // (Systemhinweise bleiben stehen), aber die Rechnung laeuft trotzdem ueber+ // die volle Liste — der Schnittpunkt darf auf eine ausgeblendete zeigen.+ const compactAt = compactionAnchors(+ messages,+ messages.filter((m) => !m.hidden).map((m) => m.id),+ conversation?.compactions,+ )+// Per-conversation generating flag (David 2026-06-12): the typing indicator// + realtime counter + a message's live-stream state must follow the coding// chat that's ACTUALLY running — not every chat the user switches to. The@@ -221,6 +237,14 @@ export function CodexView() {) : (<div ref={contentRef} className="py-1">{messages.filter(msg => !msg.hidden).map((msg) => {+ // Der Rumpf hat mehrere Ausgaenge (Hinweiszeile, Werkzeugblock,+ // normale Blase). Statt jeden einzeln anzufassen, wandert er+ // unveraendert in eine IIFE — seine `return`s werden ihre. Die+ // Verdichtungslinie haengt danach EINMAL an, fuer alle Ausgaenge+ // gleich. Der Alternativentwurf, jeden Ausgang zu umhuellen,+ // waere dieselbe Zeile an fuenf Stellen gewesen, und die+ // sechste, die jemand spaeter dazuschreibt, haette gefehlt.+ const gerendert = (() => {// App notices (a staged change that landed on disk) are not// model turns. They used to be written hidden, so the one line// that says "the file on disk is not the diff you approved"@@ -487,6 +511,17 @@ export function CodexView() {</div></div>)+ })()+ const linien = compactAt.get(msg.id)+ if (!linien?.length) return gerendert+ return (+ <Fragment key={msg.id}>+ {gerendert}+ {linien.map((record) => (+ <CompactBlock key={record.id} record={record} />+ ))}+ </Fragment>+ )})}{/* 3-dot indicator while THIS coding chat is mid-loop. Bound tothe per-conversation flag so switching to another (idle) chat@@ -520,7 +555,7 @@ export function CodexView() {// parallel send and no Stop button. The generating flag follows the// conversation, not the hook instance.isGenerating={isRunning || codexGenerating}- slashCommands+ slashCommands="agent"composerModel={<ModelSelector openUpward surface="code" />}// No plan lives here. The prompt window is the prompt window// (David, 2026-08-22): the plan and its Approve-and-run card sitdiff --git a/src/components/chat/MessageBubble.tsx b/src/components/chat/MessageBubble.tsxindex 7c52b319..43a4afa1 100644--- a/src/components/chat/MessageBubble.tsx+++ b/src/components/chat/MessageBubble.tsx@@ -292,7 +292,7 @@ function MessageBubbleImpl({ message, onRegenerate, onEdit, pendingApprovalId, ochat. Turns from before that carry none and get no line, ratherthan a guess. */}{!isUser && message.modelId && (- <div className="text-[0.55rem] font-mono text-gray-400 dark:text-gray-500 pl-1">{message.modelId}</div>+ <div className="t-mono text-gray-500 dark:text-gray-400 pl-1">{message.modelId}</div>)}{/* Thinking block — auto-expands while this (last) turn is stillproducing so the reasoning streams LIVE, then collapses (David 2026-06-04). */}diff --git a/src/components/chat/MessageList.tsx b/src/components/chat/MessageList.tsxindex f359c0b1..d49f79dc 100644--- a/src/components/chat/MessageList.tsx+++ b/src/components/chat/MessageList.tsx@@ -4,6 +4,8 @@ import { useChatStore } from '../../stores/chatStore'import { useAutoScroll } from '../../hooks/useAutoScroll'import { MessageBubble } from './MessageBubble'import { WorkingAnchor } from './WorkingAnchor'+import { CompactBlock } from './CompactBlock'+import { compactionAnchors } from '../../lib/compact-summary'/*** Above this many visible messages the transcript stops paying full layout +@@ -111,7 +113,14 @@ export function MessageList({ isGenerating, isThisChatGenerating, isLoadingModelif (!conversation) return null- const visibleMessages = conversation.messages.filter((m) => m.role !== 'system' && !m.hidden)+ // App-Hinweise sind Systemnachrichten mit `notice` — sie erreichen das+ // Modell nie (die Nutzlast wirft `role:'system'` weg) und gehoeren trotzdem+ // in den Verlauf. Bis 2.6.8 filterte diese Zeile jede Systemnachricht weg,+ // und der Code-Verlauf zeigte sie schon; damit war `/compact` im Chat+ // stumm, sobald die beiden Zeilen ehrlich als Hinweise abgelegt wurden.+ const visibleMessages = conversation.messages.filter(+ (m) => (m.role !== 'system' || !!m.notice) && !m.hidden,+ )const lastVisibleId = visibleMessages[visibleMessages.length - 1]?.idif (skipGate.id !== conversation.id) {@@ -123,6 +132,15 @@ export function MessageList({ isGenerating, isThisChatGenerating, isLoadingModelconst skipOffscreen = skipGate.id === conversation.id && skipGate.onconst tailStart = visibleMessages.length - ALWAYS_RENDERED_TAIL+ // Die Verdichtungslinien. Berechnet aus der VOLLEN Nachrichtenliste, weil+ // der Schnittpunkt auf eine gefilterte Nachricht zeigen kann, aber+ // angezeigt an sichtbaren Zeilen — siehe compactionAnchors.+ const compactAt = compactionAnchors(+ conversation.messages,+ visibleMessages.map((m) => m.id),+ conversation.compactions,+ )+return (<divref={scrollRef}@@ -145,6 +163,20 @@ export function MessageList({ isGenerating, isThisChatGenerating, isLoadingModelkey={message.id}style={skipOffscreen && index < tailStart ? SKIPPABLE : undefined}>+ {message.role === 'system' && message.notice ? (+ // Schlichte Zeile, keine Blase: eine Blase wuerde behaupten,+ // das Modell habe es gesagt. Dieselbe Form wie im+ // Code-Verlauf (CodexView, data-testid="codex-notice").+ <div className="px-3 py-1" data-testid="chat-notice">+ <div className={`flex items-start gap-1.5 px-2 py-1 rounded border t-micro leading-snug ${+ message.notice === 'warn'+ ? 'border-amber-300/70 dark:border-amber-500/30 bg-amber-50 dark:bg-amber-500/10 text-amber-900 dark:text-amber-200'+ : 'border-gray-200 dark:border-white/10 bg-gray-50/60 dark:bg-white/[0.02] text-gray-500 dark:text-gray-400'+ }`}>+ <span className="break-words">{message.content}</span>+ </div>+ </div>+ ) : (<MessageBubblemessage={message}isLast={message.id === lastVisibleId}@@ -161,6 +193,10 @@ export function MessageList({ isGenerating, isThisChatGenerating, isLoadingModelonApprove={onApprove}onReject={onReject}/>+ )}+ {compactAt.get(message.id)?.map((record) => (+ <CompactBlock key={record.id} record={record} />+ ))}</div>))}{/* The run anchor stays visible the entire time the agent is stilldiff --git a/src/components/chat/ThinkingBlock.tsx b/src/components/chat/ThinkingBlock.tsxindex ac924e05..e6262878 100644--- a/src/components/chat/ThinkingBlock.tsx+++ b/src/components/chat/ThinkingBlock.tsx@@ -47,7 +47,7 @@ export function ThinkingBlock({ thinking, streaming }: Props) {aria-label="Toggle thinking details"><Brain size={10} className="text-blue-400/70 shrink-0" />- <span className={`t-micro text-blue-400/70 ${streaming ? 'lu-tool-shimmer' : ''}`}>Thinking</span>+ <span className={`t-micro text-blue-400 ${streaming ? 'lu-tool-shimmer' : ''}`}>Thinking</span><ChevronDownsize={9}className={`text-blue-400/50 transition-transform duration-[var(--motion-base)] ${open ? 'rotate-180' : ''}`}@@ -62,7 +62,7 @@ export function ThinkingBlock({ thinking, streaming }: Props) {ref={previewRef}className={`pl-4 pb-1 pt-0.5 ${PREVIEW_MAX_H} overflow-hidden pointer-events-none [mask-image:linear-gradient(to_bottom,transparent,#000_20px)]`}>- <div className="t-micro leading-relaxed italic text-blue-200/40">+ <div className="t-micro leading-relaxed italic text-blue-200/60"><MarkdownRenderer content={cleaned} /></div></div>@@ -78,7 +78,7 @@ export function ThinkingBlock({ thinking, streaming }: Props) {className="overflow-hidden"><div className="pl-4 pb-1 pt-0.5">- <div className="t-micro leading-relaxed italic text-blue-200/40">+ <div className="t-micro leading-relaxed italic text-blue-200/60"><MarkdownRenderer content={cleaned} /></div></div>diff --git a/src/components/settings/SettingsPage.tsx b/src/components/settings/SettingsPage.tsxindex f54ad2ee..62b426a6 100644--- a/src/components/settings/SettingsPage.tsx+++ b/src/components/settings/SettingsPage.tsx@@ -1413,15 +1413,22 @@ export function SettingsPage() {<SliderControl label="Temperature" value={settings.temperature} min={0} max={2} step={0.1} onChange={(v) => updateSettings({ temperature: v })} /><SliderControl label="Top P" value={settings.topP} min={0} max={1} step={0.05} onChange={(v) => updateSettings({ topP: v })} /><SliderControl label="Top K" value={settings.topK} min={1} max={100} step={1} onChange={(v) => updateSettings({ topK: v })} />+ {/* Die drei Zahlenzeilen dieser Sektion stehen auf der Leiter statt+ in eckigen Klammern (D-T04). Sie taten es nicht, und als 2.6.8+ eine vierte dazukam, hat die Sperrklinke das gefangen — der+ Ausweg war nicht, den Deckel zu heben, sondern die Zeilen zu+ stellen. `.t-micro` ist der schlichte Kleintext der Leiter,+ `.t-mono` ihr Rezept fuer eine Zahl (Ziffernbreite fest, damit+ die Werte untereinander nicht wandern). */}<div className="flex items-center justify-between">- <span className="text-[0.7rem] text-gray-700 dark:text-gray-400">Max Tokens</span>+ <span className="t-micro text-gray-700 dark:text-gray-400">Max Tokens</span><inputtype="number"value={settings.maxTokens}onChange={(e) => updateSettings({ maxTokens: Math.max(0, parseInt(e.target.value) || 0) })}min={0}placeholder="0"- className="w-20 px-1.5 py-0.5 rounded bg-transparent border border-white/8 text-[0.65rem] text-right text-gray-300 font-mono focus:outline-none focus:border-white/20"+ className="w-20 px-1.5 py-0.5 rounded bg-transparent border border-white/8 t-mono text-right text-gray-300 focus:outline-none focus:border-white/20"/></div>{/* Bug AA v2.5.0 — Ollama num_ctx override. 0 = use the provider@@ -1429,19 +1436,92 @@ export function SettingsPage() {clips RAG / long chats). Bump up to use the model's fullcontext window. Ignored by Anthropic / OpenAI providers. */}<div className="flex items-center justify-between">- <span className="text-[0.7rem] text-gray-700 dark:text-gray-400" title="Forwarded as Ollama num_ctx. 0 = provider default (Ollama defaults to 2048, which clips RAG and long chats). Bump up to use the model's full context. Ignored by cloud providers.">Context window (Ollama)</span>+ <span className="t-micro text-gray-700 dark:text-gray-400" title="Forwarded as Ollama num_ctx. 0 = provider default (Ollama defaults to 2048, which clips RAG and long chats). Bump up to use the model's full context. Ignored by cloud providers.">Context window (Ollama)</span><inputtype="number"value={settings.contextWindowOverride ?? 0}onChange={(e) => updateSettings({ contextWindowOverride: Math.max(0, parseInt(e.target.value) || 0) })}min={0}placeholder="0"- className="w-20 px-1.5 py-0.5 rounded bg-transparent border border-white/8 text-[0.65rem] text-right text-gray-300 font-mono focus:outline-none focus:border-white/20"+ className="w-20 px-1.5 py-0.5 rounded bg-transparent border border-white/8 t-mono text-right text-gray-300 focus:outline-none focus:border-white/20"/></div>- <div className="text-[0.6rem] text-gray-500 dark:text-gray-500 leading-relaxed pt-0.5">+ <div className="t-micro text-gray-500 dark:text-gray-500 leading-relaxed pt-0.5">0 = let Ollama decide (defaults to 2048). Set to e.g. 8192 or 16384 if RAG / long chats get clipped. Cloud providers ignore this.</div>+ {/* 2.6.8 auto-compact. Shown as a percentage and stored as a+ fraction, because the threshold is compared against a ratio+ (compact-trigger.ts). Same shape as the row above — a number+ input whose 0 is the off state — rather than a slider, because+ a slider has no way to express "off" at all. */}+ <div className="flex items-center justify-between">+ <span+ className="t-micro text-gray-700 dark:text-gray-400"+ title="When the conversation fills this much of the window, the model writes a summary of the older turns and those turns stop being sent. 0 = off. The full history stays in the chat either way; only what is sent changes."+ >Auto-compact at</span>+ <div className="flex items-center gap-1">+ <input+ type="number"+ value={Math.round((settings.autoCompactThreshold || 0) * 100)}+ onChange={(e) => {+ const pct = Math.max(0, Math.min(100, parseInt(e.target.value) || 0))+ updateSettings({ autoCompactThreshold: pct === 0 ? 0 : pct / 100 })+ }}+ min={0}+ max={100}+ step={5}+ placeholder="0"+ className="w-20 px-1.5 py-0.5 rounded bg-transparent border border-white/8 t-mono text-right text-gray-300 focus:outline-none focus:border-white/20"+ />+ <span className="t-mono text-gray-500 w-3">%</span>+ </div>+ </div>+ <div className="t-micro text-gray-500 dark:text-gray-500 leading-relaxed pt-0.5">+ 0 = off. Set 80 to have older turns summarised once the context is 80% full, instead of being dropped without a word. Values under 30 or over 95 count as off. Costs one extra model call each time it fires. You can always run it yourself with <span className="font-mono">/compact</span>.+ </div>++ {/* Die Kappen fuer einen delegierten Agenten. Getrennt von den+ beiden des Hauptlaufs darueber, weil der Grund ein anderer ist:+ beim Hauptlauf sitzt der Nutzer davor und kann Stop druecken,+ ein Sub-Agent laeuft ohne Zuschauer. Darum sind diese Zahlen+ klein und darum heisst 0 hier "Vorgabe" und nicht+ "unbegrenzt" — Unbegrenztheit soll man an einer+ unbeaufsichtigten Schleife nicht aus Versehen einstellen. */}+ <div className="flex items-center justify-between pt-1">+ <span+ className="t-micro text-gray-700 dark:text-gray-400"+ title="How many tool calls one delegated sub-agent may make."+ >+ Sub-agent tool calls+ </span>+ <input+ type="number"+ value={settings.subAgentMaxToolCalls ?? 0}+ onChange={(e) => updateSettings({ subAgentMaxToolCalls: Math.max(0, parseInt(e.target.value) || 0) })}+ min={0}+ placeholder="10"+ className="w-20 px-1.5 py-0.5 rounded bg-transparent border border-white/8 t-mono text-right text-gray-300 focus:outline-none focus:border-white/20"+ />+ </div>+ <div className="flex items-center justify-between">+ <span+ className="t-micro text-gray-700 dark:text-gray-400"+ title="How many think-act rounds one delegated sub-agent may run."+ >+ Sub-agent steps+ </span>+ <input+ type="number"+ value={settings.subAgentMaxIterations ?? 0}+ onChange={(e) => updateSettings({ subAgentMaxIterations: Math.max(0, parseInt(e.target.value) || 0) })}+ min={0}+ placeholder="5"+ className="w-20 px-1.5 py-0.5 rounded bg-transparent border border-white/8 t-mono text-right text-gray-300 focus:outline-none focus:border-white/20"+ />+ </div>+ <div className="t-micro text-gray-500 dark:text-gray-500 leading-relaxed pt-0.5">+ 0 = use the defaults (10 calls, 5 steps). A sub-agent runs unattended, so these stay deliberately tight — raise them only for a task you know is long.+ </div></Section>{/* Bug BB v2.5.0 — BobbyT GPU picker. Lazy-loads the GPU list when