Skip to content

Commit b53a389

Browse files
committed
perf(web-ui): cap health chat request timeout
1 parent 337f556 commit b53a389

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

tests/unit/agents-modal-guards.test.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,8 @@ test('sendHealthCheckDialogMessage appends transcript and clears prompt after su
388388
action: 'provider-chat-check',
389389
params: {
390390
name: 'alpha',
391-
prompt: 'say ok'
391+
prompt: 'say ok',
392+
timeoutMs: 10000
392393
}
393394
}]);
394395
assert.strictEqual(context.healthCheckDialogPrompt, '');

web-ui/modules/app.methods.codex-config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,8 @@ export function createCodexConfigMethods(options = {}) {
456456
try {
457457
const res = await api('provider-chat-check', {
458458
name: provider,
459-
prompt
459+
prompt,
460+
timeoutMs: 10000
460461
});
461462
this.healthCheckDialogLastResult = res;
462463

0 commit comments

Comments
 (0)