fix false "task complete" state during agent message (#4627)

fixes an issue where user messages wouldn't be queued and ctrl + c would
quit the app instead of canceling the stream during the final agent
message.
This commit is contained in:
Jeremy Rose
2025-10-02 15:41:25 -07:00
committed by GitHub
parent 591a8ecc16
commit c0a84473a4
3 changed files with 41 additions and 3 deletions

View File

@@ -339,7 +339,14 @@ impl BottomPane {
self.request_redraw();
} else {
// Hide the status indicator when a task completes, but keep other modal views.
self.status = None;
self.hide_status_indicator();
}
}
/// Hide the status indicator while leaving task-running state untouched.
pub(crate) fn hide_status_indicator(&mut self) {
if self.status.take().is_some() {
self.request_redraw();
}
}