diff --git a/src/agents/pi-embedded-runner/run/attempt.ts b/src/agents/pi-embedded-runner/run/attempt.ts index 83606788450..38aca027ecf 100644 --- a/src/agents/pi-embedded-runner/run/attempt.ts +++ b/src/agents/pi-embedded-runner/run/attempt.ts @@ -1925,6 +1925,7 @@ export async function runEmbeddedAttempt( promptBudgetBeforeReserve: 0, overflowTokens: 0, toolResultReducibleChars: 0, + effectiveReserveTokens: reserveTokens, } : shouldPreemptivelyCompactBeforePrompt({ messages: activeSession.messages,