Skip to content

fix(memory): skip expired-event rewrite for disabled accounts and memory off - #2848

Merged
jieyuhuayang merged 1 commit into
releasefrom
fix/release-mem063-expired-rewrite-gate
Dec 1, 2026
Merged

jieyuhuayang merged 1 commit into
releasefrom
fix/release-mem063-expired-rewrite-gate

Conversation

@jieyuhuayang

Copy link
Copy Markdown
Collaborator

Cherry-pick of 9faf608 from feat/3.1.0. Fixes MEM-063.

The expired-event rewrite step ran after session consolidation without the MemoryGate check. For a disabled account, or for a user with "my memory" off, it still read the user's items, called the model, and superseded items. Now the step returns before it reads items when the user is missing, disabled, or has memory off.

Test: test/memory/test_consolidator_expired_event.py (7 passed), with new cases for the disabled account and for memory off.

🤖 Generated with Claude Code

…ory off

The expired-event rewrite step ran after session consolidation without the
MemoryGate check. For a disabled account or a user with "my memory" off, it
still read the user's items, called the model, and superseded items.

Now the step stops before it reads items when the user is missing, disabled,
or has memory off. Fixes MEM-063.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 9faf608)
@jieyuhuayang
jieyuhuayang merged commit 50bb038 into release Dec 1, 2026
1 check failed
@jieyuhuayang
jieyuhuayang deleted the fix/release-mem063-expired-rewrite-gate branch December 1, 2026 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant