Skip to content

Commit b7b6a52

Browse files
committed
fix: avoid invalidating foreground runtime syncs
1 parent 165ec27 commit b7b6a52

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/web/src/features/app/WorkbenchRuntimeCoordinator.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ import {
5353
import { attachWorkspaceRuntimeWithRetry } from "../workspace/runtime-attach";
5454
import { createWorkspaceSessionActions } from "../workspace/session-actions";
5555
import {
56-
advanceWorkspaceSyncVersion,
5756
isWorkspaceSyncVersionCurrent,
57+
readWorkspaceSyncVersion,
5858
} from "../workspace/workspace-sync-version.ts";
5959
import { useWorkspaceTransportSync } from "../workspace/workspace-sync-hooks";
6060

@@ -404,7 +404,7 @@ export const WorkbenchRuntimeCoordinator = ({
404404
}
405405

406406
const task = (async () => {
407-
const syncVersion = advanceWorkspaceSyncVersion(workspaceId);
407+
const syncVersion = readWorkspaceSyncVersion(workspaceId);
408408
const runtimeSnapshot = await attachWorkspaceRuntimeWithRetry(
409409
workspaceId,
410410
deviceId,

0 commit comments

Comments
 (0)