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

dcdpr / jp / 19034261978
58%

Build:
DEFAULT BRANCH: main
Ran 03 Nov 2025 12:15PM UTC
Jobs 1
Files 153
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

03 Nov 2025 12:12PM UTC coverage: 48.957% (+0.9%) from 48.069%
19034261978

push

github

web-flow
feat(cli, editor): Allow editing configuration in query editor (#310)

Users can now modify the active configuration directly within the
`QUERY_MESSAGE.md` editor when using `jp query`. The editor displays a
subset of the current configuration in a TOML code block below a cut
marker, which can be edited (and amended) before submitting the query.
Invalid configuration will cause the editor to reopen with an error
message, allowing immediate correction.

Currently, the configuration section shows the model ID and reasoning
parameters, but any valid configuration properties can be set in this
code block. Changes made in the editor are merged with the existing
configuration and stored with the conversation message, eliminating the
need to close the editor and restart with different CLI arguments.

The editor also shows an improved conversation history section with
timestamps, model information, and properly formatted markdown for
assistant responses including reasoning content when available.

Implementation adds a new `QueryDocument` parser in
`crates/jp_cli/src/editor/parser.rs` that handles the structured format
of the query file, separating the query content from metadata sections.
The `edit_query` function now returns both the query text and any
configuration changes, which are merged into the partial config before
storing messages. Error handling includes validation feedback displayed
directly in the editor to streamline the correction workflow.

Related: #217

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

404 of 602 new or added lines in 6 files covered. (67.11%)

4 existing lines in 2 files now uncovered.

8119 of 16584 relevant lines covered (48.96%)

14.08 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
0.0
0.0% crates/jp_cli/src/cmd.rs
10
97.58
crates/jp_cli/src/editor/parser.rs
10
80.49
-5.23% crates/jp_config/src/lib.rs
18
29.21
-2.86% crates/jp_conversation/src/message.rs
34
28.66
-0.77% crates/jp_cli/src/cmd/query.rs
125
0.0
0.0% crates/jp_cli/src/editor.rs

Uncovered Existing Lines

Lines Coverage ∆ File
2
28.66
-0.77% crates/jp_cli/src/cmd/query.rs
2
0.0
0.0% crates/jp_cli/src/editor.rs
Jobs
ID Job ID Ran Files Coverage
1 19034261978.1 03 Nov 2025 12:15PM UTC 153
48.96
GitHub Action Run
Source Files on build 19034261978
  • Tree
  • List 153
  • Changed 5
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19034261978
  • 44eb950f on github
  • Prev Build on main (#19033111101)
  • Next Build on main (#20124258614)
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