Skip to content

v0.3.0

Latest

Choose a tag to compare

@raphvallee raphvallee released this 07 Nov 17:38

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 overwrote details_json and
    blacklist_reasons_json with 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 (COALESCE in 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 no sort: "price" is injected, and the request goes out completely
    unmodified. The ranking is still recorded (mode bypassed) so the pass-through
    behaves the same after a restart, and debug prints one line saying so. A provider
    named in extraIgnore is never bypassed: that option keeps its existing meaning and
    the usual routing rules apply.
  • debugBlacklistReasons output 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 the keepAtLeastN floor 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; the probe-reasons probe prints the same format.
  • Routing-failure toasts are no longer TUI-only: a new ./gui-experimental part
    (src/gui.tsx, built as dist/gui-experimental.cjs with the
    @opencode/plugin/gui vite 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.ts so the two parts cannot drift.
  • A noGUI option (default false) turns the GUI part off, the way noTUI
    turns the TUI part off; an invalid value is rejected at startup by the server
    part, which also validates unknown option keys.