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