fix(index): %d can't format the "(all)" label-count fallback #7

Merged
claude merged 1 commits from fix-index-log into main 2026-09-10 21:33:47 -04:00
1 Commits
Author SHA1 Message Date
claudeandClaude Opus 5 e11dc8c457 fix(index): %d can't format the "(all)" label-count fallback
`label_count or "(all)"` yields a str when --limit isn't passed (the
normal CI path), so the %d placeholder raised

    TypeError: %d format: a real number is required, not str

on every indexing run. logging swallows the error, so the index still
built correctly and CI stayed green — it just printed a stack trace
instead of the summary line. Visible in every refresh/build log.

%s formats both the int and the string fallback.

Verified both paths:
  no --limit   -> "loaded 218633 chunks from (all) label(s) in 6.6s"
  --limit 5    -> "loaded 180 chunks from 5 label(s) in 0.0s"

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FFBDnRWHispovmJVK9rXc9
2026-09-10 21:32:00 -04:00