diff --git a/src/commands/interactive.ts b/src/commands/interactive.ts index df95339..290e19e 100644 --- a/src/commands/interactive.ts +++ b/src/commands/interactive.ts @@ -42,6 +42,7 @@ export async function interactiveCommand(config: Config): Promise { } if (trimmed) { + rl.pause(); const spinner = ora('Thinking...').start(); try { @@ -51,6 +52,8 @@ export async function interactiveCommand(config: Config): Promise { } catch (error) { spinner.stop(); console.error(chalk.red('Error:'), error instanceof Error ? error.message : error); + } finally { + rl.resume(); } }