@octaviaflow/core 3.0.18-beta.35 → 3.0.18-beta.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -12667,7 +12667,7 @@ function ExecutionConsole({
12667
12667
  const [query, setQuery] = useState22("");
12668
12668
  const [activeLevels, setActiveLevels] = useState22(() => new Set(ALL_LEVELS));
12669
12669
  const [activeNode, setActiveNode] = useState22("all");
12670
- const [autoScroll, setAutoScroll] = useState22(true);
12670
+ const [autoScroll, setAutoScroll] = useState22(running);
12671
12671
  const [expandedLines, setExpandedLines] = useState22(/* @__PURE__ */ new Set());
12672
12672
  const [exportMenuOpen, setExportMenuOpen] = useState22(false);
12673
12673
  const nodeOptions = useMemo15(() => {
@@ -12691,6 +12691,13 @@ function ExecutionConsole({
12691
12691
  return false;
12692
12692
  });
12693
12693
  }, [logs, query, activeLevels, activeNode]);
12694
+ const prevRunningRef = useRef23(running);
12695
+ useEffect19(() => {
12696
+ if (prevRunningRef.current !== running) {
12697
+ setAutoScroll(running);
12698
+ prevRunningRef.current = running;
12699
+ }
12700
+ }, [running]);
12694
12701
  useEffect19(() => {
12695
12702
  if (!open || !autoScroll) return;
12696
12703
  const el = logEndRef.current;