• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dg / ai-access / 31355232649
93%

Build:
DEFAULT BRANCH: master
Ran 10 Aug 2026 04:21AM UTC
Jobs 1
Files 62
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Aug 2026 04:15AM UTC coverage: 92.061% (+0.03%) from 92.031%
31355232649

push

github

dg
chat: a stream can be cancelled from the loop, not just from a callback

Returning false from the onStream callback already stopped the generation, but a
foreach had no way to say the same thing. Breaking out only pauses: the Fiber
lives on the TextStream rather than in the generator, so the request stays open,
which is exactly what lets a later foreach resume it and getResponse() finish it
without paying twice. Advising unset() instead was a poor substitute, because a
caller cannot know how many references are still held.

cancel() resumes the Fiber with false, which travels back through the emit
callback and aborts the transfer, so the connection closes and the rest of the
answer is neither produced nor billed.

The Fiber's generic types were wrong and PHPStan only noticed once a value other
than null was passed in: resume() takes what suspend() returns, so the order is
Fiber<void, ?bool, Response, string>, not <void, string, Response, string>.

8 of 8 new or added lines in 1 file covered. (100.0%)

2006 of 2179 relevant lines covered (92.06%)

0.92 hits per line

Jobs
ID Job ID Ran Files Coverage
1 31355232649.1 10 Aug 2026 04:21AM UTC 62
92.06
GitHub Action Run
Source Files on build 31355232649
  • Tree
  • List 62
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #31355232649
  • 518daaa9 on github
  • Prev Build on master (#31351356924)
  • Next Build on master (#31430808519)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc