fix(extension): avoid recapturing recalled memories#1277
Open
GautamSharma99 wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When auto-search and auto-capture were enabled together, recalled memories were appended to the submitted prompt and then persisted through
CAPTURE_PROMPT as if they were new user input.
This caused retrieved memories to be repeatedly re-ingested, potentially amplifying duplicates, outdated information, and incorrect source
attribution.
Changes
Preserve the original user prompt before injecting recalled context.
Send only the original prompt to CAPTURE_PROMPT.
Continue injecting recalled memories into the composer for model context.
Apply the fix consistently to:
Preserve T3’s existing prompt-separation behavior.
Add shared prompt-preparation logic and regression tests.
Testing
Notes
This changes only the content persisted by auto-capture. The prompt sent to the chat platform still includes recalled memories as before.