Skip to content

Keep matched code in the Ask AI context window - #60

Merged
harshitethic merged 3 commits into
mainfrom
fix/context-evidence
Nov 5, 2026
Merged

harshitethic merged 3 commits into
mainfrom
fix/context-evidence

Conversation

@harshitethic

Copy link
Copy Markdown
Owner

Fixes #59. Keep the evidence window anchored to a match in the selected file, including when case folding expands characters and when the available budget only fits the symbol and its file header. Keep the existing ranking and preference for complete smaller files.

Reproduced the three cases against main. Regression tests cover each case, including a budget exactly large enough for the symbol. Ran the backend unittest suite locally on Python 3.13. No model download or external inference was required.

@harshitethic
harshitethic merged commit da1767e into main Nov 5, 2026
9 checks passed
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.

Ask AI can omit the matching source from its context

1 participant