Begin adding AI memory

This commit is contained in:
2026-03-05 03:24:39 +00:00
parent f21abd6299
commit 06735bdfb1
26 changed files with 1446 additions and 110 deletions

View File

@@ -136,3 +136,24 @@ class EventProjectionShadowTests(TestCase):
)
rendered = out.getvalue()
self.assertIn("shadow compare:", rendered)
def test_management_command_supports_recent_only_switch(self):
Message.objects.create(
user=self.user,
session=self.session,
ts=int(time.time() * 1000),
sender_uuid="+15550000001",
text="recent-only",
source_service="signal",
source_message_id="recent-only-1",
)
out = StringIO()
call_command(
"event_projection_shadow",
user_id=str(self.user.id),
recent_only=True,
limit_sessions=5,
stdout=out,
)
rendered = out.getvalue()
self.assertIn("shadow compare:", rendered)