#agents.defaults.timeoutSeconds
1 messages · Page 1 of 1 (latest)
Short answer: generally no, I would not increase agents.defaults.timeoutSeconds beyond the default.
A couple important bits from the docs/source:
agents.defaults.timeoutSecondsis the overall agent run timeout, and the default is already 172800s (48 hours), which is huge.- The thing that usually matters more for “slow provider” behavior is
agents.defaults.llm.idleTimeoutSeconds, which aborts when the model stops sending chunks for too long. - If
llm.idleTimeoutSecondsis unset, OpenClaw will fall back toagents.defaults.timeoutSecondswhen you configured it, otherwise120s.
So the practical best practice is:
- Leave
agents.defaults.timeoutSecondsalone unless you truly want very long autonomous runs. - If a provider/model is just slow or pauses a lot, tune
agents.defaults.llm.idleTimeoutSecondsinstead. - Prefer per-use overrides for special cases, like heartbeat/cron/session-specific timeouts, instead of making the global default enormous.
That fallback behavior is the main gotcha: bumping agents.defaults.timeoutSeconds can also make stuck LLM calls hang much longer unless you set agents.defaults.llm.idleTimeoutSeconds explicitly.
Docs: