Add blank line before human gate prompt

Insert a separator bar through indicatif before hiding progress bars
for interactive prompts, ensuring a visual gap between the spinner
and the dialoguer prompt.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Bryan Helmkamp 2026-03-04 01:08:54 -05:00
parent 81841d28eb
commit aa158ef6a5

View file

@ -493,7 +493,15 @@ impl ProgressAwareInterviewer {
#[async_trait]
impl Interviewer for ProgressAwareInterviewer {
async fn ask(&self, question: Question) -> Answer {
self.hide_bars();
{
let ui = self.progress.lock().expect("progress lock poisoned");
if let ProgressRenderer::Tty(tty) = &ui.renderer {
let sep = tty.multi.add(ProgressBar::new_spinner());
sep.set_style(style_empty());
sep.finish();
tty.multi.set_draw_target(ProgressDrawTarget::hidden());
}
}
let answer = self.inner.ask(question).await;
self.show_bars();
answer