supermemory/packages
abhay-codes07 7cf076365d
fix(pipecat): stop re-storing injected memory blocks as new memories
LLMContext.get_messages() returns the context's live message list — the
enhancement code depends on that, mutating it in place to inject the
<user_memories> block. But the frame handler snapshotted that same
reference *before* enhancement, so by the time it sliced out
storable_messages the list already contained this turn's injected
user-message, and _store_messages wrote the recalled memories back to
Supermemory as a brand-new memory. Next turn recalls the stored block
and re-stores it again, compounding every turn. (Previously masked by
the dedup crash fixed in #1268 — with search results empty and profile
facts present, the loop is live.)

Two defenses:
- copy the message list before enhancement mutates it, so the current
  turn's injection never enters the storage slice
- filter any message carrying the memory tag out of storable_messages,
  which also covers the previous turn's injected block still sitting in
  the context (it is only replaced during the next enhancement, after
  the snapshot is taken)

Regression tests drive process_frame with a live-list fake context and
a mocked client: the injected block lands in the context but never in
the storage payload, across both the same-turn and next-turn shapes.
2026-07-13 04:12:09 +05:30
..
agent-framework-python docs: quote pip extras install examples (#1039) 2026-06-16 23:30:41 -07:00
ai-sdk fix: username issue and bun lock issue (#818) 2026-03-31 21:41:25 +00:00
cartesia-sdk-python fix(cartesia-sdk): treat empty profile as no memories, not a retrieval error (#1164) 2026-07-10 19:14:49 -07:00
docs-test custom id implementation (#877) 2026-04-24 23:43:16 +00:00
hooks chore(nova): ux improvments (#820) 2026-04-02 18:20:34 +00:00
lib perf(lib): hoist customAlphabet factory in generateId (#1204) 2026-07-10 19:15:21 -07:00
memory-graph feat(memory-graph): configurable labels + popover z-index (#1201) 2026-07-10 19:15:17 -07:00
openai-sdk-python fix(openai-sdk): use AsyncSupermemory and correct client API calls (#1063) 2026-06-17 09:05:11 -07:00
pipecat-sdk-python fix(pipecat): stop re-storing injected memory blocks as new memories 2026-07-13 04:12:09 +05:30
tools fix(tools): coerce limit/offset in ai-sdk schemas (#1202) 2026-07-10 19:42:15 -07:00
ui Fix settings organization flows (#1159) 2026-06-27 14:27:36 +00:00
validation fix(tools,validation): persist tool-call turns in conversation memory & tidy search thresholds (#1211) 2026-07-10 18:54:56 -07:00