-
Notifications
You must be signed in to change notification settings - Fork 1
Skip duplicate memory files by name #44
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
Conversation
Track memory names from frontmatter and exclude subsequent files that share the same name. Print a message when a file is skipped.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements memory deduplication based on frontmatter name attributes to prevent duplicate memories from being included in the generated context. When multiple memory files have the same name in their frontmatter, only the first one encountered is included.
- Adds name-based deduplication logic to track and exclude memories with duplicate names
- Includes a test to verify that only one memory file is included when multiple files share the same name
- Documents the new deduplication feature with examples and naming conventions
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| main.go | Implements deduplication by tracking memory names in a map and excluding subsequent files with the same name |
| memory_name_test.go | Adds test coverage for the memory name deduplication feature |
| README.md | Documents the new deduplication feature with examples and naming conventions |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
@copilot we don't need to de-dupe based on "name:". Instead use the basename of the memory file. |
#45) * Initial plan * Change deduplication from frontmatter name to basename Co-authored-by: alexec <1142830+alexec@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
Track memory names from frontmatter and exclude subsequent files that share the same name. Print a message when a file is skipped.