mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:32:32 +00:00
fix(tui/auto-upgrade): silence installer output and log completion
This commit is contained in:
@@ -7197,9 +7197,10 @@ impl ChatWidget<'_> {
|
||||
}
|
||||
|
||||
pub(crate) fn on_auto_upgrade_completed(&mut self, version: String) {
|
||||
let notice = format!("Auto-upgraded to version {version}");
|
||||
self.latest_upgrade_version = None;
|
||||
self.bottom_pane
|
||||
.flash_footer_notice(format!("Upgraded to version {version}"));
|
||||
self.push_background_tail(notice.clone());
|
||||
self.bottom_pane.flash_footer_notice(notice);
|
||||
self.request_redraw();
|
||||
}
|
||||
|
||||
|
||||
@@ -298,6 +298,8 @@ async fn run_upgrade_command(command: Vec<String>) -> anyhow::Result<()> {
|
||||
cmd.args(&command[1..]);
|
||||
}
|
||||
cmd.stdin(Stdio::null());
|
||||
cmd.stdout(Stdio::null());
|
||||
cmd.stderr(Stdio::null());
|
||||
|
||||
let status = cmd.status().await?;
|
||||
if !status.success() {
|
||||
|
||||
Reference in New Issue
Block a user