Repository navigation
Feature release. Models served by a single provider now skip routing, and
routing-failure toasts also reach OpenCode Desktop windows, not only the TUI.
No breaking changes; the one behavior change is that a single-provider model's
request goes out unmodified.
Fixed
- A zero-survivors refresh no longer wipes the stored blacklist reasons and
debug rankings: the fallback that keeps the previous ranking re-saved it
without a metadata payload, and the UPSERT overwrotedetails_jsonand
blacklist_reasons_jsonwith NULL, so debug logging showed "unknown" for
every blocked provider after a restart. The save now preserves the stored
payload when a refresh carries none (COALESCEin the UPSERT).
Added
- A model served by exactly one provider bypasses the routing pipeline completely:
when OpenRouter lists only one provider, no endpoint test runs (context, completion
cap, uptime, status, pricing, tool support or the Tool Call Error Rate probe), no
blacklist and nosort: "price"is injected, and the request goes out completely
unmodified. The ranking is still recorded (modebypassed) so the pass-through
behaves the same after a restart, anddebugprints one line saying so. A provider
named inextraIgnoreis never bypassed: that option keeps its existing meaning and
the usual routing rules apply. debugBlacklistReasonsoutput is now a debugging tool, not just a reason
list: each blocked provider's causes carry the threshold they enforce
(uptime (min 90%)), the provider's own value that missed it
(u-one (40%)), and providers sharing a cause group are ordered
from the closest miss to the hardest failure. When every provider is
blacklisted and only thekeepAtLeastNfloor keeps a route open, the log
shows which of your filters is the strictest and by how much. Reasons are
persisted with every ranking (threshold, value, miss magnitude), so
enabling the debug option works on stored rankings without waiting for a
re-rank; theprobe-reasonsprobe prints the same format.- Routing-failure toasts are no longer TUI-only: a new
./gui-experimentalpart
(src/gui.tsx, built asdist/gui-experimental.cjswith the
@opencode/plugin/guivite preset) runs in every OpenCode Desktop window,
desktop app and web tabs alike, and raises the same error toast the TUI part
raises. The shared detection, sanitization and dedupe logic moved to
src/failure.tsso the two parts cannot drift. - A
noGUIoption (defaultfalse) turns the GUI part off, the waynoTUI
turns the TUI part off; an invalid value is rejected at startup by the server
part, which also validates unknown option keys.