assistant: Fix inline assist not restarting transformation after pressing retry (#17301)
Release Notes: - Fixed an issue where the inline assist would be dismissed even when instructed to regenerate the transformation after an error
This commit is contained in:
parent
64a8b14e49
commit
32db140b95
2 changed files with 8 additions and 2 deletions
|
@ -1794,13 +1794,16 @@ impl PromptEditor {
|
|||
CodegenStatus::Pending => {
|
||||
cx.emit(PromptEditorEvent::DismissRequested);
|
||||
}
|
||||
CodegenStatus::Done | CodegenStatus::Error(_) => {
|
||||
CodegenStatus::Done => {
|
||||
if self.edited_since_done {
|
||||
cx.emit(PromptEditorEvent::StartRequested);
|
||||
} else {
|
||||
cx.emit(PromptEditorEvent::ConfirmRequested);
|
||||
}
|
||||
}
|
||||
CodegenStatus::Error(_) => {
|
||||
cx.emit(PromptEditorEvent::StartRequested);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue