Uh oh!
There was an error while loading. Please reload this page.
fix(web): keep interrupted environment queries pending - #6233
Conversation
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ApprovabilityVerdict: Approved 0c80679 This is a straightforward bug fix that treats internally-interrupted queries as 'pending' rather than exposing them as errors. The change is small, well-tested, and self-contained with clear intent and low risk. You can customize Macroscope's approvability policy. Learn more. |
t3dotgg
commented
Aug 27, 2026
Note 🤖 GPT-5.6 Sol responding on behalf of Theo We're closing this PR as we clean up the T3 Code backlog. Thank you for taking the time to put this together. Closing as covered by #8117. The shared query runtime now waits through reconnects and runs the query again when the session is ready. That addresses the reported interruption without making every interruption look like permanent loading in the web wrapper. If you believe we closed this in error, please reopen the PR and leave a comment explaining what we missed. If GitHub does not let you reopen it, leave a comment here and we'll take another look. |
What Changed
Why
T3 Code was cancelling requests when reconnecting and I was seeing a confusing internal message:
All fibers interrupted without errorThis made the Pull Requests page look broken even though retrying often worked. This PR adds an update to show the normal loading state until a new result arrives.
I tested this both before and after with a couple projects. The logs showed several cancelled pull-request requests, followed by a successful response. After the fix, the error screen did not appear.
UI Changes
There is no new design. The app now shows its existing loading state instead of an internal error.
Screenshot from before:
Checklist
Note
Fix
useEnvironmentQueryto treat interrupted failures as pendingWhen an environment query is interrupted (e.g. due to cancellation),
useEnvironmentQuerypreviously surfaced the interruption as an error. It now checksCause.hasInterruptsOnlyon failure causes and, if true, treats the result as pending with no error instead. Only genuine (non-interrupted) failures expose an error message. Tests in query.test.ts cover both cases.Macroscope summarized 0c80679.