From de7e0ef6cf4de757b7f2842051f94d33a6c824ba Mon Sep 17 00:00:00 2001 From: cragnet Date: Sun, 30 Aug 2026 17:55:04 +0100 Subject: [PATCH] fix: raise default agentResponseTimeoutMs and add text/markdown to default MIME allowlist The 300s default agentResponseTimeoutMs kills legitimate long-running agent turns before they finish -- observed 7 of 13 recent failed inbound tasks dying at exactly ~300000ms in production, well within what the underlying agent harness allows per turn. Raised to 1200000ms (20 min). The default MIME allowlist has no text/markdown (or a text/* wildcard like the existing image/*, audio/*, video/* entries), so any peer sending a .md attachment -- a common thing to hand between agents -- gets rejected outright in ~9ms. Added text/markdown to the default. Both are one-line default-value changes with no architecture impact. Full test suite passes (513/513). --- index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.ts b/index.ts index 73f5340..b8a8f57 100644 --- a/index.ts +++ b/index.ts @@ -186,7 +186,7 @@ export function parseConfig(raw: unknown, resolvePath?: (nextPath: string) => st const inboundAuth = asString(security.inboundAuth, "none") as InboundAuth; const defaultMimeTypes = [ - "image/*", "application/pdf", "text/plain", "text/csv", + "image/*", "application/pdf", "text/plain", "text/csv", "text/markdown", "application/json", "audio/*", "video/*", ]; const rawAllowedMime = Array.isArray(security.allowedMimeTypes) ? security.allowedMimeTypes : []; @@ -270,7 +270,7 @@ export function parseConfig(raw: unknown, resolvePath?: (nextPath: string) => st ), }, timeouts: { - agentResponseTimeoutMs: asNumber(timeouts.agentResponseTimeoutMs, 300_000), + agentResponseTimeoutMs: asNumber(timeouts.agentResponseTimeoutMs, 1_200_000), }, resilience: { healthCheck: {