only poll on not complete
This commit is contained in:
@@ -86,7 +86,7 @@ function ToolCallView({
|
||||
onJobCompletedRef.current = onJobCompleted;
|
||||
}, [onJobCompleted]);
|
||||
useEffect(() => {
|
||||
if (!jobId) {
|
||||
if (toolCall.status !== 'not_completed' || !jobId) {
|
||||
completionNotifiedRef.current = false;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user