Skip to content

Commit dc7259a

Browse files
committed
Don't update keepDuringTruncation to false
1 parent de7e6c2 commit dc7259a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

backend/src/run-agent-step.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -449,10 +449,7 @@ export const loopAgentSteps = async (
449449

450450
// Build the initial message history with user prompt and instructions
451451
const initialMessages = buildArray<Message>(
452-
agentState.messageHistory.map((m) => ({
453-
...m,
454-
keepDuringTruncation: false,
455-
})),
452+
...agentState.messageHistory,
456453

457454
hasPrompt && [
458455
{

0 commit comments

Comments
 (0)