PluginProbe
Extendify / 3.2.1
Extendify v3.2.1
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
← All changes | src/Agent/components/ChatInput.jsx +3 -3 3.1.53.2.1 View file →
@@ -1,5 +1,5 @@
1 -import { useCanvasWorkflow } from '@agent/components/Canvas';
1 +import { useCanvasAssist } from '@agent/components/Canvas';
2 2 import { PageDocument } from '@agent/components/PageDocument';
3 3 import { cancelRequest } from '@agent/icons';
4 4 import { useChatStore } from '@agent/state/chat';
5 5 import { useWorkflowStore } from '@agent/state/workflows';
@@ -38,9 +38,9 @@
38 38 const [history, setHistory] = useState([]);
39 39 const dirtyRef = useRef(false);
40 40 const [historyIndex, setHistoryIndex] = useState(null);
41 41 const { workflow } = useWorkflowStore();
42 - const canvasWorkflow = useCanvasWorkflow();
42 + const canvasAssist = useCanvasAssist();
43 43 const block = useQuickEditStore((s) => s.agentBlock);
44 44 // Quick Edit's modals mount off `selected` too, so this covers them.
45 45 const editing = useQuickEditStore((s) => Boolean(s.selected));
46 46 const INPUT_LIMIT = 1500;
@@ -46,9 +46,9 @@
46 46 const INPUT_LIMIT = 1500;
47 47 const inputTrimmed = input.trim();
48 48 const overLimit = inputTrimmed.length > INPUT_LIMIT;
49 49 // The workflow stays set with a canvas open, so this would show cancel.
50 - const busy = disabled || (Boolean(workflow?.id) && !canvasWorkflow);
50 + const busy = disabled || (Boolean(workflow?.id) && !canvasAssist);
51 51 const inputDisabled = disabled || editing;
52 52
53 53 // resize the height of the textarea based on the content
54 54 const adjustHeight = useCallback(() => {