add more comments

This commit is contained in:
Abi Raja 2024-07-25 15:20:06 -04:00
parent 7af2e34415
commit 21f553a0d8

View File

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