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
fix: Add missing maxHistorySize parameter in streaming conversation save
The processStreamInBackground method was not passing the MAX_MESSAGE_PAIRS_PER_AGENT
parameter to saveConversationExchange, while the non-streaming code path correctly
included it. This inconsistency could lead to unlimited message history growth in
streaming scenarios.
Changes:
- Add missing maxHistorySize parameter to saveConversationExchange call in processStreamInBackground
- Add unit test to verify streaming responses save conversation history with correct maxHistorySize
- Test ensures the bug is fixed and prevents regression
This fix ensures that conversation history is properly limited in streaming scenarios,
preventing potential memory issues from unlimited message accumulation.
0 commit comments