Clearing app data loses local tasks and resurrects archived cloud tasks
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 39.9k
- Forks
- 3.4k
- Avg merge
- 6h 51m
- Merged PRs (30d)
- 232
Description
Problem
Clearing application data permanently loses all local tasks, including archived ones, with no way to recover them. Separately, after reinstalling and clearing data again, cloud tasks that were stopped and archived weeks or months ago reappear instead of staying stopped and archived. Reported by Richard.
Expected behavior
- Local tasks, including archived ones, should survive or be recoverable rather than being silently destroyed when application data is cleared.
- Cloud tasks that were previously stopped and archived should keep that state after a data clear or reinstall, not resync as active and unarchived.
Steps to reproduce
- Clear application data (originally done to work around other buggy behavior).
- Observe that all local tasks, including archived ones, are gone.
- Delete and reinstall the app, then clear application data again.
- Observe that cloud tasks that were stopped and archived weeks or months ago reappear.
Possibly related: PostHog/posthog#76218 (archived tasks leaking across accounts after account switch).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file, test, or entry point is named. Start by reproducing the clear-data and reinstall sequence, then locate the local task persistence and cloud resync paths; done means local tasks are recoverable and stopped, archived cloud tasks remain stopped and archived after both operations.
Written by the indexing model from the issue text.
Assessment
- Domain
- data, full-stack
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100