refactor: remove main session key references and enhance agent-gateway associations

This commit is contained in:
Abhimanyu Saharan
2026-02-10 02:58:58 +05:30
parent 50f71960de
commit 6f070df74b
27 changed files with 552 additions and 672 deletions

View File

@@ -112,6 +112,7 @@ class AgentRead(AgentBase):
"""Public agent representation returned by the API."""
id: UUID
gateway_id: UUID
is_board_lead: bool = False
is_gateway_main: bool = False
openclaw_session_id: str | None = None

View File

@@ -30,7 +30,6 @@ class GatewaysStatusResponse(SQLModel):
gateway_url: str
sessions_count: int | None = None
sessions: list[object] | None = None
main_session_key: str | None = None
main_session: object | None = None
main_session_error: str | None = None
error: str | None = None
@@ -40,7 +39,6 @@ class GatewaySessionsResponse(SQLModel):
"""Gateway sessions list response payload."""
sessions: list[object]
main_session_key: str | None = None
main_session: object | None = None

View File

@@ -62,7 +62,6 @@ class GatewayRead(GatewayBase):
id: UUID
organization_id: UUID
token: str | None = None
main_session_key: str
created_at: datetime
updated_at: datetime