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

dcdpr / jp / 26823662050
67%

Build:
DEFAULT BRANCH: main
Ran 02 Jun 2026 01:43PM UTC
Jobs 1
Files 398
Run time 2min
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

02 Jun 2026 01:41PM UTC coverage: 66.522% (+0.008%) from 66.514%
26823662050

push

github

web-flow
fix(llm, cli): Preserve partial reasoning on stream interrupt (#725)

`peek_partial_content()` in `EventBuilder` only collected message text
from unflushed buffers, silently dropping any accumulated reasoning.
When a user interrupted mid-reasoning (or a retry fired before the first
flush), the partial reasoning was lost: the model resumed with no record
of the thinking it had started, and the user's interjection landed
against reasoning the model no longer had in context.

Replace `peek_partial_content() -> Option<String>` with
`peek_partial_events() -> Vec<ChatResponse>`. The new method returns
each non-empty buffer as its correctly-typed response — reasoning as
`ChatResponse::Reasoning`, message text as `ChatResponse::Message` — in
stream-index order. Tool-call and structured buffers are still excluded
(a partial tool call would orphan a `tool_use`, and partial JSON is not
a usable resume point).

All interrupt paths in `TurnCoordinator` (`handle_quit`,
`handle_streaming_interrupt` for Stop/Continue/Reply) and the retry
handler in `stream/retry.rs` now iterate over the returned events and
commit each one individually, so reasoning stays reasoning rather than
being folded into the assistant's answer text.

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

28 of 32 new or added lines in 3 files covered. (87.5%)

3 existing lines in 1 file now uncovered.

33426 of 50248 relevant lines covered (66.52%)

236.83 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
88.69
1.36% crates/jp_cli/src/cmd/query/turn/coordinator.rs

Coverage Regressions

Lines Coverage ∆ File
3
88.69
1.36% crates/jp_cli/src/cmd/query/turn/coordinator.rs
Jobs
ID Job ID Ran Files Coverage
1 26823662050.1 02 Jun 2026 01:43PM UTC 398
66.52
GitHub Action Run
Source Files on build 26823662050
  • Tree
  • List 398
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26823662050
  • cb718f9e on github
  • Prev Build on main (#26820120612)
  • Next Build on main (#26823766128)
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