From aa158ef6a53e642a5b145459369ba58e2fd6a792 Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Wed, 4 Mar 2026 01:08:54 -0500 Subject: [PATCH] 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 --- crates/arc-workflows/src/cli/progress.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/crates/arc-workflows/src/cli/progress.rs b/crates/arc-workflows/src/cli/progress.rs index 4211c7b4f..621f4b51a 100644 --- a/crates/arc-workflows/src/cli/progress.rs +++ b/crates/arc-workflows/src/cli/progress.rs @@ -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