We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c53aa37 commit 5182244Copy full SHA for 5182244
npm-app/src/cli.ts
@@ -738,6 +738,8 @@ export class CLI {
738
this.detectPasting()
739
if (this.isPasting) {
740
this.pastedContent += line + '\n'
741
+ // Suppress the prompt during paste mode to avoid multiple ">" prompts
742
+ this.rl.setPrompt('')
743
} else if (!this.isReceivingResponse) {
744
const input = (this.pastedContent + line).trim()
745
this.pastedContent = ''
@@ -1429,6 +1431,8 @@ export class CLI {
1429
1431
this.consecutiveFastInputs = 0
1430
1432
1433
this.isPasting = false
1434
+ // Restore the normal prompt when paste mode ends
1435
+ this.setPrompt()
1436
}
1437
1438
this.lastInputTime = currentTime
0 commit comments