Skip to content

fix(extension): avoid recapturing recalled memories#1277

Open
GautamSharma99 wants to merge 1 commit into
supermemoryai:mainfrom
GautamSharma99:fix/avoid-recapturing-recalled-memories
Open

fix(extension): avoid recapturing recalled memories#1277
GautamSharma99 wants to merge 1 commit into
supermemoryai:mainfrom
GautamSharma99:fix/avoid-recapturing-recalled-memories

Conversation

@GautamSharma99

Copy link
Copy Markdown
Contributor

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:

    • ChatGPT
    • Claude
    • T3
  • Preserve T3’s existing prompt-separation behavior.

  • Add shared prompt-preparation logic and regression tests.

Testing

  • 4 prompt-capture regression tests pass.
  • Browser-extension TypeScript compilation passes.
  • Browser-extension production build passes.
  • Biome checks pass.
  • Full repository suite: 312 passed, 64 skipped, with 21 pre-existing unrelated failures.

Notes

This changes only the content persisted by auto-capture. The prompt sent to the chat platform still includes recalled memories as before.

@graphite-app graphite-app Bot added the extension related to Supermemory Chrome Extension label Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension related to Supermemory Chrome Extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant