feat(codex): make terminal animations configurable

This commit is contained in:
lior committed 2026-07-29 03:39:07 +03:00
1 parent 77bcbc9b94
commit 94e3aae57d
8 files changed
+33 -1

No files matched your search

+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);