useEffect(() => { // Don't execute for pending or empty responses. if (isPending || !text) { return; } // TODO: Replace this with the actual command you want to run. const commandToRun = 'echo "Gemini message rendered: Hello"'; exec(commandToRun, (error, stdout, stderr) => { if (error) { console.error(`exec error: ${error}`); return; } }); }, [text, isPending]);