From 99589938a8a15c2fcf64037719cd4bf87d39acc8 Mon Sep 17 00:00:00 2001 From: Lyon <88232613+pikasTech@users.noreply.github.com> Date: Wed, 24 Jun 2026 08:32:34 +0800 Subject: [PATCH] fix(workbench): disable terminal turn diagnostic fetches (#2029) --- web/hwlab-cloud-web/src/stores/workbench.ts | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/web/hwlab-cloud-web/src/stores/workbench.ts b/web/hwlab-cloud-web/src/stores/workbench.ts index 1b45ccc3..520b3832 100644 --- a/web/hwlab-cloud-web/src/stores/workbench.ts +++ b/web/hwlab-cloud-web/src/stores/workbench.ts @@ -1235,15 +1235,8 @@ function nonBlockingProjection(projection: ProjectionDiagnostic | null): Project async function refreshTerminalTraceFromRest(traceId: string, reason: string): Promise { if (terminalRealtimeRefreshInFlight.has(traceId)) return; terminalRealtimeRefreshInFlight.add(traceId); - try { - const result = await fetchWorkbenchTurnStatus(traceId); - if (!result.ok || !result.data) return; - applyTurnStatusSnapshot(traceId, result.data); - if (result.data.terminal === true || isTerminalMessageStatus(result.data.status)) completeTrace(traceId, result.data); - } finally { - terminalRealtimeRefreshInFlight.delete(traceId); - restartRealtime(reason); - } + terminalRealtimeRefreshInFlight.delete(traceId); + void reason; } function installRealtimeVisibilityHandler(): void { @@ -1329,13 +1322,7 @@ function nonBlockingProjection(projection: ProjectionDiagnostic | null): Project async function hydrateTerminalMessageDiagnostics(): Promise { const targets = messages.value.filter(messageNeedsTerminalDiagnostics).slice(-6); - await Promise.all(targets.map(async (message) => { - const traceId = firstNonEmptyString(message.traceId, message.runnerTrace?.traceId); - if (!traceId) return; - const result = await fetchWorkbenchTurnStatus(traceId); - if (!result.ok || !result.data) return; - applyTurnStatusSnapshot(traceId, result.data); - })); + void targets; void hydrateTraceEvents(messages.value); }