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

dcdpr / jp / 26763245628
67%

Build:
DEFAULT BRANCH: main
Ran 01 Jun 2026 03:07PM UTC
Jobs 1
Files 397
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

01 Jun 2026 03:03PM UTC coverage: 66.115% (+0.02%) from 66.093%
26763245628

push

github

web-flow
feat(config, llm): Add stream idle timeout to abort silent connections (#708)

Streaming LLM connections can hang indefinitely if a provider goes
silent mid-response without closing the connection. This adds a
configurable idle timeout that triggers a retryable error when no
activity is received within the specified window.

A new `stream_idle_timeout_secs` field is added to `RequestConfig` with
a default of 60 seconds. Setting it to `0` disables the timeout
entirely. The timer resets on every received item, so only genuinely
silent connections are affected.

When the idle deadline fires, `with_idle_timeout` yields a
`StreamErrorKind::Timeout` error and closes the stream, allowing the
existing retry layer to rebuild and reissue the request. This is
particularly useful for models with long generation pauses (e.g.
deep-research models), where the timeout can be raised to avoid spurious
retries:

```
jp config set assistant.request.stream_idle_timeout_secs 120
```

The implementation wraps any `EventStream` in an `async-stream` loop
that races each `next()` poll against a `tokio::time::timeout`.

Signed-off-by: Jean Mertz <git@jeanmertz.com>

41 of 43 new or added lines in 3 files covered. (95.35%)

32977 of 49878 relevant lines covered (66.12%)

236.78 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
64.97
0.1% crates/jp_cli/src/cmd/query/turn_loop.rs
Jobs
ID Job ID Ran Files Coverage
1 26763245628.1 01 Jun 2026 03:07PM UTC 397
66.12
GitHub Action Run
Source Files on build 26763245628
  • Tree
  • List 397
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26763245628
  • 6fe9d221 on github
  • Prev Build on main (#26762686162)
  • Next Build on main (#26763651976)
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