fix agent image rerun preserving prompt input
This commit is contained in:
parent
80d862258b
commit
519239bcd3
@ -2494,7 +2494,9 @@ export function AgentGenerationWorkspaceDarkV2({
|
||||
});
|
||||
try {
|
||||
sendMessage({ role: "user", parts });
|
||||
setInput("");
|
||||
if (selectedAgentPreset?.type !== "image") {
|
||||
setInput("");
|
||||
}
|
||||
} catch (error) {
|
||||
generationRequestSnapshotRef.current = {
|
||||
hiddenPrompt: null,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user