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
Merge branch 'worktree-agent-a6ff0d776fe80dcc5' into claude/feat-coding-agent-sota-ef64c8
purplec556762d671d
diff --cc src/components/chat/CodexConfirmDialog.tsxindex 1d13f279,962fa9b0..4b9a6af8--- a/src/components/chat/CodexConfirmDialog.tsx+++ b/src/components/chat/CodexConfirmDialog.tsx@@@ -21,18 -15,7 +21,19 @@@ import { useEffect, useRef } from 'reacimport { Terminal } from 'lucide-react'import { useCodexConfirmStore } from '../../stores/codexConfirmStore'import { useSettingsStore } from '../../stores/settingsStore'+ import { toolRegistry } from '../../api/mcp/tool-registry'+import { useCommandRulesStore } from '../../stores/commandRulesStore'+import { suggestRuleFor } from '../../lib/agent-core/command-rules'++/** Fields that only tune how a command runs, not what it does. */+const QUIET_FIELDS = new Set(['timeout', 'shell', 'background'])++/** The command alone when that is all that shapes the process. */+export function plainCommandOf(args: Record<string, unknown> | undefined): string | null {+ if (!args || typeof args.command !== 'string' || !args.command.trim()) return null+ const loud = Object.keys(args).filter((k) => k !== 'command' && k !== 'cwd' && !QUIET_FIELDS.has(k) && args[k] !== undefined && args[k] !== null && args[k] !== '')+ return loud.length === 0 ? args.command.trim() : null+}export function CodexConfirmDialog() {const pending = useCodexConfirmStore((s) => s.pending)@@@ -65,37 -42,20 +66,37 @@@answer(true)}+ const alwaysHere = () => {+ if (rule && pending.ruleScope) allowRule(pending.ruleScope, rule)+ answer(true)+ }+return (<div ref={card} className="px-1 py-0.5" data-codex-confirm>- <div className="rounded-lg border border-purple-500/20 bg-purple-500/[0.04] px-2 py-1.5">- <div className="flex items-center gap-1.5 t-micro text-gray-700 dark:text-gray-300">- <Terminal size={10} className="text-purple-400 shrink-0" />- <span className="font-mono">{toolRegistry.displayName(pending.toolName)}</span>- <span className="text-gray-500">needs your ok</span>+ <div className="rounded-lg border border-gray-200 dark:border-white/[0.1] bg-white dark:bg-white/[0.03] shadow-sm overflow-hidden">+ <div className="flex items-center gap-2 px-3 pt-2.5 pb-1.5">+ <Terminal size={14} className="text-gray-500 dark:text-gray-400 shrink-0" />+ <span className="t-body font-medium text-gray-800 dark:text-gray-100">- {isCommand ? 'Run this command?' : 'Allow this step?'}++ {isCommand ? 'Run this command?' : <>Allow <span className="font-mono">{toolRegistry.displayName(pending.toolName)}</span>?</>}+ </span>+ {pending.cloudReason && (+ <span className="ml-auto t-micro text-gray-500 dark:text-gray-400">asked because a cloud model is driving</span>+ )}</div>- <pre className="mt-1 max-h-20 overflow-auto rounded bg-black/5 dark:bg-black/30 px-1.5 py-1 t-micro font-mono text-gray-800 dark:text-gray-200 whitespace-pre-wrap break-all">- {pending.command || '(no command preview)'}- </pre>+ <div className="px-3">+ <pre+ data-testid="confirm-command"+ className="max-h-48 overflow-auto rounded-md bg-gray-950 dark:bg-black/50 px-3 py-2 t-mono leading-relaxed text-gray-100 whitespace-pre-wrap break-all"+ >+ {pending.command && !plain ? pending.command : plain ? <><span className="select-none text-gray-500">$ </span>{plain}</> : '(no command preview)'}+ </pre>+ {plain && cwd && (+ <div className="mt-1 t-micro text-gray-500 dark:text-gray-400 truncate" title={cwd}>in {cwd}</div>+ )}+ </div>- <div className="mt-1.5 flex items-center gap-1.5">+ <div className="flex flex-wrap items-center gap-1.5 px-3 pt-2 pb-2.5"><buttononClick={() => answer(true)}autoFocus