fix: guard update spinner output (#701) (thanks @bjesuiter)
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
- CLI/Status: improve Tailscale reporting in `status --all` and harden parsing of noisy `tailscale status --json` output.
|
||||
- CLI/Status: make `status --all` scan progress determinate (OSC progress + spinner).
|
||||
- Terminal/Table: ANSI-safe wrapping to prevent table clipping/color loss; add regression coverage.
|
||||
- CLI/Update: gate progress spinner on stdout TTY and align clean-check step label. (#701) — thanks @bjesuiter.
|
||||
|
||||
## 2026.1.11-4
|
||||
|
||||
|
||||
@@ -173,7 +173,7 @@ export async function updateCommand(opts: UpdateCommandOptions): Promise<void> {
|
||||
return;
|
||||
}
|
||||
|
||||
const showProgress = !opts.json && process.stderr.isTTY;
|
||||
const showProgress = !opts.json && process.stdout.isTTY;
|
||||
|
||||
if (!opts.json) {
|
||||
defaultRuntime.log(theme.heading("Updating Clawdbot..."));
|
||||
|
||||
@@ -307,7 +307,7 @@ export async function runGatewayUpdate(
|
||||
|
||||
const statusCheck = await runStep(
|
||||
step(
|
||||
"Running git status",
|
||||
"clean check",
|
||||
["git", "-C", gitRoot, "status", "--porcelain"],
|
||||
gitRoot,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user