Dashboardopencode-loreOpenCode provider gateway routing and t…

OpenCode provider gateway routing and timeout invariants

Category: gotcha
Confidence: 1.00
ID: 01a0a519-f182-7478-96bb-ffac25779e1d
Project ID: 6f4be9ff-ed84-4cca-a9e7-732a0b0b8677
Cross-project: No
Recalled in other projects: 1
Source session: 0L5qwyPKP9qTDFf4t
Created: 2026-08-21 13:27:00
Updated: 2026-09-15 12:45:36

Cross-Project Recalls

ProjectHitsLast recalled
opencode 1 8d ago

Content

Route OpenCode providers explicitly through ${gatewayBase}/v1 using each provider's options.baseURL; do not rely on provider base-URL environment variables because resolveSDK() supplies a defined URL. Deep-merge options, avoid /v1/v1, and create an OpenAI entry when absent so routing still applies. For Lore-routed OpenAI and OpenAI Codex providers, set options.headerTimeout=false authoritatively: OpenCode has already merged its inherited 60-second timeout, while Lore owns the foreground deadline.

Move to: