From 98e6f51693d02dfbea533d4570492282a5dcfc07 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 25 Mar 2026 23:14:07 +0000 Subject: [PATCH] fix: use || instead of ?? for binary path fallback to handle empty string default --- apps/server/src/git/Layers/ClaudeTextGeneration.ts | 2 +- apps/server/src/git/Layers/CodexTextGeneration.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/server/src/git/Layers/ClaudeTextGeneration.ts b/apps/server/src/git/Layers/ClaudeTextGeneration.ts index a85ed3f90c..360024079d 100644 --- a/apps/server/src/git/Layers/ClaudeTextGeneration.ts +++ b/apps/server/src/git/Layers/ClaudeTextGeneration.ts @@ -95,7 +95,7 @@ const makeClaudeTextGeneration = Effect.gen(function* () { const runClaudeCommand = Effect.gen(function* () { const command = ChildProcess.make( - claudeSettings?.binaryPath ?? "claude", + claudeSettings?.binaryPath || "claude", [ "-p", "--output-format", diff --git a/apps/server/src/git/Layers/CodexTextGeneration.ts b/apps/server/src/git/Layers/CodexTextGeneration.ts index 2b16f675e5..d846b2e6ef 100644 --- a/apps/server/src/git/Layers/CodexTextGeneration.ts +++ b/apps/server/src/git/Layers/CodexTextGeneration.ts @@ -153,7 +153,7 @@ const makeCodexTextGeneration = Effect.gen(function* () { const reasoningEffort = modelSelection.options?.reasoningEffort ?? CODEX_GIT_TEXT_GENERATION_REASONING_EFFORT; const command = ChildProcess.make( - codexSettings?.binaryPath ?? "codex", + codexSettings?.binaryPath || "codex", [ "exec", "--ephemeral",