Fixed stdout
This commit is contained in:
@@ -42,7 +42,7 @@ const App = () => {
|
||||
setValidationError(message.validation_error);
|
||||
break;
|
||||
case ServerMessageType.OUTPUT_UPDATE:
|
||||
setOutput(prev => prev + message.data);
|
||||
setOutput(message.output);
|
||||
break;
|
||||
}
|
||||
});
|
||||
@@ -72,6 +72,12 @@ const App = () => {
|
||||
}
|
||||
};
|
||||
|
||||
const handleClearOutput = () => {
|
||||
sendMessage({
|
||||
"type": ClientMessageType.CLEAR_OUTPUT
|
||||
});
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
if (agentState === AgentState.APPROVE_RESPONSE) {
|
||||
sendMessage({
|
||||
@@ -151,7 +157,7 @@ const App = () => {
|
||||
onApprove={handleApprove}
|
||||
onToggleDiff={() => setShowDiff(!showDiff)}
|
||||
onSendInput={handleSendInput}
|
||||
onClearOutput={() => setOutput('')}
|
||||
onClearOutput={handleClearOutput}
|
||||
/>
|
||||
|
||||
<FloatingButton onClick={() => setShowSidebar(!showSidebar)} />
|
||||
|
||||
Reference in New Issue
Block a user