Skip to content

trunk-merge/pr-4052/3355eff6-05ff-4471-9628-44943908ca29 - #4057

Closed
trunk-io[bot] wants to merge 4 commits into
mainfrom
trunk-merge/pr-4052/3355eff6-05ff-4471-9628-44943908ca29
Closed

trunk-merge/pr-4052/3355eff6-05ff-4471-9628-44943908ca29#4057
trunk-io[bot] wants to merge 4 commits into
mainfrom
trunk-merge/pr-4052/3355eff6-05ff-4471-9628-44943908ca29

Conversation

@trunk-io

@trunk-io trunk-io Bot commented Jul 31, 2026

Copy link
Copy Markdown
Trunk Merge Pull Request Banner

This pull request was created and is being managed by Trunk Merge.

This pull request is based on the main branch at SHA 436326e55e3ae67e03583fa06454f24e2856dab9.

See more details here.

When CI completes, this pull request will be closed automatically.

Pull Requests Being Tested

This pull request is testing the changes from pull request 4052.

posthog Bot and others added 4 commits July 31, 2026 15:22
…t instead of hanging

The stream-read loop in `cloud-task-engine.ts` awaited `reader.read()` with no idle deadline. A half-open socket (laptop sleep, unplugged NIC, NAT rebind) never throws and never EOFs, so the read just hangs forever — the watcher stays "connected" and never reaches the existing reconnect/backoff/error machinery. The only way out was force-quitting the app.

This adds an idle watchdog that re-arms on every byte received (data or keepalive) and aborts the connection if the stream goes fully silent for 90s (a few keepalive intervals). The abort now flows into the existing reconnect logic instead of being treated as an intentional cancel, and a new `Cloud stream idle timeout` analytics event makes this failure mode visible for the first time.

Generated-By: PostHog Code
Task-Id: 2fd7edf4-3fde-47ab-b7e5-3564b2f6b246
Generated-By: PostHog Code
Task-Id: 92b56d91-0d15-416f-8ab9-2b32e3cb3e34
Generated-By: PostHog Code
Task-Id: 92b56d91-0d15-416f-8ab9-2b32e3cb3e34
@github-actions

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit 089ceaf.

@trunk-io trunk-io Bot closed this Jul 31, 2026
@trunk-io
trunk-io Bot deleted the trunk-merge/pr-4052/3355eff6-05ff-4471-9628-44943908ca29 branch July 31, 2026 16:30
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.

1 participant