Skip to content

Conversation

@hanan-nana
Copy link
Collaborator

Summary

Add support for importing chat history from Cursor IDE (VSCode-based app).

Changes

  • New Parser: CursorClientParser to parse Cursor IDE's state.vscdb SQLite files
  • Data Extraction: Support composerData and bubbleId key-based conversation extraction
  • Cross-Platform: Auto-detect paths for macOS, Windows, and Linux
  • Storage Scan: Scan both global and workspace storage directories
  • Provider Integration: Add Provider::CursorClient enum variant
  • CLI Support: retrochat import --provider cursor-client
  • GUI Support: Tauri app import integration
  • Frontend: Add 'Cursor' button to React import dialog

Testing

  • Tested with local Cursor IDE chat history
  • Verified session and message extraction from state.vscdb

Related

Reference: ../cursor-chat-browser for original parsing logic

- Add CursorClientParser to parse state.vscdb SQLite files
- Support composerData and bubbleId key extraction
- Auto-detect macOS/Windows/Linux storage paths
- Scan both global and workspace storage locations
- Add Provider::CursorClient enum variant
- Integrate with CLI import command (--provider cursor-client)
- Add Tauri GUI import support
- Add Cursor button to frontend import dialog
- Use #[derive(Default)] instead of manual impl for StorageMode
- Use next_back() instead of last() for DoubleEndedIterator
- Collapse nested if statements
- Convert extract_text_recursive to associated function
@hanan-nana hanan-nana merged commit 15fd8dc into main Jan 6, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants