mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-20 12:23:22 +00:00
pterm's ProgressbarPrinter has no internal mutex, causing race conditions when multiple goroutines call Increment() concurrently — the final render could show a stale count (e.g. 954/955 instead of 955/955). Additionally, pterm's auto-stop (triggered when Current >= Total) made external Stop() a no-op, preventing us from controlling the final display. New progress.go implementation: - Uses sync/atomic for thread-safe counter updates - Stop() forces current=total and renders a final frame - Adds StartProgressWithMaxWidth() to constrain bar width Also in this commit: - audit: hide per-skill scan list when TUI is active (summary only) - audit: extract presentAuditResults() to deduplicate output logic - audit: align progress bar width with header/summary box - audit TUI: add breathing room between panels, stats, and help bar