PostHog / PostHog/posthog

Local tasks break but appear to keep running when laptop sleeps

Open
#76,212 0 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

When the laptop is put to sleep while a task is running in local mode, the task ends up in a broken state. The UI still shows it as actively working, so there is no visible indication that it has actually stalled or failed.

Expected behavior

A local task interrupted by the host going to sleep should either resume cleanly on wake or surface a clear interrupted/failed state. It should not stay stuck looking like it is still working when it is not.

Steps to reproduce
  1. Start a task in local mode.
  2. While it is working, put the laptop to sleep.
  3. Reopen the laptop.
  4. The task is in a broken state but the UI still shows it as running.

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

Start by tracing the local-mode task lifecycle and the UI status update around host sleep and wake; the issue names no files or tests. Reproduce the sleep-and-wake sequence, then verify that the task either resumes or displays an interrupted or failed state instead of remaining marked as running.

Written by the indexing model from the issue text.

Assessment

Domain
full-stack
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.