fix(resume): allow passing a prompt via stdin while resuming using --resume (#13520)

This commit is contained in:
bl-ue
2025-11-25 10:53:17 -07:00
committed by GitHub
parent f2c52f777c
commit 098e5c281c
2 changed files with 3 additions and 30 deletions
-5
View File
@@ -262,11 +262,6 @@ export async function parseArguments(settings: Settings): Promise<CliArgs> {
if (argv['prompt'] && argv['promptInteractive']) {
return 'Cannot use both --prompt (-p) and --prompt-interactive (-i) together';
}
if (argv['resume'] && !argv['prompt'] && !process.stdin.isTTY) {
throw new Error(
'When resuming a session, you must provide a message via --prompt (-p) or stdin',
);
}
if (argv['yolo'] && argv['approvalMode']) {
return 'Cannot use both --yolo (-y) and --approval-mode together. Use --approval-mode=yolo instead.';
}