supermemory/packages
abhay-codes07 82ef13e720
fix(tools): route Responses API memory saves through /v4/conversations
When a customId is configured, the chat-completions path hands
addMemoryTool the messages plus API credentials, so the save routes
through /v4/conversations with the internal "conversation:" prefix
stripped back off. The Responses path built the same prefixed
memoryCustomId but passed neither messages nor credentials, so the
conversation branch never ran and the save fell through to
client.add() with "conversation:<id>" as the stored customId — a value
customId validation rejects (alphanumeric/hyphen/underscore only). The
error is swallowed by design (memory saves must not break the user's
API call), which means every Responses API call with a customId
silently saved nothing.

Hand the input over as a single user message together with the
credentials, mirroring the chat path, so conversation grouping works
for the Responses API too. Also strip the internal prefix in the
client.add fallback so the routing marker can never leak into a stored
customId on any path (previously the chat path had the same leak
whenever SUPERMEMORY_API_KEY was unset).

Covered with mocked-SDK middleware tests: a customId save routes
through addConversation with the un-prefixed conversation id and never
touches client.add; the fallback stores the user's configured id, not
the prefixed marker; and the no-customId path is unchanged. Two of the
three tests fail against the previous implementation.
2026-07-13 15:43:06 +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-sdk): handle null profile object safely (#1041) 2026-06-05 17:26:28 +05:30
tools fix(tools): route Responses API memory saves through /v4/conversations 2026-07-13 15:43:06 +05:30
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