fix(channels/connect): remove 5-min CONNECT_TIMEOUT, poll until Ctrl+C (AIT-334) - #43
Merged
Merged
Conversation
…C (AIT-334) - pollForNewChannels no longer rejects after 5 minutes: real Meta OAuth (login + 2FA + permission screens) routinely exceeds it, and the timeout reported failure to users whose connect then succeeded (HOOKMYAPP-CLI-15). - onStillWaiting hook fires every 30s so the open-ended wait stays visible; runChannelsConnect prints elapsed minutes + Ctrl+C hint. - Up-front notice when the workspace already has a connected channel of the requested type: the poll only reports NEW connections, so a re-run on an already-connected workspace previously hit a guaranteed timeout with no clue the connect had already succeeded.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthrough
ChangesChannel connection polling
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
ord669
added a commit
that referenced
this pull request
Aug 12, 2026
…C (AIT-334) (#43) - pollForNewChannels no longer rejects after 5 minutes: real Meta OAuth (login + 2FA + permission screens) routinely exceeds it, and the timeout reported failure to users whose connect then succeeded (HOOKMYAPP-CLI-15). - onStillWaiting hook fires every 30s so the open-ended wait stays visible; runChannelsConnect prints elapsed minutes + Ctrl+C hint. - Up-front notice when the workspace already has a connected channel of the requested type: the poll only reports NEW connections, so a re-run on an already-connected workspace previously hit a guaranteed timeout with no clue the connect had already succeeded.
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.
Fixes AIT-334.
Problem
channels connectgave up after a hard 5-minute poll timeout. Sentry HOOKMYAPP-CLI-15 hit 5 new users on 2026-08-04: two had OAuth complete 8–11 min after poll start (CLI reported failure, connect then succeeded), two re-ran connect when the channel already existed (snapshot-diff poll can never satisfy → guaranteed timeout), one abandoned.Change
Still waiting (N min)hint prints every 30s so the wait is visibly alive.Tests
Summary by CodeRabbit
New Features
Bug Fixes