CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 8m13s
On stage, a batch triage answer came back empty: the reasoning model (Qwen3.8-27B behind LiteLLM) spent chat()'s 4096 tokens thinking, so the content was empty or an unclosed <think> block, and the client returned "" without saying why. The client now reads finish_reason. An empty answer with finish_reason=length is sent once more with 16384 tokens; if that gives no answer either, the call fails with "the model used its whole token budget reasoning and gave no answer (finish_reason=length)" instead of an empty string. Covers every chat() and chat_with_messages() caller (triage, control judge, code review, help chat). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p