From 0ab65a2dc8947cc392506e8f78d9a82d6b649659 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Fri, 22 Nov 2024 05:49:42 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- examples/experimental/nodes/frontend/src/App.tsx | 12 ++++++------ .../src/components/ChatInterface/ChatInterface.tsx | 10 +++++----- .../frontend/src/components/Terminal/Terminal.tsx | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/examples/experimental/nodes/frontend/src/App.tsx b/examples/experimental/nodes/frontend/src/App.tsx index e9325149..574b3012 100644 --- a/examples/experimental/nodes/frontend/src/App.tsx +++ b/examples/experimental/nodes/frontend/src/App.tsx @@ -47,13 +47,13 @@ const App: React.FC = () => { const handleNewMessage = (data: any) => { try { const messageData = JSON.parse(data.message); - + // Check if it's an agent action if (messageData.data?.data_type === "agent_action") { handleAgentAction(messageData); - } + } // Check if it's a command output - else if (messageData.data?.data_type === "text" && + else if (messageData.data?.data_type === "text" && messageData.data.text.includes("CmdOutputObservation")) { const parts = messageData.data.text.split("**CmdOutputObservation (source=None, exit code=0)**"); if (parts.length > 1) { @@ -63,7 +63,7 @@ const App: React.FC = () => { } // Log the message for debugging console.log('Parsed message:', messageData); - + } catch (error) { console.error('Error parsing message:', error); } @@ -182,8 +182,8 @@ const App: React.FC = () => {