docs/troubleshooting/task-history-recovery.mdx
Sometimes when you update Cline or when certain settings change, you might lose access to your previous tasks. This guide will help you recover and reconstruct your Cline task history, so you can regain access to your important conversations and work.
<Tip> Most cases are solved by running the built-in recovery command. </Tip>For VS Code Insiders, replace Code with Code - Insiders. For JetBrains IDEs, replace <IDE> with your specific IDE name (e.g., IntelliJIdea2023.3, PyCharm2023.3, WebStorm2023.3).
saoudrizwan.claude-dev/
├── state/
│ ├── taskHistory.json # Main history index
│ └── taskHistory.backup.*.json # Backups
├── tasks/
│ └── <task-id>/ # Individual task data
│ ├── api_conversation_history.json
│ ├── ui_messages.json
│ └── task_metadata.json
└── checkpoints/
└── <workspace-hash>/ # Per-workspace checkpoint storage
└── .git/ # Shadow Git repository for snapshots
The taskHistory.json file is just an index. The actual conversation data lives in individual task folders under tasks/.
The recovery command scans all task folders and rebuilds the history index from scratch.
What it does:
taskHistory.jsontasks/ directorytaskHistory.jsongraph LR
A[Backup current] --> B[Scan tasks/]
B --> C[Read each task]
C --> D[Rebuild index]
D --> E[Done]
Cline creates backups automatically. Find them in the state/ folder:
# Pick the most recent one and restore it
cp taskHistory.backup.1234567890.json taskHistory.json
```
</Tab>
<Tab title="JetBrains">
```bash
# macOS
cd ~/Library/Application\ Support/JetBrains/<IDE>/globalStorage/saoudrizwan.claude-dev/state/
ls taskHistory.backup.*.json
# Pick the most recent one and restore it
cp taskHistory.backup.1234567890.json taskHistory.json
```
</Tab>
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.
<Steps> <Step title="Locate and copy your Cline data"> On your **old machine**, find the `saoudrizwan.claude-dev` folder using the [storage paths above](#storage-paths) and copy the entire folder. </Step> <Step title="Set up your new machine"> On your **new machine**, install your IDE (VS Code or JetBrains) and the Cline extension. </Step> <Step title="Close your IDE"> Make sure your IDE is completely closed before proceeding. </Step> <Step title="Transfer your data"> Paste the `saoudrizwan.claude-dev` folder to the same storage path on your new machine. </Step> <Step title="Launch and verify"> Open your IDE. Your task history should now appear in Cline. </Step> </Steps> <Info> The data format is the same across operating systems-cross-platform migration (e.g., Windows → macOS) works without any additional steps. </Info>Here are some common issues and their solutions:
Run "Cline: Reconstruct Task History" from the command palette. If that doesn't work, check if there's a backup file to restore.
VS Code usually keeps extension data when uninstalled. Simply reinstall Cline and run the recovery command.
This occurs when the tasks/ folder is empty or missing. Common causes:
Check the correct storage path for your IDE and verify the folder exists.
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.
If you need assistance, you can:
When reporting an issue, please include:
api_conversation_history.json, ui_messages.json, task_metadata.json) to help us understand what went wrong