DashboardclirawApiRequest statusText preservation

rawApiRequest statusText preservation

Category: architecture
Confidence: 1.00
ID: 01a088cb-0281-77b7-bd84-5fa7f284cd2f
Project ID: c760f4f9-42b0-4ce0-b36d-6b8c38d770b2
Cross-project: No
Recalled in other projects: 1
Source session: 0wqisj4WhG2TyaOtb
Created: 2026-08-21 10:46:58
Updated: 2026-09-10 00:50:00

Cross-Project Recalls

ProjectHitsLast recalled
opencode-lore 3 14h ago

Content

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.

Move to: