Quick Recovery
1
Open Command Palette
Press
Cmd/Ctrl + Shift + P to open the Command Palette.2
Run the recovery command
Type “Cline: Reconstruct Task History” and select it.
3
Confirm the action
A confirmation prompt will appear. Click Yes to proceed.
4
Wait for reconstruction
Cline will scan your task folders and rebuild the history index.
5
Verify recovery
Check your history panel to confirm your tasks have been restored.
Where Cline Stores Data
Storage Paths
- VS Code
- JetBrains
Code with Code - Insiders. For JetBrains IDEs, replace <IDE> with your specific IDE name (e.g., IntelliJIdea2023.3, PyCharm2023.3, WebStorm2023.3).
Directory Structure
taskHistory.json file is just an index. The actual conversation data lives in individual task folders under tasks/.
Using the Recovery Command
The recovery command scans all task folders and rebuilds the history index from scratch. What it does:- Backs up your current
taskHistory.json - Scans the
tasks/directory - Reads conversation data from each task folder
- Recalculates token usage and costs
- Creates a new
taskHistory.json
Manual Recovery
Restoring from Backup
Cline creates backups automatically. Find them in thestate/ folder:
- VS Code
- JetBrains
Migrating to a New Machine
Switching to a new computer? You can bring all your Cline conversations with you. The process is the same whether you’re using VS Code or a JetBrains IDE.1
Locate and copy your Cline data
On your old machine, find the
saoudrizwan.claude-dev folder using the storage paths above and copy the entire folder.2
Set up your new machine
On your new machine, install your IDE (VS Code or JetBrains) and the Cline extension.
3
Close your IDE
Make sure your IDE is completely closed before proceeding.
4
Transfer your data
Paste the
saoudrizwan.claude-dev folder to the same storage path on your new machine.5
Launch and verify
Open your IDE. Your task history should now appear in Cline.
The data format is the same across operating systems—cross-platform migration (e.g., Windows → macOS) works without any additional steps.
Common Problems
Here are some common issues and their solutions:History empty after VS Code update
Run “Cline: Reconstruct Task History” from the command palette. If that doesn’t work, check if there’s a backup file to restore.History lost after reinstalling VS Code
VS Code usually keeps extension data when uninstalled. Simply reinstall Cline and run the recovery command.”No tasks found” error
This occurs when thetasks/ folder is empty or missing. Common causes:
- VS Code data was completely cleared
- You’re looking at the wrong VS Code installation (standard vs Insiders)
- The folder was manually deleted
Recovery runs but some tasks missing
Corrupted task folders get skipped during recovery. The command will show how many tasks were recovered vs skipped. Check the error messages for details about which tasks couldn’t be restored.Need Additional Help?
If you need assistance, you can:- Open a GitHub issue at cline/cline
- Ask for help on our Discord server - join our community for faster support
- Your OS and IDE (VS Code or JetBrains IDE name/version)
- Cline version
- What happened before the data loss
- Any error messages
- Task export data: Include the relevant JSON files from the affected task folder (e.g.,
api_conversation_history.json,ui_messages.json,task_metadata.json) to help us understand what went wrong

