fix(session): preserve user turns in replay history

This commit is contained in:
Xubin Ren
2026-06-18 00:03:22 +08:00
parent 472c67722e
commit 09962895fb
7 changed files with 91 additions and 17 deletions
+2
View File
@@ -111,6 +111,7 @@ class TestMaxMessagesIntegration:
assert result is not None
assert mock_hist.call_count == 1
assert mock_hist.call_args.kwargs["max_messages"] == 25
assert mock_hist.call_args.kwargs["extend_to_user"] is True
@pytest.mark.asyncio
async def test_zero_config_passes_builtin_limit_to_history_call(self, tmp_path: Path) -> None:
@@ -129,6 +130,7 @@ class TestMaxMessagesIntegration:
assert result is not None
assert mock_hist.call_args.kwargs["max_messages"] == DEFAULT_MAX_MESSAGES
assert mock_hist.call_args.kwargs["extend_to_user"] is True
class TestSchemaConfig: