# A bug on cursor agent CLI

**URL:** <https://forum.cursor.com/t/a-bug-on-cursor-agent-cli/161598>\
**Category:** Bug Reports\
**Tags:** cli, chat\
**Created:** [May 26, 2026, 10:12am UTC](https://forum.cursor.com/t/a-bug-on-cursor-agent-cli/161598 "2026-05-26T10:12:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ableez](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/ableez/32/13365_2.png) [@Ableez](https://forum.cursor.com/u/Ableez)\
**Post date:** [May 26, 2026, 10:12am UTC](https://forum.cursor.com/t/a-bug-on-cursor-agent-cli/161598/1 "2026-05-26T10:12:34Z")

</div>

### 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

 ![Screenshot 2026-05-26 110839.png](https://us1.discourse-cdn.com/cursor1/original/3X/e/8/e89c27a3983a1a1099c379c214123de785f81ea5.png)

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

 ![Screenshot 2026-05-26 110912](https://us1.discourse-cdn.com/cursor1/original/3X/e/7/e7d68b4db7b485f674891d804921a6f93e775ac0.png)

### 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

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [May 26, 2026, 10:28am UTC](https://forum.cursor.com/t/a-bug-on-cursor-agent-cli/161598/5 "2026-05-26T10:28:31Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Ableez](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/ableez/32/13365_2.png) [@Ableez](https://forum.cursor.com/u/Ableez)\
**Post date:** [May 26, 2026, 10:59am UTC](https://forum.cursor.com/t/a-bug-on-cursor-agent-cli/161598/6 "2026-05-26T10:59:05Z")

</div>

Thanks, i have dropped a Feature Request report

> [@Separate per-chat message history for the agent CLI](https://forum.cursor.com/t/separate-per-chat-message-history-for-the-agent-cli/161600):
>
> Feature request for product/service Cursor CLI Describe the request Would appreciate a per chat/agent session chat message history, instead of the currently unified history where all agent sessions/chats regardless of project/terminal session gets the same previously sent messages in the input when u try to use arrow up or down to see previous messages Screenshot / Screen Recording Operating System (if it applies) Linux

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [June 25, 2026, 10:59am UTC](https://forum.cursor.com/t/a-bug-on-cursor-agent-cli/161598/7 "2026-06-25T10:59:37Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
