Skip to content

Commit 98e6f51

Browse files
committed
fix: use || instead of ?? for binary path fallback to handle empty string default
1 parent 5b750e2 commit 98e6f51

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/server/src/git/Layers/ClaudeTextGeneration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ const makeClaudeTextGeneration = Effect.gen(function* () {
9595

9696
const runClaudeCommand = Effect.gen(function* () {
9797
const command = ChildProcess.make(
98-
claudeSettings?.binaryPath ?? "claude",
98+
claudeSettings?.binaryPath || "claude",
9999
[
100100
"-p",
101101
"--output-format",

apps/server/src/git/Layers/CodexTextGeneration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ const makeCodexTextGeneration = Effect.gen(function* () {
153153
const reasoningEffort =
154154
modelSelection.options?.reasoningEffort ?? CODEX_GIT_TEXT_GENERATION_REASONING_EFFORT;
155155
const command = ChildProcess.make(
156-
codexSettings?.binaryPath ?? "codex",
156+
codexSettings?.binaryPath || "codex",
157157
[
158158
"exec",
159159
"--ephemeral",

0 commit comments

Comments
 (0)