windows: reset pi terminal title after checking npm packages

on windows the npm check changes the terminal title and it doesn't change back
this is a narrow fix for it
fixes #6629
This commit is contained in:
David Brailovsky
2026-07-15 15:14:55 +00:00
parent 5e336cfa80
commit 12545274ea
@@ -833,11 +833,19 @@ export class InteractiveMode {
}); });
// Start package update check asynchronously // Start package update check asynchronously
this.checkForPackageUpdates().then((updates) => { this.checkForPackageUpdates()
if (updates.length > 0) { .then((updates) => {
this.showPackageUpdateNotification(updates); if (updates.length > 0) {
} this.showPackageUpdateNotification(updates);
}); }
})
.finally(() => {
// On Windows, npm can overwrite the shared console title while checking
// extension package versions. Restore Pi's title after the startup check.
if (process.platform === "win32" && this.isInitialized) {
this.updateTerminalTitle();
}
});
// Check tmux keyboard setup asynchronously // Check tmux keyboard setup asynchronously
this.checkTmuxKeyboardSetup().then((warning) => { this.checkTmuxKeyboardSetup().then((warning) => {