Skip to content

v1.1.0 — resilience: auto-follow CLI version, pre-output failover, idle timeouts

Latest

Choose a tag to compare

@github-actions github-actions released this 13 Sep 11:25
· 1 commit to main since this release

Resilience release — the adapter keeps its CLI fingerprint current automatically, survives stalled or empty upstream responses, and gains a zero-data-retention switch. Also ships the two v1.0.0-era stability fixes that had not been released yet.

What's new in v1.1.0

  • CLI fingerprint auto-follow — the simulated CLI version sent to the gateway now tracks the latest command-code release on the npm registry, refreshed every 24h, so upgrade_required rejections stop being a maintenance burden. Set CC_VERSION (env) or --cc-version to pin an exact version.
  • Failover before first byte — streaming responses are buffered until the first visible output. An empty upstream reply now returns a retryable 429, and errors or idle timeouts that occur before any output trigger failover to the next pool account instead of a broken SSE stream. Once output has started, behavior is unchanged (stream passes through).
  • Upstream idle timeouts — reads that see no data for 120s (streaming) / 300s (non-streaming) abort instead of hanging for 10 minutes. Tunable via CC_STREAM_IDLE_S / CC_NONSTREAM_IDLE_S. The defaults are deliberately generous: the official CLI has no idle timeout at all and long reasoning pauses are normal.
  • 402 handling — gateway 402 (credits exhausted) is treated like rate limiting: the request fails over to the next account and the exhausted account cools down.
  • Zero-data-retention toggle — send x-cmd-zdr: 1 on generation requests via CC_ZDR=1, the --zdr flag, or the new 零数据保留 checkbox in the desktop status bar (runtime switch, takes effect immediately).
  • Model metadata — /v1/models now exposes context_window and max_context_length aliases alongside context_length.
  • Stability fixes carried in — headless-zombie watchdog (a crashed GUI no longer leaves an unkillable background proxy holding the port; a second launch wakes the existing window) and the UI-freeze deadlock fix (cross-thread font GC deadlocked the main thread after long runtimes).

Configuration (new)

Variable Default Meaning
CC_VERSION auto (npm latest, 24h) CLI fingerprint version; setting it pins the value
CC_ZDR unset 1/true enables zero-data-retention routing
CC_STREAM_IDLE_S 120 Streaming read idle timeout (seconds)
CC_NONSTREAM_IDLE_S 300 Non-streaming read idle timeout (seconds)

Usage

Double-click General-cmdgo-provider.exe. Click OAuth 登录 once per account to add accounts; requests spread across them automatically and fail over within a single request when one account is rate-limited.

Point your OpenAI-compatible client at:

Item Value
Base URL http://127.0.0.1:8787/v1
API key cmdgo
Protocol OpenAI Chat Completions

Build from source

python -m pip install pyinstaller customtkinter pystray pillow cryptography
windows\build_gui.cmd

Token/accounts are stored per-user (DPAPI-encrypted on Windows) at %APPDATA%\cmdgo-provider\. The server binds to 127.0.0.1 only.