Skip to content

feat(index): show per-phase progress with elapsed time#32

Merged
sunerpy merged 1 commit into
mainfrom
feat/index-progress-phases
Jun 23, 2026
Merged

feat(index): show per-phase progress with elapsed time#32
sunerpy merged 1 commit into
mainfrom
feat/index-progress-phases

Conversation

@sunerpy

@sunerpy sunerpy commented Jun 23, 2026

Copy link
Copy Markdown
Owner

The index progress bar previously only covered the file-scanning phase and wiped its elapsed time on finish; all post-scan phases (persisting nodes/edges/refs, framework detection, reference resolution, post-extract, compaction) ran silently. On large repos the resolve phase dominates, leaving the user staring at a blank terminal.

This adds a labeled phase spinner around each phase that retains a ✓ <label> (<elapsed>) line on stderr, and keeps the scan elapsed instead of clearing it. Progress stays a pure side effect: hidden on --quiet and non-TTY, stderr-only, stdout untouched, golden byte-equivalence preserved. Sync's dropped scan elapsed is fixed too.

Verified: golden byte-equivalence 11/11 + 4/4, full cargo test --workspace green, clippy/fmt/guardrail 0, hands-on TTY shows all 8 phase lines with elapsed, piped 0 carriage-returns, --quiet 0 bytes both streams, DB counts stable.

The index progress bar previously only covered the file-scanning phase and
wiped its elapsed time on finish; all post-scan phases (persisting nodes/
edges/refs, framework detection, reference resolution, post-extract, compaction)
ran silently. On large repos the resolve phase dominates, leaving the user
staring at a blank terminal.

Add a labeled phase spinner around each phase that retains a
"checkmark label (elapsed)" line on stderr, and keep the scan elapsed instead
of clearing it. Progress stays a pure side effect: hidden on --quiet and
non-TTY, stderr-only, stdout untouched, golden byte-equivalence preserved.
Also fix sync dropping its scan elapsed on finish.
@sunerpy sunerpy merged commit 1fa33e9 into main Jun 23, 2026
4 checks passed
@sunerpy sunerpy deleted the feat/index-progress-phases branch June 23, 2026 04:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant