fix: smooth TUI waiting shimmer (#1196) (thanks @vignesh07)

This commit is contained in:
Peter Steinberger
2026-01-18 22:37:36 +00:00
parent e85d2dff97
commit e7e34c442e
4 changed files with 38 additions and 37 deletions

View File

@@ -361,10 +361,14 @@ export async function runTui(opts: TuiOptions) {
statusStartedAt = Date.now();
}
ensureStatusLoader();
if (activityStatus === "waiting") {
stopStatusTimer();
startWaitingTimer();
} else {
stopWaitingTimer();
startStatusTimer();
}
updateBusyStatusMessage();
startStatusTimer();
if (activityStatus === "waiting") startWaitingTimer();
else stopWaitingTimer();
} else {
statusStartedAt = null;
stopStatusTimer();