Skip to content

fix: preserve all RepoMap capture nodes - #5605

Open
primorLee wants to merge 1 commit into
Aider-AI:mainfrom
primorLee:fix/repomap-capture-nodes
Open

fix: preserve all RepoMap capture nodes#5605
primorLee wants to merge 1 commit into
Aider-AI:mainfrom
primorLee:fix/repomap-capture-nodes

Conversation

@primorLee

Copy link
Copy Markdown

Summary

  • preserve every Tree-sitter capture node in both compatibility paths
  • stop duplicating the last capture in the language-pack path
  • add regression coverage for both values of USING_TSL_PACK

Fixes #5580

Validation

  • python -m pytest tests/basic/test_repomap.py::TestRepoMap::test_get_tags_raw_preserves_all_capture_nodes -q — 1 passed
  • python -m pytest tests/basic/test_repomap.py -q — 47 passed
  • python -m flake8 aider/repomap.py tests/basic/test_repomap.py --show-source
  • python -m black --check --line-length 100 --preview aider/repomap.py tests/basic/test_repomap.py
  • python -m isort --check-only --profile black aider/repomap.py tests/basic/test_repomap.py

Implementation and regression tests were prepared with AI assistance and manually validated against the reported failure mode.

@CLAassistant

CLAassistant commented Aug 22, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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.

BUG: RepoMap.get_tags_raw loses or duplicates Tree-sitter captures

2 participants