Skip to content

fix: raise default agentResponseTimeoutMs and add text/markdown to default MIME allowlist - #97

Closed
cragnet wants to merge 1 commit into
win4r:masterfrom
cragnet:fix/timeout-and-mime-defaults
Closed

cragnet wants to merge 1 commit into
win4r:masterfrom
cragnet:fix/timeout-and-mime-defaults

Conversation

@cragnet

@cragnet cragnet commented Aug 30, 2026

Copy link
Copy Markdown

What

Two small default-value fixes, hit running a multi-host A2A fleet (3 peers) in production.

1. timeouts.agentResponseTimeoutMs defaulted to 300,000ms (5 min)

In our audit log (a2a-audit.jsonl), 7 of 13 recent failed inbound tasks died at ~300000–300200ms — the gateway killing tasks that were still legitimately in progress on the agent side (the underlying harness we're bridging to allows up to 7200s/turn). This is indistinguishable in the audit log from a genuine agent-side failure without cross-referencing the agent's own logs. Raised the default to 1,200,000ms (20 min).

2. Default allowedMimeTypes has no text/markdown (or a text/* wildcard)

Default list (from #16): image/*, application/pdf, text/plain, text/csv, application/json, audio/*, video/*. A peer sending a .md file attachment — a common thing to hand between agents (debug notes, docs) — gets rejected outright: File validation failed: MIME type rejected: "text/markdown", task fails in ~9ms. Added text/markdown to the default.

Testing

Full suite passes: 513/513, 0 failures. Neither change is covered by an existing test assertion on the exact default value (checked before changing), so nothing needed updating.

Note

Both remain fully overridable via timeouts.agentResponseTimeoutMs / security.allowedMimeTypes in openclaw.plugin.json as before — this only changes what happens when those aren't set.

Also — genuinely enjoying using this plugin across our fleet, it's been solid infrastructure for agent-to-agent coordination. Thanks for building and maintaining it.

…fault 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).
@cragnet

cragnet commented Aug 30, 2026

Copy link
Copy Markdown
Author

Separate from the PR itself — wanted to say this plugin has been genuinely great to work with. We're running it across a 3-host agent fleet for A2A coordination and it's held up well as real infrastructure, not just a demo. Appreciate the work that's gone into it. Starred the repo too.

@cragnet cragnet closed this Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant