Dashboard › opencode-lore › UpstreamSnapshot routing and protocol a…
01a0a4b2-8b23-71af-a024-ea0d37e91f36Use one immutable UpstreamSnapshot as the routing authority for URL, caller selection, protocol, provider, model, forwarded headers, and provider options. Separate mutable globals can describe different requests. At dispatch, check each supported protocol explicitly, including effectiveProtocol === "anthropic"; never use a catch-all Anthropic branch. Reject malformed or future unknown protocols before serialization or network activity, with regression coverage asserting zero upstream calls.