From 2d7c6387ae9e4336100dbe19ad0c21081577e76b Mon Sep 17 00:00:00 2001 From: Lyon <88232613+pikasTech@users.noreply.github.com> Date: Thu, 25 Jun 2026 06:22:09 +0800 Subject: [PATCH] fix: keep workbench steer on durable projection (#2087) --- web/hwlab-cloud-web/src/stores/workbench.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/web/hwlab-cloud-web/src/stores/workbench.ts b/web/hwlab-cloud-web/src/stores/workbench.ts index 112ff0e5..136bef22 100644 --- a/web/hwlab-cloud-web/src/stores/workbench.ts +++ b/web/hwlab-cloud-web/src/stores/workbench.ts @@ -809,6 +809,20 @@ function nonBlockingProjection(projection: ProjectionDiagnostic | null): Project return false; } markWorkbenchSubmitApiAccepted(traceId); + if (steerMode) { + recordActivity("steer:accepted"); + chatPending.value = previousChatPending; + currentRequest.value = { + traceId, + sessionId, + threadId, + status: "running" + }; + void hydrateTraceEvents(messages.value); + scheduleSessionListRefresh(sessionId, SESSION_LIST_TERMINAL_REFRESH_DELAY_MS); + restartRealtime("steer"); + return true; + } const canonicalTraceId = alignOptimisticTurnMessages(traceId, response.data); if (canonicalTraceId !== traceId) { reduceServerState({ type: "turn.forget", traceId });