Skip to content

Commit 7278561

Browse files
authored
fix(tarko): resolve infinite re-render in BrowserControlRenderer hooks (#1303)
1 parent e083c72 commit 7278561

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

multimodal/tarko/agent-web-ui/src/standalone/workspace/renderers/browser-control/useMousePosition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const useMousePosition = ({
5858
);
5959
}
6060
}
61-
}, [activeSessionId, toolCallId, toolResults, mousePosition]);
61+
}, [activeSessionId, toolCallId, toolResults]);
6262

6363
return { mousePosition, previousMousePosition };
6464
};

multimodal/tarko/agent-web-ui/src/standalone/workspace/renderers/browser-control/useScreenshots.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,6 @@ export const useScreenshots = ({
131131
toolCallId,
132132
environmentImage,
133133
currentStrategy,
134-
afterActionImage,
135-
beforeActionImage,
136134
]);
137135

138136
return {

0 commit comments

Comments
 (0)