mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-06 08:18:58 +00:00
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:
parent
736f6dec57
commit
f4481e5287
2 changed files with 17 additions and 1 deletions
|
|
@ -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>) {
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue