Revert "fix(agent): persist _last_summary across restarts with used sentinel"
This reverts commit e5a1416a37.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user