Skip to content

fix(band): skip binary files in repository searches - #1417

Open
zhangkom wants to merge 1 commit into
DietrichGebert:mainfrom
zhangkom:codex/band-skip-binary-grep-1416
Open

zhangkom wants to merge 1 commit into
DietrichGebert:mainfrom
zhangkom:codex/band-skip-binary-grep-1416

Conversation

@zhangkom

Copy link
Copy Markdown

Summary

Fixes #1416. Skip Git-detected binary files in both Band definition and caller searches while continuing to search tracked and untracked text.

Evidence

  • The new hook test drives session start and a removed definition: both searches lacked -I before this change and include it afterwards.
  • In a temporary Git repository, both original searches reported tracked and untracked binary fixtures; the updated searches skipped those fixtures and still found the Python source.
  • npm test, node scripts/check-rule-copies.js, and node scripts/check-versions.js passed on Windows with pandas installed.
  • claude plugin test . on Linux: 31 passed, including the new regression; 2 terminal-layout tests failed both before and after this change with the same expected/actual values.

Merge Danger

Two-way; limited to Band's repository searches. Git's binary detection will also exclude text files that Git treats as binary. The macOS memory usage reported in the issue was not measured locally.

AI disclosure: OpenAI Codex generated the patch, test, and PR description; the commands and results above were checked in the local test environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

band: git grep without -I uses 40+ GB on binary files (macOS kernel panic)

1 participant