authorgravatar for ishansachu1@gmail.comIshan <ishansachu1@gmail.com> 2026-05-03 01:08:42+05:30
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-05-02 12:38:42-07:00
logcb8015a34d4fc687ca1e03f7bbec80dc13da6390
treee633319e5cfa6219de429289c3bcae00fc093022
parent8f50ca8e2c0e7dc4464fbbc17763dab2e109ac0c
signature Signed by PGP key B5690EEEBB952194

fix(claude-agent): opt into claude_code system prompt preset (#2472)


1 files changed, 1 insertions(+), 0 deletions(-)

apps/server/src/provider/Layers/ClaudeAdapter.ts+1
...@@ -2873,6 +2873,7 @@ export const makeClaudeAdapter = Effect.fn("makeClaudeAdapter")(function* (...@@ -2873,6 +2873,7 @@ export const makeClaudeAdapter = Effect.fn("makeClaudeAdapter")(function* (
2873 ...(input.cwd ? { cwd: input.cwd } : {}),2873 ...(input.cwd ? { cwd: input.cwd } : {}),
2874 ...(apiModelId ? { model: apiModelId } : {}),2874 ...(apiModelId ? { model: apiModelId } : {}),
2875 pathToClaudeCodeExecutable: claudeBinaryPath,2875 pathToClaudeCodeExecutable: claudeBinaryPath,
2876 systemPrompt: { type: "preset", preset: "claude_code" },
2876 settingSources: [...CLAUDE_SETTING_SOURCES],2877 settingSources: [...CLAUDE_SETTING_SOURCES],
2877 // The SDK type lags the CLI here: Opus 4.7 accepts `xhigh` even though2878 // The SDK type lags the CLI here: Opus 4.7 accepts `xhigh` even though
2878 // the published `Options["effort"]` union currently stops at `max`.2879 // the published `Options["effort"]` union currently stops at `max`.