fix(tools): repair openai middleware drift#1304
Draft
vorflux[bot] wants to merge 2 commits into
Draft
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
supermemory-mcp | c95c908 | Jul 18 2026, 04:29 AM |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
supermemory-app | c95c908 | Commit Preview URL Branch Preview URL |
Jul 18 2026, 04:31 AM |
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.
Fixes OpenAI middleware drift so the
@supermemory/tools/openaiwrapper supports explicit Supermemory configuration, fails open on memory retrieval failures, and preserves query-mode search hits.Changes
apiKeysupport to OpenAI middleware and propagate custombaseUrlthrough profile/conversation calls.addMemorydefault tonever, update README docs, and bump@supermemory/toolsto2.1.2.packages/tools/CHANGELOG.mdand focused OpenAI middleware regression tests.Testing
cd packages/tools && npx vitest run test/openai-middleware.unit.test.ts --testTimeout 100000— 6 tests passed.SUPERMEMORY_API_KEYagainst/v4/profileand/v4/conversationsthrough the OpenAI middleware — 1 test passed; temporary file removed.cd packages/tools && cp package.json /tmp/supermemory-tools-package.json && rm -rf /tmp/openai-tools-build && npx tsdown src/openai/index.ts --format esm --dts false --out-dir /tmp/openai-tools-build; status=$?; cp /tmp/supermemory-tools-package.json package.json; exit $status— build completed; existing tsdown config warning aboutdefineremains.git diff --check.npx tsc --noEmitremains blocked by existing unrelated package/test type errors, includingsrc/openai/tools.ts(336,5)SearchResultsmismatch.Session Details
(aside)to your comment to have me ignore it.