Repository navigation
AGE-2755: report memory failures during chats to Sentry - #1341
Merged
Merged
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
hary73
force-pushed
the
hary/memory-sentry
branch
from
November 11, 2026 11:55
c985b1a to
7695a6c
Compare
🦋 Changeset detectedLatest commit: 24f3723 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
hary73
marked this pull request as ready for review
November 11, 2026 12:06
hary73
requested review from
chiragjn,
debajyoti-truefoundry,
heerambavi1998 and
thesujai
as code owners
November 11, 2026 12:06
heerambavi1998
approved these changes
Nov 11, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
hary73
enabled auto-merge (squash)
November 11, 2026 13:08
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.
Summary
Memory ingestion failures were already reported to Sentry, but failures during a chat only showed up in logs. This reports them too, so they raise alerts without anyone checking logs.
Fixes AGE-2755
Changes
All in
packages/trueforge/src/memory/sessionMemory.ts, using the existingreportable_errorlog field (logged aterror; the turn's log context already tags the events withtenant_id,session_idandturn_id):operationfield (searchoradd), then rethrown, so the model still gets the tool error as before.Ingestion is unchanged; reporting sits in the chat path, not the provider, so ingestion failures aren't reported twice.
How was this tested?
tscfor the server and unit tests; ESLint and Prettier on changed filesChecklist
.env.exampleupdated if configuration or behavior changed (no configuration change)Made with Cursor
Note
Low Risk
Observability-only changes on the chat memory path; timeouts are deliberately excluded from Sentry to avoid noise.
Reviewed by Cursor Bugbot for commit 24f3723. Bugbot is set up for automated code reviews on this repo. Configure here.