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): make auto approve actually work on cloud models

purple33e1688cde0c
diff --git a/src/components/settings/SettingsPage.tsx b/src/components/settings/SettingsPage.tsx
index 76058b8f..13893db5 100644
--- a/src/components/settings/SettingsPage.tsx
+++ b/src/components/settings/SettingsPage.tsx
@@ -14,19 +14,19 @@ import { checkWhisperAvailable, checkTtsAvailable, downloadPiperVoice, listInsta
// Curated local neural (Piper) voices the user can pick. Selecting one not yet
// on disk downloads it (~63 MB). Ids match rhasspy/piper-voices.
const PIPER_VOICES: { id: string; label: string }[] = [
- { id: 'en_US-lessac-medium', label: 'Lessac — US, neutral' },
- { id: 'en_US-amy-medium', label: 'Amy — US, female' },
- { id: 'en_US-ryan-high', label: 'Ryan — US, male (high)' },
- { id: 'en_US-hfc_female-medium', label: 'HFC — US, female' },
- { id: 'en_GB-alba-medium', label: 'Alba — UK, female' },
- { id: 'en_GB-northern_english_male-medium', label: 'Northern — UK, male' },
+ { id: 'en_US-lessac-medium', label: 'Lessac, US, neutral' },
+ { id: 'en_US-amy-medium', label: 'Amy, US, female' },
+ { id: 'en_US-ryan-high', label: 'Ryan, US, male (high)' },
+ { id: 'en_US-hfc_female-medium', label: 'HFC, US, female' },
+ { id: 'en_GB-alba-medium', label: 'Alba, UK, female' },
+ { id: 'en_GB-northern_english_male-medium', label: 'Northern, UK, male' },
]
// MiniMax Speech-02 system voices for the hosted cloud TTS. The server route
// (/api/voice/tts) forwards the id verbatim as voice_id and only validates the
// character set; default is Wise_Woman.
const CLOUD_TTS_VOICES: { id: string; label: string }[] = [
- { id: 'Wise_Woman', label: 'Wise Woman — default' },
+ { id: 'Wise_Woman', label: 'Wise Woman, default' },
{ id: 'Calm_Woman', label: 'Calm Woman' },
{ id: 'Lively_Girl', label: 'Lively Girl' },
{ id: 'Lovely_Girl', label: 'Lovely Girl' },
@@ -262,7 +262,7 @@ function HfDownloadPathSetting() {
return (
<div className="space-y-2 py-1">
<div className="text-[0.6rem] text-gray-500 leading-relaxed">
- Custom location for downloaded GGUFs. Leave empty to auto-detect from your active provider's models folder (e.g. <code className="font-mono">~/.lmstudio/models</code> for LM Studio). Ollama is unaffected — it manages its own blob store; LU pulls Ollama models via <code className="font-mono">ollama pull</code> regardless of this setting.
+ Custom location for downloaded GGUFs. Leave empty to auto-detect from your active provider's models folder (e.g. <code className="font-mono">~/.lmstudio/models</code> for LM Studio). Ollama is unaffected, it manages its own blob store; LU pulls Ollama models via <code className="font-mono">ollama pull</code> regardless of this setting.
</div>
<div className="flex items-center gap-2">
<input
@@ -319,7 +319,7 @@ function ComfyUISettings() {
if (!cancelled) {
setStatus(s)
// Mirror backend truth into the frontend URL builder so subsequent
- // fetch() calls hit the right machine immediately — no restart needed.
+ // fetch() calls hit the right machine immediately, no restart needed.
if (typeof s?.port === 'number' && s.port > 0) setComfyPort(s.port)
if (typeof s?.host === 'string' && s.host.trim()) setComfyHost(s.host)
}
@@ -358,7 +358,7 @@ function ComfyUISettings() {
setStatus(prev => prev ? { ...prev, found: true, path: customPath.trim() } : { running: false, found: true, path: customPath.trim() })
setTimeout(() => setPathSuccess(false), 3000)
} catch (err) {
- setPathError(err instanceof Error ? err.message : 'Invalid path — main.py not found')
+ setPathError(err instanceof Error ? err.message : 'Invalid path, main.py not found')
}
}
@@ -416,7 +416,7 @@ function ComfyUISettings() {
{hostError && <p className="text-[0.55rem] text-red-400">{hostError}</p>}
{hostSuccess && <p className="text-[0.55rem] text-green-400">Host saved. Restart ComfyUI to apply.</p>}
{status?.host && !status?.isLocal && (
- <p className="text-[0.55rem] text-amber-400">Remote ComfyUI — start/stop/install not available from LU. Manage the process on the server.</p>
+ <p className="text-[0.55rem] text-amber-400">Remote ComfyUI, start/stop/install not available from LU. Manage the process on the server.</p>
)}
</div>
@@ -477,7 +477,7 @@ function ComfyUISettings() {
{portSuccess && <p className="text-[0.55rem] text-green-400">Port saved. Restart ComfyUI to apply.</p>}
</div>
- {/* Controls — local host only (can't manage a remote process) */}
+ {/* Controls, local host only (can't manage a remote process) */}
{status?.isLocal !== false && (
<div className="flex items-center gap-1.5">
{status?.found && !status.running && (
@@ -653,7 +653,7 @@ function CodexAgentSettings() {
<div className="space-y-3">
<div className="text-[0.6rem] text-gray-500 leading-relaxed pb-1">
v2.5.0 coding-agent capabilities ported from the companion repo. All
- local-first by default — cloud usage requires the explicit toggle below.
+ local-first by default. Cloud usage requires the explicit toggle below.
</div>
{/* Architect / Editor split */}
@@ -720,6 +720,17 @@ function CodexAgentSettings() {
enabled={settings.codexConfirmShell}
onChange={() => updateSettings({ codexConfirmShell: !settings.codexConfirmShell })}
/>
+ {/* Cloud arm of the same gate. Until 2.5.9 this was hard-wired on and
+ invisible, so the toggle above appeared to do nothing whenever the
+ coding agent ran on a cloud model. Shown only while the toggle above is
+ off, because that is the only case where it changes anything. */}
+ {!settings.codexConfirmShell && (
+ <InlineToggle
+ label="Also confirm when the coding agent runs on an LU Cloud model (recommended)"
+ enabled={settings.codexCloudConfirmShell}
+ onChange={() => updateSettings({ codexCloudConfirmShell: !settings.codexCloudConfirmShell })}
+ />
+ )}
</div>
)
}
@@ -917,7 +928,7 @@ export function SettingsPage() {
break
}
if (Date.now() - start > 600_000) {
- setWhisperInstallError('Install is taking unusually long — check the logs / try again.')
+ setWhisperInstallError('Install is taking unusually long, check the logs / try again.')
break
}
}
@@ -951,7 +962,7 @@ export function SettingsPage() {
break
}
if (Date.now() - start > 600_000) {
- setTtsInstallError('Install is taking unusually long — check the logs / try again.')
+ setTtsInstallError('Install is taking unusually long, check the logs / try again.')
break
}
}
@@ -1132,7 +1143,7 @@ export function SettingsPage() {
{settings.appMode !== 'cloud' && (
<Section title="Image / Video Generation Timeouts">
<div className="text-[0.6rem] text-gray-500 dark:text-gray-500 leading-relaxed pb-1.5">
- Maximum minutes a ComfyUI generation can run before LU aborts it. Bump these up if you run on iGPU or CPU only — a 1024px image on integrated graphics can take 30+ min.
+ Maximum minutes a ComfyUI generation can run before LU aborts it. Bump these up if you run on iGPU or CPU only, because a 1024px image on integrated graphics can take 30+ min.
</div>
<div className="flex items-center justify-between">
<span className="text-[0.7rem] text-gray-700 dark:text-gray-400">Image timeout (min)</span>
@@ -1170,14 +1181,14 @@ export function SettingsPage() {
<Lock size={12} className="mt-0.5 shrink-0 text-sky-500" />
<div>
<p className="text-gray-700 dark:text-gray-300 font-medium mb-0.5">Cloud mode is active.</p>
- <p>Chat, Create renders and voice run on lu-labs.ai against your LU account and are metered against your credits; generated media and job records are stored with your account. Switch to Local in the header to run everything on your machine — the 100%-local pledge below then applies.</p>
+ <p>Chat, Create renders and voice run on lu-labs.ai against your LU account and are metered against your credits; generated media and job records are stored with your account. Switch to Local in the header to run everything on your machine, and the 100% local pledge below then applies.</p>
</div>
</div>
<div className="flex items-start gap-2 pt-1.5">
<Shield size={12} className="mt-0.5 shrink-0 text-emerald-500" />
<div>
<p className="text-gray-700 dark:text-gray-300 font-medium mb-0.5">Local mode: 100% local.</p>
- <p>In local mode chat, agent runs, and image &amp; video generation all execute on your machine — no telemetry, no analytics, no model pings home. Your local data lives in <code className="px-1 py-0.5 rounded bg-black/5 dark:bg-white/5 font-mono text-[0.6rem]">%APPDATA%/Locally Uncensored</code> on Windows (or the equivalent on Linux/macOS).</p>
+ <p>In local mode chat, agent runs, and image &amp; video generation all execute on your machine. No telemetry, no analytics, no model pings home. Your local data lives in <code className="px-1 py-0.5 rounded bg-black/5 dark:bg-white/5 font-mono text-[0.6rem]">%APPDATA%/Locally Uncensored</code> on Windows (or the equivalent on Linux/macOS).</p>
</div>
</div>
</div>
@@ -1194,7 +1205,7 @@ export function SettingsPage() {
<Shield size={12} className="mt-0.5 shrink-0 text-emerald-500" />
<div>
<p className="text-gray-700 dark:text-gray-300 font-medium mb-0.5">You own your data.</p>
- <p>Conversations, memories, and generated media live in <code className="px-1 py-0.5 rounded bg-black/5 dark:bg-white/5 font-mono text-[0.6rem]">%APPDATA%/Locally Uncensored</code> on Windows (or the equivalent on Linux/macOS). Back up the folder, move it between machines, or delete it — LU writes nothing else.</p>
+ <p>Conversations, memories, and generated media live in <code className="px-1 py-0.5 rounded bg-black/5 dark:bg-white/5 font-mono text-[0.6rem]">%APPDATA%/Locally Uncensored</code> on Windows (or the equivalent on Linux/macOS). Back up the folder, move it between machines, or delete it. LU writes nothing else.</p>
</div>
</div>
</div>
@@ -1242,7 +1253,7 @@ export function SettingsPage() {
<Section title="ComfyUI (Image & Video)">
{settings.appMode === 'cloud' && (
<p className="text-[0.55rem] text-gray-500 leading-snug pb-1">
- Local mode only — cloud renders run on lu-labs.ai and never use ComfyUI.
+ Local mode only. Cloud renders run on lu-labs.ai and never use ComfyUI.
</p>
)}
<ComfyUISettings />
@@ -1365,7 +1376,7 @@ export function SettingsPage() {
</div>
</>) : (<>
<p className="text-[0.55rem] text-gray-500 leading-snug">
- Voice runs 100% locally — no cloud. Each engine is a one-time local install.
+ Voice runs 100% locally, no cloud. Each engine is a one-time local install.
</p>
{/* Speech-to-Text — faster-whisper (powers the microphone / dictation) */}
@@ -1399,7 +1410,7 @@ export function SettingsPage() {
</p>
)}
- {/* Text-to-Speech — Piper neural (read responses aloud) */}
+ {/* Text-to-Speech, Piper neural (read responses aloud) */}
<div className="flex items-center gap-2 text-[0.65rem] pt-1">
<span className="flex items-center gap-1.5">
{ttsLoading
@@ -1433,14 +1444,14 @@ export function SettingsPage() {
<InlineToggle label="Enable read-aloud" enabled={voiceSettings.ttsEnabled} onChange={() => voiceSettings.updateVoiceSettings({ ttsEnabled: !voiceSettings.ttsEnabled })} icon={<Volume2 size={11} className="text-gray-500" />} />
{/* Auto-read is a SEPARATE opt-in (default OFF). The toggle above only
surfaces the per-message Speaker button; this one also reads each
- finished response aloud (#77, ElBiggus — the old single toggle was
+ finished response aloud (#77, ElBiggus, the old single toggle was
labelled "Read responses aloud" but never auto-read). */}
{voiceSettings.ttsEnabled && (
<InlineToggle label="Auto-read new responses" enabled={voiceSettings.autoReadAloud} onChange={() => voiceSettings.updateVoiceSettings({ autoReadAloud: !voiceSettings.autoReadAloud })} icon={<Volume2 size={11} className="text-gray-500" />} />
)}
- {/* Neural voice picker (Piper) — replaces the old Microsoft/browser
+ {/* Neural voice picker (Piper), replaces the old Microsoft/browser
voices (David 2026-06-06). Picking one not yet on disk downloads
- it (~63 MB). Browser-only rate/pitch knobs dropped — they didn't
+ it (~63 MB). Browser-only rate/pitch knobs dropped, they didn't
apply to Piper. */}
<div className="flex items-center justify-between gap-2">
<span className="text-[0.7rem] text-gray-500 flex items-center gap-1">
@@ -1454,7 +1465,7 @@ export function SettingsPage() {
>
{PIPER_VOICES.map((v) => (
<option key={v.id} value={v.id}>
- {v.label}{installedVoices.includes(v.id) ? '' : ' — download'}
+ {v.label}{installedVoices.includes(v.id) ? '' : ', download'}
</option>
))}
</select>
@@ -1680,7 +1691,7 @@ function TroubleshootSection() {
<div className="space-y-3 py-2">
<p className="text-[0.6rem] text-gray-500 leading-relaxed">
One-shot probe of the local backends and host facts. Use this when
- the app behaves oddly — most "model not found" / "ComfyUI doesn't
+ the app behaves oddly. Most "model not found" / "ComfyUI doesn't
respond" issues become obvious here.
</p>
@@ -1741,7 +1752,7 @@ function TroubleshootSection() {
? (report.host.vram_free_gb != null
? `${report.host.vram_free_gb} / ${report.host.vram_total_gb} GB free`
: `${report.host.vram_total_gb} GB`)
- : '—'}
+ : ','}
</span>
</div>
</div>
diff --git a/src/hooks/__tests__/codexShellGate.test.ts b/src/hooks/__tests__/codexShellGate.test.ts
index b7f0da72..de05ba29 100644
--- a/src/hooks/__tests__/codexShellGate.test.ts
+++ b/src/hooks/__tests__/codexShellGate.test.ts
@@ -1,5 +1,5 @@
import { describe, it, expect } from 'vitest'
-import { CODEX_CONFIRM_TOOLS, codexNeedsConfirm } from '../codexShellGate'
+import { CODEX_CONFIRM_TOOLS, codexNeedsConfirm, codexConfirmEnabled } from '../codexShellGate'
// H2: the coding-agent shell/code confirm gate. These tests lock the contract
// that (a) the autonomous workflow is unchanged when the gate is off, (b) the
@@ -43,4 +43,41 @@ describe('codexShellGate (H2)', () => {
expect(codexNeedsConfirm('web_search', true)).toBe(false)
})
})
+
+ // 2.5.9 — David 2026-07-24: "auto approve bei cloud modellen setting nicht
+ // funktional". The 2.5.7 review hard-wired providerId === 'lu-cloud' into the
+ // gate, so the confirm toggle silently did nothing on a cloud model. These
+ // lock the new contract: same safe default, but the user can now actually
+ // turn the cloud arm off.
+ describe('codexConfirmEnabled (cloud arm)', () => {
+ const LOCALS = ['ollama', 'openai', 'anthropic']
+
+ it('both off on a local model: unattended, the autonomous default', () => {
+ for (const providerId of LOCALS) {
+ expect(codexConfirmEnabled({ confirmShell: false, cloudConfirmShell: true, providerId })).toBe(false)
+ }
+ })
+
+ it('global toggle on: confirms on every provider, cloud arm irrelevant', () => {
+ for (const providerId of [...LOCALS, 'lu-cloud']) {
+ expect(codexConfirmEnabled({ confirmShell: true, cloudConfirmShell: false, providerId })).toBe(true)
+ expect(codexConfirmEnabled({ confirmShell: true, cloudConfirmShell: true, providerId })).toBe(true)
+ }
+ })
+
+ it('default (cloud arm on): a cloud model still confirms — 2.5.8 behaviour preserved', () => {
+ expect(codexConfirmEnabled({ confirmShell: false, cloudConfirmShell: true, providerId: 'lu-cloud' })).toBe(true)
+ })
+
+ it('THE FIX: cloud arm off means auto-approve finally works on cloud models', () => {
+ expect(codexConfirmEnabled({ confirmShell: false, cloudConfirmShell: false, providerId: 'lu-cloud' })).toBe(false)
+ })
+
+ it('the cloud arm never gates a local provider', () => {
+ for (const providerId of LOCALS) {
+ expect(codexConfirmEnabled({ confirmShell: false, cloudConfirmShell: true, providerId })).toBe(false)
+ expect(codexConfirmEnabled({ confirmShell: false, cloudConfirmShell: false, providerId })).toBe(false)
+ }
+ })
+ })
})
diff --git a/src/hooks/codexShellGate.ts b/src/hooks/codexShellGate.ts
index 2f93ee15..7aa93925 100644
--- a/src/hooks/codexShellGate.ts
+++ b/src/hooks/codexShellGate.ts
@@ -19,3 +19,30 @@ export const CODEX_CONFIRM_TOOLS: ReadonlySet<string> = new Set([
export function codexNeedsConfirm(toolName: string, confirmEnabled: boolean): boolean {
return confirmEnabled && CODEX_CONFIRM_TOOLS.has(toolName)
}
+
+/**
+ * Is the confirm gate active for THIS run? (David 2026-07-24: "auto approve bei
+ * cloud modellen setting nicht funktional".)
+ *
+ * The 2.5.7 security review hard-wired `providerId === 'lu-cloud'` into the gate,
+ * so on a cloud model every shell/code call confirmed even with the setting off.
+ * The setting was silently overridden with nothing in the UI saying so, which
+ * reads as a broken toggle rather than a policy.
+ *
+ * The policy is still the right default — a remote model reaching unattended
+ * local shell is a bigger blast radius than a local model the user deliberately
+ * trusts — so it stays ON by default. It is now a real, visible, user-owned
+ * switch instead of a hidden override: turn `cloudConfirmShell` off and cloud
+ * models follow the same rule as local ones.
+ */
+export function codexConfirmEnabled(opts: {
+ /** settings.codexConfirmShell — confirm for EVERY provider. */
+ confirmShell: boolean
+ /** settings.codexCloudConfirmShell — also confirm on LU Cloud. Default true. */
+ cloudConfirmShell: boolean
+ /** Provider driving this run ('lu-cloud' | 'ollama' | 'openai' | ...). */
+ providerId: string
+}): boolean {
+ if (opts.confirmShell) return true
+ return opts.providerId === 'lu-cloud' && opts.cloudConfirmShell
+}
diff --git a/src/hooks/useCodex.ts b/src/hooks/useCodex.ts
index 051a409a..9dd8a0c7 100644
--- a/src/hooks/useCodex.ts
+++ b/src/hooks/useCodex.ts
@@ -9,7 +9,7 @@ import { markToolsUnsupported } from '../api/tool-capability'
import { toolRegistry } from '../api/mcp'
import { usePermissionStore } from '../stores/permissionStore'
import { getToolCallingStrategy } from '../lib/model-compatibility'
-import { CODEX_CONFIRM_TOOLS } from './codexShellGate'
+import { CODEX_CONFIRM_TOOLS, codexConfirmEnabled } from './codexShellGate'
import { buildHermesToolPrompt, buildHermesToolResult, parseHermesToolCalls, stripToolCallTags, hasToolCallTags } from '../api/hermes-tool-calling'
import { chatNonStreaming } from '../api/agents'
import { setActiveChatId, clearActiveChatId, chatWorkspaceSlug, setActiveWorkspace, setActiveAgentModel } from '../api/agent-context'
@@ -1324,22 +1324,36 @@ export function useCodex() {
// prompt-injected model auto-running shell/code. window.confirm works
// in this Tauri webview (the app uses it elsewhere, e.g. Gallery).
//
- // Security review 2.5.7: ALWAYS confirm when the driving model is the
- // CLOUD provider, regardless of the setting. A remote/semi-trusted model
- // (or a compromised/MITM'd cloud endpoint) reaching unattended local
- // shell is a materially bigger blast radius than a local model the user
- // deliberately trusts — and a "Cloud"-mode user rarely expects the
- // remote model to run commands on their box. Local models keep the
- // unattended default; only the cloud path is force-gated.
- awaitApproval: (settings.codexConfirmShell || providerId === 'lu-cloud')
+ // Security review 2.5.7 force-gated the CLOUD provider here regardless
+ // of the setting: a remote/semi-trusted model (or a compromised cloud
+ // endpoint) reaching unattended local shell is a materially bigger
+ // blast radius than a local model the user deliberately trusts.
+ //
+ // 2.5.9 (David 2026-07-24 "auto approve bei cloud modellen setting
+ // nicht funktional"): that override was invisible, so the confirm
+ // toggle looked broken on cloud models. Same default, but the cloud arm
+ // is now settings.codexCloudConfirmShell — a real switch the user owns.
+ // See codexConfirmEnabled for the whole rule.
+ awaitApproval: codexConfirmEnabled({
+ confirmShell: settings.codexConfirmShell,
+ cloudConfirmShell: settings.codexCloudConfirmShell,
+ providerId,
+ })
? async (req) => {
if (!CODEX_CONFIRM_TOOLS.has(req.toolName)) return true
const a = req.args || {}
const preview = String(a.command ?? a.code ?? a.script ?? '').slice(0, 800)
+ // Name the reason when the CLOUD arm is what is asking. Without
+ // it the user has the confirm setting off and still gets a
+ // prompt, which is exactly what read as broken before 2.5.9.
+ const cloudReason =
+ !settings.codexConfirmShell && providerId === 'lu-cloud'
+ ? `\n\nCloud models confirm commands by default. Turn that off in Settings under Coding.`
+ : ''
const msg =
`Coding agent wants to run "${req.toolName}":\n\n` +
`${preview || '(no command preview)'}\n\n` +
- `Allow it to run?`
+ `Allow it to run?${cloudReason}`
if (typeof window !== 'undefined' && typeof window.confirm === 'function') {
return window.confirm(msg)
}
diff --git a/src/lib/constants.ts b/src/lib/constants.ts
index 067f040b..e04886df 100644
--- a/src/lib/constants.ts
+++ b/src/lib/constants.ts
@@ -71,6 +71,10 @@ export const DEFAULT_SETTINGS: Settings = {
// H2 security gate. OFF by default = the autonomous coding agent keeps
// running shell/code unattended; ON pauses each exec for a confirm.
codexConfirmShell: false,
+ // Cloud arm of the same gate. ON = a cloud model always confirms shell/code
+ // even with the toggle above off. Keeps the 2.5.7 security-review default,
+ // but as a switch the user owns instead of a hidden override.
+ codexCloudConfirmShell: true,
defaultWorkspace: null,
// v8: user-uploaded profile picture (base64 data URL, ≤256px). '' = default icon.
userAvatarDataUrl: '',
diff --git a/src/stores/settingsStore.ts b/src/stores/settingsStore.ts
index dc268d6b..f30cbdbc 100644
--- a/src/stores/settingsStore.ts
+++ b/src/stores/settingsStore.ts
@@ -37,7 +37,11 @@ import { DEFAULT_SETTINGS, BUILT_IN_PERSONAS } from '../lib/constants'
// on the first successful switch flip, default false). Additive merge.
// v14 (2.5.8): added settings.cloudTeasersEnabled (Cloud discovery in Local
// mode: locked Create tabs + hosted-model picker rows, default true). Additive.
-const STORE_VERSION = 14
+// v15 (2.5.9): added settings.codexCloudConfirmShell (default true). The cloud
+// shell-confirm was hard-wired in useCodex, so the existing confirm toggle did
+// nothing on a cloud model. Additive merge backfills the default — behaviour is
+// byte-for-byte what 2.5.8 did until the user turns the new switch off.
+const STORE_VERSION = 15
interface SettingsState {
settings: Settings
diff --git a/src/types/settings.ts b/src/types/settings.ts
index 13a3a5c9..f5bbca46 100644
--- a/src/types/settings.ts
+++ b/src/types/settings.ts
@@ -173,6 +173,16 @@ export interface Settings {
* (it is path-jailed and has its own Stage mode).
*/
codexConfirmShell: boolean
+ /**
+ * Also confirm shell/code on LU Cloud models even when `codexConfirmShell`
+ * is off. Default ON — a remote model reaching unattended local shell is a
+ * bigger blast radius than a local model the user deliberately trusts.
+ *
+ * Until 2.5.9 this was hard-wired into useCodex, so the confirm toggle above
+ * silently did nothing on a cloud model (David 2026-07-24). Same safe default,
+ * but now it is a real switch the user can see and turn off.
+ */
+ codexCloudConfirmShell: boolean
/**
* Shared default workspace for Codex AND Agent (Underlying refactor —
* workspace unification). When set, both surfaces resolve relative paths