I have a repository that I do a lot of personal work in. Every time I re-open the repository, every conversation I have had in this project loads as a chat tab in the AI Pane in the classic IDE. This doesn’t happen in other repositories, just this one. This is located on my Desktop and syncs to iCloud as well.
Steps to Reproduce
Open my repo: Desktop/myRepo → All history of AI Chats open
Expected Behavior
Open the IDE with only 5 chats max, as set in the settings pane. Or fresh, like other repos.
Hey, thanks for the detailed report. I can see the screenshot with the AI pane and a bunch of tabs open. This is a known bug with restoring chat tab state. The 5-tab limit is only applied when you lower the setting, not when state is restored on startup, so a workspace that has grown a large set of tabs will reopen all of them. I can’t share an ETA for a fix yet.
A couple questions to narrow it down:
Does this happen on every launch, or only sometimes?
If you set the limit to unlimited (or наоборот to 1), then close and reopen Cursor, does the behavior change?
What you can try right now:
Since the bug is tied to one specific workspace, you can reset its stuck state. Close Cursor, then delete this project’s folder in ~/Library/Application Support/Cursor/User/workspaceStorage/<hash>/. Note: this will also delete saved chat history and workspace settings for this project, so only do it if you’re OK losing them.
Your repo is on the Desktop with iCloud sync. Try moving it out of a synced folder (Desktop/Documents). iCloud can move or evict files and mess with workspace state. This helps rule out iCloud as a factor.
Let me know the answers to the questions above. It’ll help narrow down the cause. If I get an update on the fix, I’ll reply in the thread.
Thanks, your answers match what we’re seeing. The fact that the limit only kicks in when you change it set it to unlimited or 1, but it doesn’t get applied during restore on startup is the core of the bug. That’s why on every launch and on Reload Window all tabs come back.
If you don’t want to touch iCloud yet, you’ve got two options:
Quick workaround without losing history: set the limit to 1 or another low number so trim runs and closes the extra tabs. Your chats will still be in history, and you can reopen them from the list.
If you want to fully reset the stuck state for this workspace: close Cursor, then delete the project folder at ~/Library/Application Support/Cursor/User/workspaceStorage/<hash>/. Note this will delete saved chat history and workspace settings for that project, so only do it if you’re OK losing those.
This bug is known and tracked, but I can’t share an ETA yet. I’ll post an update in the thread as soon as I have one.
Yeah, the limit resetting after a restart is part of the same bug. The value only gets applied when you change it, and it doesn’t get applied again during restore on startup. So setting it to 1 doesn’t survive a restart, and you have to set it again every time. I agree, it’s annoying.
If you want to avoid doing it manually, there are two more stable options:
Fully reset the stuck state for that workspace: quit Cursor and delete the project folder at ~/Library/Application Support/Cursor/User/workspaceStorage/<hash>/. Note: this will delete saved chat history and workspace settings for that project, so only do this if you’re OK losing them.
Move the repo out of an iCloud-synced folder like Desktop or Documents. iCloud can move or offload files and break workspace state, which might be making it worse in your case since the bug only shows up for that one repo.
The bug is known and being tracked, but I can’t share an ETA for a fix yet. If there’s an update, I’ll reply in the thread.