From b6535b759021a2bf588b96587b55065114339679 Mon Sep 17 00:00:00 2001 From: cthomas Date: Mon, 29 Dec 2025 11:47:58 -0800 Subject: [PATCH] fix: agent-runs relationship load causing timeouts [LET-6694] (#8129) fix: agent-runs relationship load causing timeouts --- letta/orm/agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/letta/orm/agent.py b/letta/orm/agent.py index 216968df..4c325253 100644 --- a/letta/orm/agent.py +++ b/letta/orm/agent.py @@ -147,7 +147,7 @@ class Agent(SqlalchemyBase, OrganizationMixin, ProjectMixin, TemplateEntityMixin "Run", back_populates="agent", cascade="all, delete-orphan", - lazy="selectin", + lazy="raise", doc="Runs associated with the agent.", ) identities: Mapped[List["Identity"]] = relationship(