When I asked AI how to switch to another Chat or Edit and keeping the previous chatting history.
Surprisedly, It gave me some Cursor commands (list below)
It’s intersting. Is that true ? Have anyone tried or heard of that ?
After I tried, sometimes it works, sometimes doesn’t.
-
/export_chat <file_name> supposedly will export files to .cursor/exports (have to create exports manually), but it doesn’t work.
-
/export_report, /import_report only works for Agent mode.
Below are the answers from AI
======
Cursor Commands List
Note: It’s answered by Cursor AI, not sure it’s true or not
Command Description
/csave <session_name> Saves the current chat session with the specified name.
/clist Lists all saved chat sessions along with their descriptions.
/cload <session_name> Loads a previously saved session by its name.
/dlist Lists all available documents or files related to the current project.
/export_chat <file_name> Exports the current chat session to a JSON file with the specified name.
/import_chat <file_name> Imports a chat session from a specified JSON file.
/export_report <file_name> Exports a report of the current session or analysis to a specified Markdown file.
/import_report <file_name> Imports a report from a specified Markdown file into the current session.
/checkpoint <checkpoint_name> Creates a checkpoint of the current session with the specified name for future reference.
/sync_sessions <on/off> Enables or disables synchronization of sessions across devices.
/clear_all_sessions Clears all saved sessions from the storage.
/exit Exits the current session or mode.
For example:
In Chat/Edit mode:
-
in Chat window A
/csave mychat1
(you can name any session name you like, mychat1, mychat2 …) -
switch to Chat B
/cload mychat1
It will load the previous chatting history from Chat window A
- list all the session
/clist
But it works only between Chat/Edit mode, not Agent mode.
Additional Notes
- Session Management: Use /csave to save your progress frequently, especially before making significant changes.
- Import/Export: Use /export_chat to back up your conversations and /import_chat to restore them when needed.
- Checkpoints: Utilize /checkpoint to create restore points during critical phases of your project.
- Synchronization: The /sync_sessions command helps maintain consistency across different devices.
Key Features:
-
Session Persistence
Sessions auto-save every 30 minutes
Saved sessions expire after 7 days -
Cross-mode Workflow
- In Ask mode
/csave partial_discussion - Switch to Edit mode
/cload partial_discussion
-
Team Collaboration
Share .cursor/sessions/[session_name].csession files with teammates -
Multi-tasking
Maintain different contexts for various features using separate sessions
Would you like me to explain any specific command in more detail?
======