fix demo issues

This commit is contained in:
Urtzi Alfaro
2026-01-01 19:56:07 +01:00
parent 93c9475239
commit 9aee368580
3 changed files with 14 additions and 3 deletions

View File

@@ -20,6 +20,7 @@ class DemoSessionStatus(enum.Enum):
PARTIAL = "partial" # Some services failed, others succeeded
ACTIVE = "active" # User is actively using the session (deprecated, use READY)
EXPIRED = "expired" # Session TTL exceeded
DESTROYING = "destroying" # Session in the process of being destroyed
DESTROYED = "destroyed" # Session terminated
@@ -71,6 +72,9 @@ class DemoSession(Base):
# Session metadata
session_metadata = Column(JSONB, default=dict)
# Error tracking
error_details = Column(JSONB, default=list) # List of error objects for failed sessions
def __repr__(self):
return f"<DemoSession(session_id={self.session_id}, status={self.status.value})>"