Skip to content

The agent that grows with you

test(acp): restored rows carry the repair snapshot like the other underscore markers

kshitijk4poorac7927ca489e
diff --git a/tests/acp_adapter/test_session.py b/tests/acp_adapter/test_session.py
index a34234f8ee9..2f2496093b7 100644
--- a/tests/acp_adapter/test_session.py
+++ b/tests/acp_adapter/test_session.py
@@ -546,6 +546,8 @@ class TestPersistence:
assert msg.pop("_db_persisted", None) is True
# The durable per-message id rides on every restored row, like the timestamp.
assert re.fullmatch(r"[0-9a-f]{32}", msg.pop("message_uid", ""))
+ # Repair bookkeeping (underscore-prefixed, stripped before the wire) rides restored rows too.
+ assert isinstance(msg.pop("_db_row_snapshot", None), str)
assert restored.history == [{
"role": "assistant",
"content": "hello",