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
fix(npm): operator precedence bug in progress indicator filter #2654
The line.len() < 10 guard only applies to lines containing "...", not to lines containing ⸩ or ⸨.
Impact
Any line containing ⸩ or ⸨ is unconditionally dropped, regardless of length. A legitimate output line like "Building module (⸨loader⸩) completed successfully" would be silently filtered out.
Currently works by accident because these Unicode chars rarely appear outside npm progress bars, but the logic doesn't match the intent.
I plan to fix the operator precedence bug in src/cmds/js/npm_cmd.rs by grouping the progress indicator conditions with parentheses so that the length check applies consistently to all progress marker patterns. I'll keep the change minimal and preserve the existing behavior apart from correcting the filtering logic.
Activity
pszymkowiak commentedon Jun 27, 2026
🔍 Automated Triage
buglowSummary
Operator precedence bug in npm progress filter silently drops lines containing ⸩/⸨ regardless of length; fix by adding parentheses — low real-world impact since these chars rarely appear in non-progress output.
📁 Relevant files
src/cmds/js/npm_cmd.rsTriaged automatically by wshm · This is an automated analysis, not a human review.
ayesha-devx commentedon Jun 27, 2026
Hi! I'd like to work on this issue.
I plan to fix the operator precedence bug in
src/cmds/js/npm_cmd.rsby grouping the progress indicator conditions with parentheses so that the length check applies consistently to all progress marker patterns. I'll keep the change minimal and preserve the existing behavior apart from correcting the filtering logic.Thank you!
fix(npm): correct operator precedence in progress indicator filter
fix(npm): correct operator precedence in progress indicator filter