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

lsm / neokai / 27651318130 / 22
82%
dev: 82%

Build:
DEFAULT BRANCH: dev
Ran 16 Jun 2026 10:10PM UTC
Files 351
Run time 18s
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

16 Jun 2026 10:07PM UTC coverage: 18.426% (-0.001%) from 18.427%
27651318130.22

push

github

web-flow
fix(openai-chat-bridge): guard catch-block send() against closed controller (#2118)

streamChatToAnthropic's catch block called `send(errorSSE(...))` and
`send(messageStopSSE())` unconditionally. `send` does
`controller.enqueue(...)`, which throws `TypeError: Invalid state:
Controller is already closed` when the readable side has already been
torn down (client disconnect, or upstream returning data that closed
the stream before the error surfaced). That secondary TypeError
escaped the catch block and crashed the daemon.

The adjacent `finally { controller.close() }` already had this guard.
Mirror it on the catch-block sends so the daemon logs the upstream
error without dying.

Adds a regression test that closes the controller up front and feeds
an upstream stream that errors, then asserts `streamChatToAnthropic`
resolves instead of throwing.

19425 of 105424 relevant lines covered (18.43%)

9.67 hits per line

Source Files on job daemon-online-git - 27651318130.22
  • Tree
  • List 351
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 27651318130
  • ddf0870b on github
  • Prev Job for on dev (#27594896976.7)
  • Next Job for on dev (#27651591059.16)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc