mirror of
https://github.com/Heretek-AI/opencode.git
synced 2026-11-22 00:45:12 -10:00
OpenCode Web Search, the default search provider for Console-connected
users, made its own request with no size cap and discarded the body of
failed responses. It now uses the shared response handling, and OpenCode
API error bodies ({ _tag, message }) supply the failure explanation.
Reading a failed response for its explanation is bounded to one second
so a stalled error body still fails promptly.
Also formats the earlier changes with Prettier and tidies the tests.
@opencode/core
Core runtime services for OpenCode.