@@ -73,7 +73,11 @@ export function ToolNode ({data, id}: NodeProps<AppNode>) {
7373
7474 return configWithFallbacks ;
7575 } , { ...( userConfig || { } ) } as Record < string , any > ) ;
76- const newHandler = selectedTool . handlerFactory ( effectiveUserConfig ) ;
76+
77+ const newHandler = selectedTool . handlerFactory ( {
78+ ...effectiveUserConfig ,
79+ browserPath : settings . browserPath
80+ } ) ;
7781
7882 onConfigChange ( id , { handler : newHandler } ) ;
7983 }
@@ -82,7 +86,7 @@ export function ToolNode ({data, id}: NodeProps<AppNode>) {
8286 }
8387 }
8488 // eslint-disable-next-line react-hooks/exhaustive-deps
85- } , [ selectedTool , userConfig , onConfigChange , id , globalData , toolSubtype ] ) ;
89+ } , [ selectedTool , userConfig , onConfigChange , id , globalData , settings . browserPath , toolSubtype ] ) ;
8690
8791 const hasMissingConfig = ! toolSubtype ||
8892 ( selectedTool ?. userConfigSchema && Object . entries ( selectedTool . userConfigSchema ) . some (
@@ -96,7 +100,6 @@ export function ToolNode ({data, id}: NodeProps<AppNode>) {
96100 const newUserConfig = {
97101 ...( userConfig || { } ) ,
98102 [ key ] : value ,
99- browserPath : settings . browserPath
100103 } ;
101104
102105 let handler : ( ( params : any ) => Promise < any > ) | undefined = undefined ;
@@ -129,7 +132,10 @@ export function ToolNode ({data, id}: NodeProps<AppNode>) {
129132 return configWithFallbacks ;
130133 } , { ...newUserConfig } as Record < string , any > ) ;
131134
132- handler = selectedTool . handlerFactory ( effectiveNewUserConfig ) ;
135+ handler = selectedTool . handlerFactory ( {
136+ ...effectiveNewUserConfig ,
137+ browserPath : settings . browserPath
138+ } ) ;
133139
134140 setError ( null ) ;
135141 }
0 commit comments