Read to automate fix

This commit is contained in:
Connor Yoh 2025-08-22 13:21:33 +01:00
parent aaa83541c4
commit 09efdbeb92

View File

@ -156,9 +156,12 @@ export function ToolWorkflowProvider({ children }: ToolWorkflowProviderProps) {
setLeftPanelView('toolPicker');
if (toolId === 'read' || toolId === 'view-pdf') {
setReaderMode(true);
} else {
setReaderMode(false);
}
} else {
setLeftPanelView('toolContent');
setReaderMode(false); // Disable read mode when selecting tools
}
}, [actions, setLeftPanelView, setReaderMode, setSearchQuery]);