Fix spinner hang and use braille frames

The spinner ran as a background task that outlived the command, so a
terminal run of orbit search never returned. It is now a child task that
is cancelled once the command finishes, and it starts immediately with
braille frames. upgrade skips the metadata fetch for an unchanged build
whose description is already saved.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
nandiandClaude Haiku 5.5 committed 2026-11-26 22:59:16 -08:00
1 parent 83a1784fca
commit a999db54a8
2 files changed
+40 -16

No files matched your search

+10 -1
View File
@@ -148,8 +148,17 @@ async fn visit(
}
}
let digest = resolve_digest(ch, name, tag)
let m = fetch_manifest(ch, name, digest)
let prev = p.ctx.state.get(name)
// An unchanged build with a saved description needs no metadata fetch.
let m = match prev {
Some(i) =>
if i.digest == digest && i.description != "" {
manifest_of_installed(i)
} else {
fetch_manifest(ch, name, digest)
}
None => fetch_manifest(ch, name, digest)
}
let st = Step::{
name,
channel: ch.name,