Fix incomplete prompts sometimes being detected as prompts