diff --git a/packages/coding-agent/src/modes/interactive/interactive-mode.ts b/packages/coding-agent/src/modes/interactive/interactive-mode.ts index 20ddbf49..f9545f33 100644 --- a/packages/coding-agent/src/modes/interactive/interactive-mode.ts +++ b/packages/coding-agent/src/modes/interactive/interactive-mode.ts @@ -833,11 +833,19 @@ export class InteractiveMode { }); // Start package update check asynchronously - this.checkForPackageUpdates().then((updates) => { - if (updates.length > 0) { - this.showPackageUpdateNotification(updates); - } - }); + this.checkForPackageUpdates() + .then((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 this.checkTmuxKeyboardSetup().then((warning) => {