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); }