Revert "fix(agent): persist _last_summary across restarts with used sentinel"

This reverts commit e5a1416a37.
This commit is contained in:
Xubin Ren
2026-05-09 15:00:54 +08:00
parent e5a1416a37
commit 9252f4d826
4 changed files with 13 additions and 27 deletions
@@ -190,10 +190,7 @@ async def test_consolidation_persists_summary_for_next_prepare_session(tmp_path,
reloaded, pending = loop.auto_compact.prepare_session(reloaded, "cli:test")
assert pending is not None
assert "User discussed project status." in pending
# _last_summary persists for restart survival; _last_summary_used prevents
# duplicate injection within the same turn.
assert "_last_summary" in reloaded.metadata
assert reloaded.metadata.get("_last_summary_used") is True
assert "_last_summary" not in reloaded.metadata
@pytest.mark.asyncio