fix: keep workbench steer on durable projection (#2087)

This commit is contained in:
Lyon
2026-06-25 06:22:09 +08:00
committed by GitHub
parent d818aad6d5
commit 2d7c6387ae
@@ -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 });