Add an eval for and fix unsafe cloning behavior. (#24457)

This commit is contained in:
Christian Gunderman
2026-04-07 03:17:44 +00:00
committed by GitHub
parent 0a8da988ed
commit d2b775f9a7
8 changed files with 150 additions and 22 deletions
@@ -432,7 +432,7 @@ export const InputPrompt: React.FC<InputPromptProps> = ({
slashCommands,
);
if (commandToExecute?.isSafeConcurrent) {
inputHistory.handleSubmit(trimmedMessage);
handleSubmitAndClear(trimmedMessage);
return;
}
}
@@ -450,6 +450,7 @@ export const InputPrompt: React.FC<InputPromptProps> = ({
streamingState,
setQueueErrorMessage,
slashCommands,
handleSubmitAndClear,
],
);