Expand description
Active-vendor state file. Set by --cycle-next / --cycle-prev (which
Waybar’s on-scroll-up/on-scroll-down invoke), read by the widget on
every tick. The TUI does NOT consult this — it has its own tab state.
On-disk shape: a single line with the vendor slug (e.g. openai). Located
at <cache-dir>/active_vendor.
Functions§
- cycle
- Cycle the active vendor by
deltapositions throughenabled(which preserves canonical order). Wraps. If no state exists, starts atstart(usually[ui] primaryor anthropic). - read
- Read the persisted active vendor, if any.
Nonemeans “no override — callers fall back to [ui] primary or anthropic”. - write
- Persist
vendoras the active one. Atomic.