Dashboard › cli › rawApiRequest statusText preservation
01a088cb-0281-77b7-bd84-5fa7f284cd2f| Project | Hits | Last recalled |
|---|---|---|
| opencode-lore | 3 | 14h ago |
Chose strict output-mode and binary-safety handling over routing every response through generic formatters because coercion can leak binary payloads or corrupt scripted JSON. rawApiRequest() preserves statusText; empty textual non-2xx responses use an HTTP/request fallback; JSON exposes {status,statusText,body}. Binary successes remain raw Uint8Array; binary errors reveal only status, content type, and byte count. Prompts must never block scripted runs or interleave with JSON stdout.