A bug on cursor agent CLI

Where does the bug appear (feature/product)?

Cursor CLI

Describe the Bug

I noticed on two completely different chat sessions the previous sent chat message history in the input section gets mixed up all together, when i click arrow up to see the last sent message from one chat i see the exact message i just sent on the other chat whch is running in a different project and a different terminal session.

Steps to Reproduce

Start an agent session in the terminal send a message a, open another terminal start agent session just click arrow up now you will see the previous message u just sent from the other terminal agent session instead of it being completely isolated and each chat having its own history

Expected Behavior

each chat messages history is meant to be isolated and have its own chat history and when i send a message in a chat i expect only those messages to be in its “previously sent” history, is this a feature?? if it is please share anywhere in the config that i can turn this off

Screenshots / Screen Recordings

then opening a seperate terminal and just click Arrow key Up; this happens eevn if chat session has been on going and i just opened a new one and send a bunch of messages, when i come back to the existing chat history and click up i see the exact message from the new agent session

Operating System

Linux

Version Information

About Cursor CLI

CLI Version 2026.05.24-dda726e
Model Composer 2.5 Fast
Subscription Tier Pro
OS linux (x64)
Terminal vscode
Shell bash

For AI issues: which model did you use?

Composer 2.5 Fast

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the detailed report. This isn’t a bug, it’s the current behavior by design. Prompt history in the CLI arrow-up is stored in one global file and shared across all cursor-agent sessions, similar to how shell history works in bash or zsh. It’s one MRU list per user, not tied to a project or a session.

If you want to view or clear the file:

  • Linux: ~/.config/cursor/prompt_history.json (or $XDG_CONFIG_HOME/cursor/prompt_history.json)
  • macOS: ~/.cursor/prompt_history.json
  • Windows: %APPDATA%\Cursor\prompt_history.json

There’s no option yet to disable it or keep it per-session. If isolation per-project or per-session matters to you, please file a feature request in Feature Requests. I’ll pass it to the CLI team as a signal. I’ll also attach your report to our internal thread about improving CLI navigation.

Thanks, i have dropped a Feature Request report