From 0dcc704005e63c6ed6f59b8217b1ae6891178eea Mon Sep 17 00:00:00 2001 From: lyon Date: Tue, 16 Jun 2026 23:41:46 +0800 Subject: [PATCH] fix: cap trace pagination page size --- internal/cloud/server-code-agent-http.ts | 4 ++-- web/hwlab-cloud-web/src/stores/workbench.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/cloud/server-code-agent-http.ts b/internal/cloud/server-code-agent-http.ts index 6666e33f..6bb98706 100644 --- a/internal/cloud/server-code-agent-http.ts +++ b/internal/cloud/server-code-agent-http.ts @@ -31,8 +31,8 @@ import { } from "./server-http-utils.ts"; const DEFAULT_CODE_AGENT_RESULT_TRACE_EVENT_LIMIT = 120; -const DEFAULT_CODE_AGENT_TRACE_PAGE_LIMIT = 200; -const MAX_CODE_AGENT_TRACE_PAGE_LIMIT = 500; +const DEFAULT_CODE_AGENT_TRACE_PAGE_LIMIT = 100; +const MAX_CODE_AGENT_TRACE_PAGE_LIMIT = 100; const DEFAULT_CODE_AGENT_PROJECT_ID = "prj_hwpod_workbench"; const DEFAULT_CODE_AGENT_PROVIDER_PROFILE = "deepseek"; const CODE_AGENT_TERMINAL_STATUSES = new Set(["completed", "failed", "blocked", "timeout", "cancelled", "canceled"]); diff --git a/web/hwlab-cloud-web/src/stores/workbench.ts b/web/hwlab-cloud-web/src/stores/workbench.ts index b01f6e5a..c8247f41 100644 --- a/web/hwlab-cloud-web/src/stores/workbench.ts +++ b/web/hwlab-cloud-web/src/stores/workbench.ts @@ -8,7 +8,7 @@ import { RECENT_DRAFTS_STORAGE_KEY, activeTraceIdFromWorkspace, defaultProviderP const DEFAULT_CODE_AGENT_TIMEOUT_MS = 1_800_000; const DEFAULT_GATEWAY_TIMEOUT_MS = 120_000; -const TRACE_HYDRATION_PAGE_LIMIT = 200; +const TRACE_HYDRATION_PAGE_LIMIT = 100; const TRACE_HYDRATION_MAX_PAGES = 60; export const useWorkbenchStore = defineStore("workbench", () => {