In agent mode, the model has access to the memory tool, even if memory is disabled

Describe the Bug

In agent mode, the model has access to the memory tool, even if memory is disabled in the settings. The model can both read and create new memory items.

Steps to Reproduce

Disable memory in the settings, ask the model to describe the available memory items and/or create a new one.

Expected Behavior

If memory is disabled, it should not be included in the context, and the model should not have access to the memory tool. This means the model should indicate that it does not have such capabilities, and the context should not be cluttered with unnecessary tools.

Screenshots / Screen Recordings

Operating System

Linux

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.2.4
VSCode Version: 1.99.3
Commit: a8e95743c5268be73767c46944a71f4465d05c90
Date: 2025-07-10T16:59:43.242Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Linux x64 5.15.0-136-generic

Additional Information

By the way, it seems that in custom mode, the model does not have access to update memory, but it can still see existing memory items even if memory is disabled.

Does this stop you from using Cursor

No - Cursor works, but with this issue