mirror of
https://github.com/coder/coder.git
synced 2026-06-03 04:58:23 +00:00
87d580d3fe
Anthropic task name responses can include valid JSON followed by a closing fence or extra text, which made `json.Unmarshal` fail with trailing-character errors and forced fallback naming. This updates task name JSON extraction to accept the first JSON value after optional fences and adds regression coverage for fenced and bare JSON with trailing content.