History

fix: use || instead of ?? for binaryPath to handle empty string default

Cursor Agent committed 7 months ago

Commit f74ee021 parent a9aa5c42 files · +2 −2Browse files

Unified · Split

2 files
  1. apps/server/src/git/Layers/ClaudeTextGeneration.ts +1 −1
  2. apps/server/src/git/Layers/CodexTextGeneration.ts +1 −1
apps/server/src/git/Layers/ClaudeTextGeneration.ts+1−1
@@ -95,7 +95,7 @@ const makeClaudeTextGeneration = Effect.gen(function* () { · 94 unmodified lines
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+1−1
@@ -153,7 +153,7 @@ const makeCodexTextGeneration = Effect.gen(function* () { · 152 unmodified lines
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",