Problem
In src/tui.tsx, the ProgressBar is rendered when busy() && current() > 0 && total() > 0. After an ingest completes, busy is set to false in the ready/success branch — but current and total retain their last values, so the bar can still appear momentarily until a fresh init resets them.
Additionally, the init branch doesn't reset current/total either, so a stale progress can leak from a prior operation.
Proposed Change
In handleStatus:
ready/success branch: also call setCurrent(0); setTotal(0);
init branch: also call setCurrent(0); setTotal(0); (and keep setBusy(true))
Acceptance
- After ingest completes, ProgressBar is hidden within the next status event
- New ingest starts with a clean 0/0 baseline (no leaked numbers from previous run)
Problem
In
src/tui.tsx, the ProgressBar is rendered whenbusy() && current() > 0 && total() > 0. After an ingest completes,busyis set tofalsein theready/success branch — butcurrentandtotalretain their last values, so the bar can still appear momentarily until a freshinitresets them.Additionally, the
initbranch doesn't resetcurrent/totaleither, so a stale progress can leak from a prior operation.Proposed Change
In
handleStatus:ready/success branch: also callsetCurrent(0); setTotal(0);initbranch: also callsetCurrent(0); setTotal(0);(and keepsetBusy(true))Acceptance