docs: refresh stale runtime comments and docstrings (#6129)

* docs: refresh stale runtime comments and docstrings

* docs: correct remaining delivery and recovery descriptions
This commit is contained in:
chengyongru authored and GitHub committed 2026-10-10 11:05:55 +08:00
1 parent e5a69544e8
commit 98f89c6a43
14 files changed
+34 -38

No files matched your search

+2 -2
View File
@@ -1155,7 +1155,7 @@ class TestSummaryPersistence:
loop.sessions.invalidate("cli:test")
reloaded = loop.sessions.get_or_create("cli:test")
# Every call returns the summary from metadata (no _consumed_keys gate)
# Every call returns the persisted summary.
_, summary = loop.auto_compact.prepare_session(reloaded, "cli:test")
assert summary is not None
_, summary2 = loop.auto_compact.prepare_session(reloaded, "cli:test")
@@ -1167,7 +1167,7 @@ class TestSummaryPersistence:
@pytest.mark.asyncio
async def test_metadata_cleanup_on_inmemory_path(self, tmp_path):
"""In-memory _summaries path should also clean up _last_summary from metadata."""
"""The in-memory summary path preserves _last_summary for restart recovery."""
loop = _make_loop(tmp_path, session_ttl_minutes=15)
session = loop.sessions.get_or_create("cli:test")
_add_turns(session, 6, prefix="hello")