feat(backends): add configurable external CLI args and timeouts

This commit is contained in:
William Valentin
2026-02-17 09:31:23 -08:00
parent bf3dbbfe32
commit 1d84d69f4f
3 changed files with 22 additions and 10 deletions
+4 -4
View File
@@ -19,7 +19,7 @@ describe('createConfiguredExternalBackend', () => {
...base,
backends: {
...base.backends,
codex: { enabled: true, path: '/usr/bin/codex' },
codex: { enabled: true, path: '/usr/bin/codex', args: [], timeout_ms: 120000 },
},
};
const backend = createConfiguredExternalBackend(cfg);
@@ -31,7 +31,7 @@ describe('createConfiguredExternalBackend', () => {
...base,
backends: {
...base.backends,
gemini: { enabled: true, path: '/usr/bin/gemini' },
gemini: { enabled: true, path: '/usr/bin/gemini', args: [], timeout_ms: 120000 },
},
};
const backend = createConfiguredExternalBackend(cfg);
@@ -43,8 +43,8 @@ describe('createConfiguredExternalBackend', () => {
...base,
backends: {
...base.backends,
codex: { enabled: true, path: '/usr/bin/codex' },
gemini: { enabled: true, path: '/usr/bin/gemini' },
codex: { enabled: true, path: '/usr/bin/codex', args: [], timeout_ms: 120000 },
gemini: { enabled: true, path: '/usr/bin/gemini', args: [], timeout_ms: 120000 },
},
};
const configured = createConfiguredExternalBackends(cfg);