Render Run ID line through progress system for consistent styling

The Run: line was using raw eprintln! without indentation or dimming,
making it visually inconsistent with the Logs: and Sandbox: lines.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Bryan Helmkamp 2026-03-08 10:13:39 -04:00
parent 736f6dec57
commit f4481e5287
2 changed files with 17 additions and 1 deletions

View file

@ -637,6 +637,19 @@ impl ProgressUI {
}
}
pub fn show_run_id(&mut self, run_id: &str) {
match &self.renderer {
ProgressRenderer::Tty(tty) => {
let bar = tty.multi.add(ProgressBar::new_spinner());
bar.set_style(style_static_dim());
bar.finish_with_message(format!("Run: {run_id}"));
}
ProgressRenderer::Plain => {
eprintln!(" Run: {run_id}");
}
}
}
// ── Stages ──────────────────────────────────────────────────────────
fn on_stage_started(&mut self, node_id: &str, name: &str, script: Option<&str>) {

View file

@ -704,7 +704,10 @@ pub async fn run_command(
let run_id = worktree_run_id
.or(daytona_run_id)
.unwrap_or_else(|| ulid::Ulid::new().to_string());
eprintln!("{} {run_id}", styles.bold.apply_to("Run:"));
progress_ui
.lock()
.expect("progress lock poisoned")
.show_run_id(&run_id);
// Set up metadata branch for git checkpointing (host or remote)
let meta_branch = if worktree_work_dir.is_some() || daytona_base_sha.is_some() {
Some(crate::git::MetadataStore::branch_name(&run_id))