You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed interaction between savePerStep and observational memory that caused message duplication. The saveStepMessages method redundantly re-added response messages to the message list on every step, duplicating them. Additionally, savePerStep is now force-disabled when observational memory is enabled, since OM handles its own per-step persistence and the two features conflict.
Copy file name to clipboardExpand all lines: packages/core/src/agent/agent.types.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -450,7 +450,7 @@ export type AgentExecutionOptionsBase<OUTPUT> = {
450
450
/** Unique identifier for this execution run */
451
451
runId?: string;
452
452
453
-
/** Save messages incrementally after each stream step completes (default: false). */
453
+
/** Save messages incrementally after each stream step completes (default: false). Is disabled internally when observational memory is enabled, as OM handles its own message saving */
454
454
savePerStep?: boolean;
455
455
456
456
/** Request Context containing dynamic configuration and state */
0 commit comments