fix: add agent exists check [LET-5954] (#5823)

add agent exists check to prevent reading from different org

Co-authored-by: Ari Webb <ari@letta.com>
This commit is contained in:
Ari Webb
2025-10-29 15:18:00 -07:00
committed by Caren Thomas
parent 9d5fdc6de7
commit f699eda6c9

View File

@@ -131,6 +131,9 @@ class ArchiveManager:
]
async with db_registry.async_session() as session:
if agent_id:
await validate_agent_exists_async(session, agent_id, actor)
archives = await ArchiveModel.list_async(
db_session=session,
before=before,