Skip to content

fix(code): hydrate cloud runs after renderer reload#1631

Merged
tatoalo merged 1 commit intomainfrom
feat/cloud-agent/cloud-runs-reconnect-hotfix
Apr 14, 2026
Merged

fix(code): hydrate cloud runs after renderer reload#1631
tatoalo merged 1 commit intomainfrom
feat/cloud-agent/cloud-runs-reconnect-hotfix

Conversation

@tatoalo
Copy link
Copy Markdown
Contributor

@tatoalo tatoalo commented Apr 14, 2026

Problem

reloading PostHog Code during an active cloud run could leave the chat view stuck on an infinite spinner (🧵 thread)

The main-process cloud watcher survives the reload, but the fresh renderer store starts empty. On reconnect, the renderer could reattach to the existing watcher without rebuilding the session from persisted logs, leaving the session with no events and no processed log count. We need to hydrate ✨

Changes

Hydrate cloud sessions from persisted logs when reconnecting after a reload and the renderer does not yet have processed cloud history. Also added some regression coverage.

@tatoalo tatoalo self-assigned this Apr 14, 2026
@tatoalo tatoalo requested review from a team April 14, 2026 09:29
@tatoalo tatoalo enabled auto-merge (squash) April 14, 2026 09:39
@tatoalo tatoalo merged commit 6a13d32 into main Apr 14, 2026
15 checks passed
@tatoalo tatoalo deleted the feat/cloud-agent/cloud-runs-reconnect-hotfix branch April 14, 2026 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants