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

This commit is contained in:
Ishan authored and GitHub committed 2026-05-02 12:38:42 -07:00
1 parent 8f50ca8e2c
commit cb8015a34d
1 file changed
+1
@@ -2873,6 +2873,7 @@ export const makeClaudeAdapter = Effect.fn("makeClaudeAdapter")(function* (
...(input.cwd ? { cwd: input.cwd } : {}),
...(apiModelId ? { model: apiModelId } : {}),
pathToClaudeCodeExecutable: claudeBinaryPath,
systemPrompt: { type: "preset", preset: "claude_code" },
settingSources: [...CLAUDE_SETTING_SOURCES],
// The SDK type lags the CLI here: Opus 4.7 accepts `xhigh` even though
// the published `Options["effort"]` union currently stops at `max`.