fix(CodeAwareCompressor): tree-sitter dependency mismatch#1217
fix(CodeAwareCompressor): tree-sitter dependency mismatch#1217shadow6427 wants to merge 2 commits into
Conversation
PR governanceThis PR follows the template and is marked ready for human review. |
JerrettDavis
left a comment
There was a problem hiding this comment.
This needs a tighter fix before it can merge. The PR only changes pyproject.toml, leaves uv.lock untouched, and does not add the runtime availability check that would catch the broken state where tree_sitter_language_pack imports but from tree_sitter import Parser fails. That means installs using the lockfile may not get the intended dependency set, and the compressor can still silently pass through content in partially mismatched environments.
Please align this with the fuller fix shape: pin the language pack below the incompatible 1.x API, update the lockfile, and make _check_tree_sitter_available() verify the tree_sitter.Parser import as well. Also restore the trailing newline in pyproject.toml.
Description
Fixes the tree-sitter dependency mismatch error that caused the CodeAwareCompressor to fail initialization.
Type of Change
Changes Made
Testing
pytest)ruff check .)mypy headroom)Test Output
Real Behavior Proof
Review Readiness
Checklist