diff --git a/packages/pi-coding-agent/src/migrations.ts b/packages/pi-coding-agent/src/migrations.ts index a59e1895b..3d985e6c2 100644 --- a/packages/pi-coding-agent/src/migrations.ts +++ b/packages/pi-coding-agent/src/migrations.ts @@ -253,7 +253,9 @@ function migrateExtensionSystem(cwd: string): string[] { } /** - * Print deprecation warnings and wait for keypress. + * Print deprecation warnings. Non-blocking — does not wait for keypress so + * stdin state is not disturbed before the TUI initialises its own raw-mode + * handler. The warnings remain visible in the scrollback above the TUI. */ export async function showDeprecationWarnings(warnings: string[]): Promise { if (warnings.length === 0) return; @@ -264,17 +266,6 @@ export async function showDeprecationWarnings(warnings: string[]): Promise console.log(chalk.yellow(`\nMove your extensions to the extensions/ directory.`)); console.log(chalk.yellow(`Migration guide: ${MIGRATION_GUIDE_URL}`)); console.log(chalk.yellow(`Documentation: ${EXTENSIONS_DOC_URL}`)); - console.log(chalk.dim(`\nPress any key to continue...`)); - - await new Promise((resolve) => { - process.stdin.setRawMode?.(true); - process.stdin.resume(); - process.stdin.once("data", () => { - process.stdin.setRawMode?.(false); - process.stdin.pause(); - resolve(); - }); - }); console.log(); }