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

dcdpr / jp / 29023037975
69%

Build:
DEFAULT BRANCH: main
Ran 09 Jul 2026 01:54PM UTC
Jobs 1
Files 434
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

09 Jul 2026 01:52PM UTC coverage: 68.695% (+0.3%) from 68.346%
29023037975

push

github

web-flow
fix(cli, conversation): Defer replay trim to turn-start commit (#862)

`jp query --replay` and the bare `--no-edit` replay-last-request path
used to remove the trailing request event from the conversation stream
while the request was still being built — during editor composition, MCP
boot, or attachment loading. An interrupt or an empty query in that
window persisted the removal without ever writing the replacement,
silently dropping the last turn.

The removal is now described by a `PendingStreamTrim` and only applied
inside the same lock scope that appends the new turn, so the stream goes
from "old turn present" to "old turn replaced" in one write. Building
the request is otherwise read-only: `ConversationStream` gains
`last_turn_event` to peek at the trailing event without popping it, and
`ConversationLock`/`ConversationMut` gain `with_events` for read-only
access that never marks the conversation dirty.

Inline, piped, and replayed queries now also write their composed
request to the conversation's recovery file before the turn starts,
matching the existing editor-session behavior: an interrupt during MCP
boot or model resolution no longer discards the request, and the next
`jp query --edit` seeds its buffer from it. The file is still removed
once the turn completes successfully.

The `--cfg` config delta is now recorded only after the empty-query
check, so a query that turns out empty no longer leaves a stray config
event in the stream.

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

76 of 89 new or added lines in 4 files covered. (85.39%)

15 existing lines in 4 files now uncovered.

39558 of 57585 relevant lines covered (68.69%)

650.49 hits per line

Uncovered Changes

Lines Coverage ∆ File
9
59.38
16.59% crates/jp_cli/src/cmd/query.rs
4
81.54
-2.07% crates/jp_workspace/src/conversation_lock.rs

Coverage Regressions

Lines Coverage ∆ File
6
33.01
1.35% crates/jp_cli/src/cmd.rs
3
39.41
-0.4% crates/jp_cli/src/lib.rs
3
85.25
-0.39% crates/jp_conversation/src/stream.rs
3
4.17
-4.17% crates/jp_task/src/handler.rs
Jobs
ID Job ID Ran Files Coverage
1 29023037975.1 09 Jul 2026 01:54PM UTC 434
68.69
GitHub Action Run
Source Files on build 29023037975
  • Tree
  • List 434
  • Changed 12
  • Source Changed 4
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29023037975
  • 092f28b2 on github
  • Prev Build on main (#29003970314)
  • Next Build on main (#29043113710)
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