PostHog / PostHog/posthog

Clearing app data loses local tasks and resurrects archived cloud tasks

Open
#76,216 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug feature/desktop
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
  1. Clear application data (originally done to work around other buggy behavior).
  2. Observe that all local tasks, including archived ones, are gone.
  3. Delete and reinstall the app, then clear application data again.
  4. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.