Skip to content

Commit 4fa436d

Browse files
fix(tasks): only reconcile cloud tasks into workspace registry (#2153)
1 parent d66fa3a commit 4fa436d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

apps/code/src/renderer/components/MainLayout.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ export function MainLayout() {
9898
if (!syncCloudTasksEnabled) return;
9999
if (!tasks || !workspaces || !workspacesFetched) return;
100100
const missing = tasks.filter(
101-
(t) => !workspaces[t.id] && !reconcilingTaskIds.current.has(t.id),
101+
(t) =>
102+
t.latest_run?.environment === "cloud" &&
103+
!workspaces[t.id] &&
104+
!reconcilingTaskIds.current.has(t.id),
102105
);
103106
if (missing.length === 0) return;
104107
for (const t of missing) reconcilingTaskIds.current.add(t.id);

0 commit comments

Comments
 (0)