`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