mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-02 05:12:11 +03:00
When a Qoder connection lands in OAuth/CLI-flavored mode but the user has pasted a Personal Access Token, the provider test route surfaces "Local CLI runtime is not installed" plus a cascading 401 from DashScope. Neither error tells the user "you picked the wrong auth mode, switch to API Key". The runtime check now detects this state (Qoder + non-apikey authType + a token present on the connection or providerSpecificData) and surfaces a single actionable message: "Qoder OAuth/Local CLI mode is selected but the Qoder CLI is not detected. If you have a Personal Access Token, switch this connection to API Key auth instead." Non-Qoder providers and Qoder in real OAuth/CLI mode without a token still get the original generic message. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>