Describe the bug
src/services/packageImportService.ts line 319 contains a literal NUL byte (a raw 0x00 written where "\x00undefined" appears, instead of an escape sequence).
Because of that byte, ripgrep classifies the entire 1174-line production service as a binary file and skips it by default:
$ rg --stats -n "applyOverridesToCommands" src/
0 matches
765 files searched
- for a function that exists in that file.
Why this matters
Expected
The NUL should be written as an escape sequence ("\x00undefined" or equivalent) so the file is plain text again. Worth also considering a tiny lint/CI check asserting no source file contains raw control bytes, so this class cannot come back.
Found during the #1571/#1572 triage investigation.
Describe the bug
src/services/packageImportService.tsline 319 contains a literal NUL byte (a raw 0x00 written where"\x00undefined"appears, instead of an escape sequence).Because of that byte, ripgrep classifies the entire 1174-line production service as a binary file and skips it by default:
Why this matters
src/silently misses this file - including the searches coding agents and contributors run constantly. During the [BUG] The InfiniteAIAssistant command type is unreachable, unconfigurable, and silently skipped at run time #1571/[FEATURE] Decide whether AI system prompts should support QuickAdd format syntax #1572 triage this invalidated two "certain" facts before the cause was found.git grepandgit diffare unaffected, so the blind spot never shows up in review - which is exactly why it has survived.Expected
The NUL should be written as an escape sequence (
"\x00undefined"or equivalent) so the file is plain text again. Worth also considering a tiny lint/CI check asserting no source file contains raw control bytes, so this class cannot come back.Found during the #1571/#1572 triage investigation.