supermemory/packages
devteamaegis 3e5d3c3991 fix(pipecat): retain strong refs to background storage tasks to prevent GC
asyncio.create_task() is only weakly referenced by the event loop.  If the
caller discards the returned Task object the GC can destroy it before the
coroutine finishes, silently dropping any messages that were queued for
storage.

The Cartesia SDK in this same repo already uses the correct pattern
(_background_tasks set + add_done_callback(discard)).  Apply the same fix
to SupermemoryPipecatService:

* Add `_background_tasks: set` in __init__
* Save every storage task in the set; remove it via done-callback once
  complete
* Clear the set in reset_memory_tracking()

Adds tests/test_background_task_tracking.py with five test cases:
- presence of _background_tasks attribute
- task is held in the set while running
- task is removed from the set after completion
- a forced GC cycle cannot collect a tracked task mid-execution
- reset_memory_tracking clears the set
2026-05-26 01:50:19 -04:00
..
agent-framework-python Add Supermemory integration for Microsoft Agent Framework (#775) 2026-03-10 01:49:45 +00:00
ai-sdk fix: username issue and bun lock issue (#818) 2026-03-31 21:41:25 +00:00
cartesia-sdk-python Update version to 0.1.1 (#862) 2026-04-16 18:57:14 -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 feat(web): org brain switcher in header + plan badges (#1006) 2026-05-26 00:53:32 +00:00
memory-graph fix: graph controls gap on compact viewports + model selector z-index (#982) 2026-05-23 08:47:19 -07:00
openai-sdk-python update open ai python sdk (#879) 2026-04-25 01:43:14 +00:00
pipecat-sdk-python fix(pipecat): retain strong refs to background storage tasks to prevent GC 2026-05-26 01:50:19 -04:00
tools docs: @supermemory/tools v2.0.0 & migration guide (#886) 2026-04-27 18:24:59 +00:00
ui add team management in nova account settings (#984) 2026-05-25 10:19:07 +05:30
validation Edit space names from selector (#949) 2026-05-16 20:14:19 -07:00