trunk-merge/pr-4052/3355eff6-05ff-4471-9628-44943908ca29 - #4057
Closed
trunk-io[bot] wants to merge 4 commits into
Closed
trunk-merge/pr-4052/3355eff6-05ff-4471-9628-44943908ca29#4057trunk-io[bot] wants to merge 4 commits into
trunk-io[bot] wants to merge 4 commits into
Conversation
…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
|
React Doctor found no issues in the changed files. 🎉 Reviewed by React Doctor for commit |
trunk-io
Bot
deleted the
trunk-merge/pr-4052/3355eff6-05ff-4471-9628-44943908ca29
branch
July 31, 2026 16:30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.