Skip to content

Commit 42a8294

Browse files
committed
Fix workspace-filesystem cleanup timeout budget
Pass STEP_TIMEOUT_MS (1000ms) as per-session timeout to cleanupOwnedWorkspaceFilesystemArtifacts instead of the step wrapper timeout. The step wrapper timeout is bulkStepTimeoutMs(count) = count * 1000 + 100, which gives enough room for count sequential operations at 1000ms each. Passing the step wrapper timeout as the per-session timeout causes total time to be count * bulkStepTimeoutMs(count), exceeding the step budget.
1 parent 2ea5733 commit 42a8294

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/server/mcp-shutdown.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export async function runMcpShutdown(input: {
199199
timeoutMs: workspaceFilesystemCleanupTimeoutMs,
200200
operation: () =>
201201
cleanupOwnedWorkspaceFilesystemArtifacts({
202-
timeoutMs: workspaceFilesystemCleanupTimeoutMs,
202+
timeoutMs: STEP_TIMEOUT_MS,
203203
}),
204204
},
205205
{

0 commit comments

Comments
 (0)