Repository navigation
Conversation
unlinkRelayEnvironment (the relay half of `t3 connect disconnect`) ran the DELETE to the relay with no deadline, while the sibling live-server unlink step was already bounded by CLOUD_CLI_LIVE_SERVER_TIMEOUT (5s). A wedged relay hung the whole disconnect command forever -- and the local cleanup (clearPersistedCloudLink, credential clear) never ran, since it sits after the unbounded Effect.exit(unlinkRelayEnvironment()). Mirrors the sibling exactly: Effect.timeout(CLOUD_CLI_LIVE_SERVER_TIMEOUT) right after httpClient.execute. The caller already absorbs failure via Effect.exit and reports it through reportCloudDisconnectResults. New test stalls the HttpClient under TestClock: the stalled unlink now fails with TimeoutError after 5s instead of hanging. AI-assisted: authored with AI assistance (Muse, Meta's Muse Spark) under the contributor's direction.
This was referenced Oct 16, 2026
This branch has not been deployed
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.
What Changed
unlinkRelayEnvironment(the relay half oft3 connect disconnect) now has a 5s deadline (CLOUD_CLI_LIVE_SERVER_TIMEOUT), applied right afterhttpClient.executeinapps/server/src/cli/connect.ts.Why
The relay DELETE ran with no deadline, while the sibling live-server unlink step was already bounded by the same 5s timeout. A wedged relay hung the entire
t3 connect disconnectcommand forever -- and the local cleanup (clearPersistedCloudLink, credential clear) sits after the unboundedEffect.exit(unlinkRelayEnvironment()), so it never ran either. The caller already absorbs failure throughreportCloudDisconnectResults, which logs the cause and tells the user to retry.Validation
connect.test.tsstalls theHttpClientunderTestClock: the stalled unlink now fails withTimeoutErrorafter 5s. 8/8 tests green.vp fmt --checkclean;tsc --noEmitreports no errors in the touched files.Checklist
AI-assisted: authored with AI assistance (Muse, Meta's Muse Spark) under the contributor's direction.