()
| 70 | |
| 71 | useEffect(() => { |
| 72 | const fetchTools = () => { |
| 73 | const latest = IterationStore.getToolsFromLastIteration(agentId); |
| 74 | |
| 75 | if (latest.length !== lastCountRef.current) { |
| 76 | lastCountRef.current = latest.length; |
| 77 | setTools(latest); |
| 78 | } |
| 79 | }; |
| 80 | |
| 81 | fetchTools(); |
| 82 | const interval = setInterval(fetchTools, pollInterval); |
no test coverage detected