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

christophevg / yoker / 45402874972
84%

Build:
DEFAULT BRANCH: master
Ran 24 Nov 2026 01:24PM UTC
Jobs 1
Files 128
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

24 Nov 2026 01:22PM UTC coverage: 83.938% (+0.002%) from 83.936%
45402874972

push

github

christophevg-agent
fix(backends): per-call ollama clients survive event-loop switches

OllamaBackend held one persistent ollama.AsyncClient (httpx
connection pool) for the agent's lifetime, shared with the web tool
backends. Pooled connections bind to the loop they were created on;
after a loop teardown the pool hands out a dead-loop connection and
requests fail with "RuntimeError: Event loop is closed" in httpcore's
anyio aclose (probed empirically with a real localhost socket).

Clients are now created per call via _build_client() and closed by
`async with` (SDK client exposes close()/async-CM, no aclose());
chat_stream consumes and translates the stream inside the with block.
Web tool backends receive the client factory instead of an instance
and wrap each web_search/web_fetch call the same way. Backend is
stateless between calls — matching the litellm backend's pattern —
and loop-agnostic by construction.

🤖 Implemented together with Yoker.

3742 of 4770 branches covered (78.45%)

Branch coverage included in aggregate %.

11162 of 12986 relevant lines covered (85.95%)

0.86 hits per line

Coverage Regressions

Lines Coverage ∆ File
60
77.62
0.26% yoker/core/__init__.py
10
80.26
0.81% yoker/tools/web/backend.py
3
91.46
0.16% yoker/backends/ollama.py
Jobs
ID Job ID Ran Files Coverage
1 45402874972.1 24 Nov 2026 01:24PM UTC 128
83.94
GitHub Action Run
Source Files on build 45402874972
  • Tree
  • List 128
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #45402874972
  • fa024564 on github
  • Prev Build on master (#45213210436)
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