fix(session): remove message time replay prefixes

This commit is contained in:
chengyongru
2026-06-27 11:04:36 +08:00
committed by Xubin Ren
parent 8656549129
commit 9b45fc1172
6 changed files with 21 additions and 53 deletions
-2
View File
@@ -1183,7 +1183,6 @@ class AgentLoop:
_hist_kwargs: dict[str, Any] = {
"max_messages": self._max_messages,
"max_tokens": self._replay_token_budget(),
"include_timestamps": True,
"extend_to_user": is_subagent,
}
history = session.get_history(**_hist_kwargs)
@@ -1462,7 +1461,6 @@ class AgentLoop:
_hist_kwargs: dict[str, Any] = {
"max_messages": self._max_messages,
"max_tokens": self._replay_token_budget(),
"include_timestamps": True,
"extend_to_user": False,
}
ctx.history = ctx.session.get_history(**_hist_kwargs)