dc6dd946a2
Model sometimes returns pretty-printed JSON with newlines/indentation, wasting tokens and causing truncation. Now requests compact single-line JSON. When JSON is truncated, regex-extracts the backstory field rather than setting raw JSON as the backstory text. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>