diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 257927e..9c20df3 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -158,7 +158,10 @@ function App() { params: CodeGenerationParams, parentVersion: number | null ) { + // Reset the execution console setExecutionConsole([]); + + // Set the app state setAppState(AppState.CODING); // Merge settings with params @@ -201,7 +204,7 @@ function App() { inputs: { prompt: params.history ? params.history[params.history.length - 1] - : "", + : "", // History should never be empty when performing an edit }, }, ];