From 3056be165fcb3e4e441fe4823249e266f1f46b96 Mon Sep 17 00:00:00 2001 From: Zamil Majdy Date: Wed, 15 Apr 2026 23:21:16 +0700 Subject: [PATCH] fix(frontend/copilot): sync openapi.json with backend schema (query param descriptions) --- autogpt_platform/frontend/src/app/api/openapi.json | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/autogpt_platform/frontend/src/app/api/openapi.json b/autogpt_platform/frontend/src/app/api/openapi.json index 6c5a57ca96..7ae74323ec 100644 --- a/autogpt_platform/frontend/src/app/api/openapi.json +++ b/autogpt_platform/frontend/src/app/api/openapi.json @@ -1490,7 +1490,7 @@ "get": { "tags": ["v2", "chat", "chat"], "summary": "Get Session", - "description": "Retrieve the details of a specific chat session.\n\nSupports cursor-based pagination via ``limit``, ``before_sequence``, and\n``after_sequence``.\n\nOn the initial load (no cursor provided) of a completed session, messages\nare returned in forward order starting from sequence 0 so the user always\nsees their initial prompt. Active sessions use the legacy newest-first\norder so streaming context is preserved.\n\nArgs:\n session_id: The unique identifier for the desired chat session.\n user_id: The authenticated user's ID.\n limit: Maximum number of messages to return (1-200, default 50).\n before_sequence: Return messages with sequence < this value (backward\n pagination cursor, used by active-session load-more).\n after_sequence: Return messages with sequence > this value (forward\n pagination cursor, used by completed-session load-more).\n\nReturns:\n SessionDetailResponse: Details for the requested session, including\n active_stream info and pagination metadata.", + "description": "Retrieve the details of a specific chat session.\n\nSupports cursor-based pagination via ``limit``, ``before_sequence``, and\n``after_sequence``. The two cursor parameters are mutually exclusive.\n\nOn the initial load (no cursor provided) of a completed session, messages\nare returned in forward order starting from sequence 0 so the user always\nsees their initial prompt. Active sessions use the legacy newest-first\norder so streaming context is preserved.", "operationId": "getV2GetSession", "security": [{ "HTTPBearerJWT": [] }], "parameters": [ @@ -1508,9 +1508,11 @@ "type": "integer", "maximum": 200, "minimum": 1, + "description": "Maximum number of messages to return.", "default": 50, "title": "Limit" - } + }, + "description": "Maximum number of messages to return." }, { "name": "before_sequence", @@ -1521,8 +1523,10 @@ { "type": "integer", "minimum": 0 }, { "type": "null" } ], + "description": "Backward pagination cursor. Return messages with sequence number strictly less than this value. Used by active-session load-more. Mutually exclusive with after_sequence.", "title": "Before Sequence" - } + }, + "description": "Backward pagination cursor. Return messages with sequence number strictly less than this value. Used by active-session load-more. Mutually exclusive with after_sequence." }, { "name": "after_sequence", @@ -1533,8 +1537,10 @@ { "type": "integer", "minimum": 0 }, { "type": "null" } ], + "description": "Forward pagination cursor. Return messages with sequence number strictly greater than this value. Used by completed-session load-more. Mutually exclusive with before_sequence.", "title": "After Sequence" - } + }, + "description": "Forward pagination cursor. Return messages with sequence number strictly greater than this value. Used by completed-session load-more. Mutually exclusive with before_sequence." } ], "responses": {