Quick recovery
1
Open the Command Palette
Press
Cmd/Ctrl + Shift + P.2
Run the recovery command
Type Cline: Reconstruct Task History and select it.The VS Code command ID is
cline.reconstructTaskHistory.3
Confirm the action
A confirmation prompt will appear. Click Yes to proceed.
4
Wait for reconstruction
Cline scans your task folders and rebuilds the history index. This may take a moment depending on how many tasks you have.
5
Verify recovery
Check the history panel to confirm your tasks have been restored.
Where Cline stores data
Cline stores task history in VS Code’sglobalStorage directory, keyed to the extension ID saoudrizwan.claude-dev.
Storage paths
- VS Code
- JetBrains
Code with Code - Insiders.Directory structure
taskHistory.json file is an index. The actual conversation data lives in individual folders under tasks/. This means the index can be rebuilt even if it becomes corrupted or out of date.
How the recovery command works
Thecline.reconstructTaskHistory command rebuilds the history index from scratch without deleting any task data:
- Backs up the current
taskHistory.json. - Scans the
tasks/directory for all task folders. - Reads conversation data from each task folder.
- Recalculates token usage and costs.
- Writes a new
taskHistory.json.
Manual recovery
Restoring from a backup
Cline automatically creates backup files in thestate/ folder. To restore from one:
- VS Code (macOS/Linux)
- JetBrains (macOS)
Migrating to a new machine
You can transfer all your Cline conversations to a new computer by copying the storage folder.1
Locate your Cline data on the old machine
Find the
saoudrizwan.claude-dev folder using the storage paths above.2
Copy the folder
Copy the entire
saoudrizwan.claude-dev folder to an external drive or transfer method of your choice.3
Set up your new machine
Install your IDE (VS Code or JetBrains) and the Cline extension.
4
Close your IDE
Make sure the IDE is fully closed before proceeding.
5
Paste the data folder
Place the copied
saoudrizwan.claude-dev folder at the same storage path on your new machine.6
Launch and verify
Open your IDE. Your task history should appear in Cline.
Task data uses the same format across operating systems. Cross-platform migration (for example, Windows to macOS) works without any additional steps.
Common problems
History is empty after a VS Code update
History is empty after a VS Code update
Run Cline: Reconstruct Task History from the Command Palette. If that doesn’t work, check the
state/ folder for a backup file and restore it manually.History lost after reinstalling VS Code
History lost after reinstalling VS Code
VS Code typically preserves extension data when uninstalled. Reinstall Cline and run the recovery command. If the data is gone, check whether you have a backup from before the reinstall.
"No tasks found" error
"No tasks found" error
This error occurs when the
tasks/ folder is empty or missing. Common causes:- VS Code extension data was completely cleared.
- You are using VS Code Insiders but looking in the standard VS Code storage path (or vice versa).
- The
tasks/folder was manually deleted.
Recovery ran but some tasks are still missing
Recovery ran but some tasks are still missing
Task folders that are corrupted or unreadable are skipped during reconstruction. The command reports how many tasks were recovered and how many were skipped. Review any error messages for details about which task folders could not be read.
Getting additional help
If recovery does not resolve your issue:- Open a GitHub issue
- Ask in the Cline Discord community
- Your OS and IDE name and version
- Cline version
- What happened before the data loss
- Any error messages shown
- Relevant JSON files from the affected task folder (
api_conversation_history.json,ui_messages.json,task_metadata.json)