diff --git a/src/agents/pi-embedded-runner/system-prompt.ts b/src/agents/pi-embedded-runner/system-prompt.ts index f1caa98eb..46d6cfbc7 100644 --- a/src/agents/pi-embedded-runner/system-prompt.ts +++ b/src/agents/pi-embedded-runner/system-prompt.ts @@ -74,8 +74,11 @@ export function buildEmbeddedSystemPrompt(params: { }); } -export function createSystemPromptOverride(systemPrompt: string): string { - return systemPrompt.trim(); +export function createSystemPromptOverride( + systemPrompt: string, +): (defaultPrompt?: string) => string { + const override = systemPrompt.trim(); + return (_defaultPrompt?: string) => override; } export function applySystemPromptOverrideToSession(