refine heartbeat session retention boundaries

This commit is contained in:
Xubin Ren
2026-03-23 16:27:20 +00:00
committed by Xubin Ren
parent ba0a3d14d9
commit 2056061765
5 changed files with 90 additions and 4 deletions

View File

@@ -477,6 +477,12 @@ def test_agent_hints_about_deprecated_memory_window(mock_agent_runtime, tmp_path
assert "no longer used" in result.stdout
def test_heartbeat_retains_recent_messages_by_default():
config = Config()
assert config.gateway.heartbeat.keep_recent_messages == 8
def test_gateway_uses_workspace_from_config_by_default(monkeypatch, tmp_path: Path) -> None:
config_file = tmp_path / "instance" / "config.json"
config_file.parent.mkdir(parents=True)