You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cursor history storage: sources, resolution rules, and operation boundaries
#39
GitHub Discussion: How Cursor local history evolved and why cursor-history reads multiple sources
This discussion documents the compatibility model behind cursor-history in user-facing terms.
TL;DR
Cursor local history can currently involve three broad source families:
1. Composer / IDE SQLite
workspaceStorage/*/state.vscdb
globalStorage/state.vscdb
2. Agent transcripts
~/.cursor/projects/**/agent-transcripts/**/*.jsonl
3. Store / CLI / ACP
~/.cursor/chats/**/store.db
~/.cursor/acp-sessions/**/store.db
The project does not assume these sources are field-equivalent.
Why multiple sources exist
Cursor's storage changed over time, including a Cursor 3.x shift toward a more centralized IDE chat index. Separately, the Agent CLI / ACP stack uses its own local session storage.
Cursor staff have confirmed that local IDE and CLI / ACP sessions still do not share one stable local session ID.
Resolution policy
cursor-history aims to:
discover supported sources
bind each source to the correct workspace/session scope
deduplicate representations of the same logical session
prefer the richest authoritative source available
use transcripts as fallback where appropriate
preserve provenance for fields that are stored vs inferred
This is deliberately stricter than concatenating every file that looks like a transcript.
Why provenance matters
A JSONL transcript may contain the conversational backbone but omit metadata such as per-message timestamps, token counts, model information, or tool returns.
Consumers should be able to distinguish a complete database-backed view from a fallback transcript-backed view.
User-facing goal
Despite all of the above, the user should be able to write:
cursor-history search "authentication"
and not care which Cursor release or surface created the result.
If you have a real Cursor layout that is not discovered correctly, please include:
OS / WSL status
Cursor version
Agent CLI version if relevant
redacted directory layout
whether the session appears in IDE, CLI agent ls, or both
That evidence is much more useful than a screenshot of an empty sidebar.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
GitHub Discussion: How Cursor local history evolved and why cursor-history reads multiple sources
This discussion documents the compatibility model behind
cursor-historyin user-facing terms.TL;DR
Cursor local history can currently involve three broad source families:
The project does not assume these sources are field-equivalent.
Why multiple sources exist
Cursor's storage changed over time, including a Cursor 3.x shift toward a more centralized IDE chat index. Separately, the Agent CLI / ACP stack uses its own local session storage.
Cursor staff have confirmed that local IDE and CLI / ACP sessions still do not share one stable local session ID.
Resolution policy
cursor-historyaims to:This is deliberately stricter than concatenating every file that looks like a transcript.
Why provenance matters
A JSONL transcript may contain the conversational backbone but omit metadata such as per-message timestamps, token counts, model information, or tool returns.
Consumers should be able to distinguish a complete database-backed view from a fallback transcript-backed view.
User-facing goal
Despite all of the above, the user should be able to write:
cursor-history search "authentication"and not care which Cursor release or surface created the result.
If you have a real Cursor layout that is not discovered correctly, please include:
agent ls, or bothThat evidence is much more useful than a screenshot of an empty sidebar.
All reactions