a925415ef7
Haiku synthesis had a hard cap of 2500 tokens which truncated the advocate JSON response (~4-6K tokens), causing decodeJsonObject() to fail and rendering the raw JSON string as the brief. Fix: remove the 2500-token Haiku override; introduce a per-mode limit (6000 for advocate, 4000 for deep-research) in $opts before the engine branch so all paths benefit. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>