A field log showed one request stayed silent for 604s (the OpenAI SDK
default timeout), then the SDK retried on a fresh connection and got
200 OK in under a second. The abort signal did not cancel the in-flight
HTTP call, so the turn could look hung for ten minutes.
- set timeout (default 120s, request_timeout in the LLM config wins),
max_retries=1 and stream_usage=True for the providers that accept them
(openai, deepseek, anthropic, xai). ollama and google-genai reject
these kwargs, so they keep the old behavior.
- log the elapsed time of each LLM call. A slow first token or an SDK
retry now shows up in the log line.
- add request_timeout to the LLM config schemas and docs (JSON column,
no migration).
- tests: cover the defaults, the override, invalid values, provider
filtering and the title model.