fd203138bf22924258f0161f76302d4ee968bd24
Every verb ended in an unconditional res.json(), which throws "Unexpected end of JSON input" on 201/204 responses that carry no body — so a request that actually succeeded still surfaced as an error (e.g. a sent chat message toasting a failure). Read text first and only parse when non-empty, otherwise resolve undefined. Non-empty JSON is unchanged. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Description
No description provided
51 MiB
Languages
TypeScript
84.6%
CSS
6.7%
Shell
5%
JavaScript
3.7%