fix(tui/auto-upgrade): silence installer output and log completion

This commit is contained in:
James Peter
2025-09-25 21:56:36 +10:00
parent eeefdf5565
commit f23e920cb8
2 changed files with 5 additions and 2 deletions
+3 -2
View File
@@ -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();
}
+2
View File
@@ -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() {