diff --git a/src/tmux-manager.ts b/src/tmux-manager.ts index acfecb3a..b4744866 100644 --- a/src/tmux-manager.ts +++ b/src/tmux-manager.ts @@ -643,6 +643,10 @@ export function buildCodexCommand(config?: CodexConfig): string { parts.push('--dangerously-bypass-approvals-and-sandbox'); } + if (config?.animations !== undefined) { + parts.push('--config', `tui.animations=${config.animations ? 'true' : 'false'}`); + } + if (config?.model) { const safeModel = /^[a-zA-Z0-9._\-/]+$/.test(config.model) ? config.model : undefined; if (safeModel) parts.push('--model', safeModel); diff --git a/src/types/session.ts b/src/types/session.ts index 5f5d6752..b9ff857d 100644 --- a/src/types/session.ts +++ b/src/types/session.ts @@ -305,6 +305,8 @@ export interface CodexConfig { resumeSessionId?: string; /** Bypass approval prompts (passes --dangerously-bypass-approvals-and-sandbox) */ dangerouslyBypassApprovals?: boolean; + /** Enable Codex's decorative TUI animations. Disable to reduce remote terminal redraws. */ + animations?: boolean; /** Browser rendering strategy for Codex sessions. Hybrid TUI is the only supported mode. */ renderMode?: CodexRenderMode; } diff --git a/src/web/public/index.html b/src/web/public/index.html index adb3d8f4..608d0c1c 100644 --- a/src/web/public/index.html +++ b/src/web/public/index.html @@ -1688,6 +1688,14 @@ Start new Codex sessions with --dangerously-bypass-approvals-and-sandbox +
+ + + Decorative Codex TUI motion for new local sessions. Leave off to reduce remote and mobile redraws. +