Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix edge case: duplicate files included in context #43

Merged
merged 1 commit into from
May 31, 2023

Conversation

ferrislucas
Copy link
Owner

This PR fixes an issue where files are included in the context more than once if the file is mentioned more than once in the prompt.

…in the prompt

Prompt:
Modify the AutoContext.call method in src/services/AutoContext.js
Only return uniq filePath values.
Add mocha tests for these changes in test/AutoContext.test.js
Use assert in the tests - not expect.
@ferrislucas ferrislucas merged commit 10a590b into main May 31, 2023
1 check 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.

None yet

1 participant