Compare commits

...

1 Commits

Author SHA1 Message Date
diegosouzapw
b0433b3683 fix(qoder): include actionable CLI_QODER_BIN hint in connection test when qodercli is not found (#9277)
When the Qoder CLI (qodercli) is not detected by getCliRuntimeStatus after
an OmniRoute restart (e.g. restricted launch context on Windows where
APPDATA/PATH are not inherited), the connection test showed only the
non-actionable 'Local CLI runtime is not installed'. Now it surfaces the
same buildQoderCliNotFoundHint guidance already used in the executor path,
telling the user to set CLI_QODER_BIN to the absolute path of qodercli.

Closes #9277
2026-08-04 06:20:43 -03:00
2 changed files with 5 additions and 1 deletions

View File

@@ -0,0 +1 @@
- fix(qoder): include actionable CLI_QODER_BIN hint in connection test when qodercli is not found (#9277)

View File

@@ -11,6 +11,7 @@ import { getConsistentMachineId } from "@/shared/utils/machineId";
import { syncToCloud } from "@/lib/cloudSync";
import { validateProviderApiKey } from "@/lib/providers/validation";
import { getCliRuntimeStatus } from "@/shared/services/cliRuntime";
import { buildQoderCliNotFoundHint } from "@omniroute/open-sse/services/qoderCliResolve.ts";
// Use the shared open-sse token refresh with built-in dedup/race-condition cache
import { getAccessToken } from "@omniroute/open-sse/services/tokenRefresh.ts";
import { rotationGroupFor } from "@omniroute/open-sse/services/refreshSerializer.ts";
@@ -205,7 +206,9 @@ async function getProviderRuntimeStatus(connection: any) {
const runtimeMessage = runtime.installed
? `Local CLI runtime is installed but not runnable (${runtime.reason || "healthcheck_failed"})`
: "Local CLI runtime is not installed";
: provider === "qoder"
? buildQoderCliNotFoundHint(runtime.reason || "not_found")
: "Local CLI runtime is not installed";
return {
...runtime,