Skip to content

Commit 8d37e10

Browse files
authored
fix(mcp): word the code-mode deadline timeout like any other timeout (#10227)
1 parent 645a8d2 commit 8d37e10

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/sim/lib/api/mcp/code-mode.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const MAX_CALLS_PER_RUN = 200
3232
/** Calls one program may have in flight at once, so a `Promise.all` cannot fan out a whole page of requests. */
3333
const MAX_CONCURRENT_CALLS = 8
3434
const MAX_CODE_CHARS = 100_000
35-
/** Slack past the isolate's own timeout, so a run that never queued still ends with the isolate's TimeoutError. */
35+
/** Slack past `timeoutMs` for the sandbox to start and hand back a run that ends on time. */
3636
const DEADLINE_GRACE_MS = 1000
3737
const NOT_SENT = 'The program ended before this call was sent.'
3838

@@ -299,7 +299,7 @@ export async function runCodeMode(
299299
return failure(
300300
{
301301
name: 'TimeoutError',
302-
message: `The program did not finish within ${timeoutMs}ms, including time spent waiting for a sandbox.`,
302+
message: `The program did not finish within ${timeoutMs}ms.`,
303303
},
304304
calls
305305
)

0 commit comments

Comments
 (0)