You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enhancement: coalesce identical parse-degrade warnings on large trees #312
Large repos can emit the same parse-degrade warning hundreds of times (one per file), which buries actionable signal and slows CI logs. #289 asks for an actionable per-file warning when tree-sitter fails; #277 asks for structured warning codes. This ticket is the UX layer on top: coalesce identical warning codes (same code + same reason class) into a count + sample paths, while keeping machine-readable output deterministic and complete.
What to do
Find where human stderr warnings are emitted for parse degrade / continue paths.
Coalesce duplicates for human output (e.g. code, count, up to N sample paths, sorted stably). Do not drop detail from JSON/SARIF if those channels already list per-file events.
Add a fixture or unit test with repeated identical degrade events; assert stable coalesced text.
DCO (git commit -s); local-first; no secrets in sample paths (prefer repo-relative).
Acceptance
Repeated identical human warnings coalesce with a stable count and sample paths
Machine-readable streams remain complete and deterministically ordered
Problem. Large trees can emit many identical parse-degrade warnings (same code/message shape, different paths or the same path repeated). Noise drowns actionable signal.
Approach. Coalesce identical warnings: group by stable warning code (see #277) + normalized message template; report a count and a small sample of paths (sorted) rather than one line per file. Preserve fail-closed behavior for hard errors — only coalesce degrade-and-continue warnings.
Acceptance. Fixture with N identical degrade warnings → one coalesced summary (or bounded sample) with count N; output deterministic across runs; no secrets/home paths in the summary beyond the sampled relative paths.
Out of scope. Changing which conditions are warnings vs errors; silencing unique warnings that differ by rule/code.
Activity
vibgrate-team commentedon Oct 3, 2026
Spec notes for implementers
Problem. Large trees can emit many identical parse-degrade warnings (same code/message shape, different paths or the same path repeated). Noise drowns actionable signal.
Approach. Coalesce identical warnings: group by stable warning code (see #277) + normalized message template; report a count and a small sample of paths (sorted) rather than one line per file. Preserve fail-closed behavior for hard errors — only coalesce degrade-and-continue warnings.
Acceptance. Fixture with N identical degrade warnings → one coalesced summary (or bounded sample) with count N; output deterministic across runs; no secrets/home paths in the summary beyond the sampled relative paths.
Out of scope. Changing which conditions are warnings vs errors; silencing unique warnings that differ by rule/code.
fix(warnings): coalesce identical parse-degrade warnings
fix(warnings): coalesce identical parse-degrade warnings (#442)