feat(codex): make terminal animations configurable

This commit is contained in:
lior
2026-07-29 03:39:07 +03:00
parent 77bcbc9b94
commit 94e3aae57d
8 changed files with 33 additions and 1 deletions
+4
View File
@@ -640,6 +640,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);