| @@ -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(() => { |