Skip to content

Commit 23c1723

Browse files
cameroncookecodex
andcommitted
fix(server): Bound workspace cleanup per-session timeout
Keep the workspace filesystem cleanup shutdown step on a count-scaled outer timeout while using the normal per-session timeout for the inner owned OSLog cleanup work. Co-Authored-By: OpenAI Codex <noreply@openai.com>
1 parent 6af258e commit 23c1723

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/server/__tests__/mcp-shutdown.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ describe('runMcpShutdown', () => {
204204
);
205205
expect(filesystemStep?.status).toBe('completed');
206206
expect(mocks.cleanupOwnedWorkspaceFilesystemArtifacts).toHaveBeenCalledWith({
207-
timeoutMs: 2100,
207+
timeoutMs: 1000,
208208
});
209209
});
210210

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)