What Changed#
- Prevent cancelled requests from appearing as errors.
- Keep showing real errors when something actually goes wrong.
- Add tests for both cases.
Why#
T3 Code was cancelling requests when reconnecting and I was seeing a confusing internal message:
All fibers interrupted without error
This 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 useEnvironmentQuery to treat interrupted failures as pending#
When an environment query is interrupted (e.g. due to cancellation), useEnvironmentQuery previously surfaced the interruption as an error. It now checks Cause.hasInterruptsOnly on 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.
Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
1f85e22c-003e-4a81-9261-2d23e4e6b638You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.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.
❤️ Share