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

dcdpr / jp / 25392492630
65%

Build:
DEFAULT BRANCH: main
Ran 05 May 2026 05:51PM UTC
Jobs 1
Files 297
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

05 May 2026 05:42PM UTC coverage: 64.291% (-0.06%) from 64.354%
25392492630

push

github

web-flow
feat(config, cli): Add `FormatMode` for pre-approval tool rendering (#597)

Introduces a `format` config field (values: `ask` | `unattended`) for
both per-tool and global tool defaults, controlling when a tool's
argument formatter runs relative to the approval prompt.

Previously, the formatter always ran after the user approved a tool
call. With `format = "unattended"`, the formatter fires before the
approval prompt, so the user sees the rendered tool call (not raw JSON
arguments) when deciding whether to approve.

The mode can be set explicitly in config:

    [conversation.tools."my-tool"]
    run = "ask"
    format = "unattended"

When `format` is unset, it is derived from `run`: `Ask`/`Edit`/`Skip`
map to `FormatMode::Ask` (safe default — formatter only runs after
explicit approval); `Unattended` maps to `FormatMode::Unattended`
(formatter can run freely, since the tool was already going to run
without an approval prompt anyway).

The `ToolCoordinator` gains three new methods to encapsulate this logic:
`format_mode`, `pre_render_for_prompt`, and
`resolve_tool_call_decision`. The latter consolidates the full decide →
pre-render → prompt → apply → post-render pipeline into a single seam,
so future permission-related features (telemetry, sandboxing, alternate
prompt modes) apply uniformly to both the streaming path and the
batch/restart path.

---------

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

6 of 101 new or added lines in 2 files covered. (5.94%)

1 existing line in 1 file now uncovered.

24655 of 38349 relevant lines covered (64.29%)

180.68 hits per line

Uncovered Changes

Lines Coverage ∆ File
85
46.7
-2.07% crates/jp_cli/src/cmd/query/tool/coordinator.rs
10
48.14
1.0% crates/jp_config/src/conversation/tool.rs

Coverage Regressions

Lines Coverage ∆ File
1
46.7
-2.07% crates/jp_cli/src/cmd/query/tool/coordinator.rs
Jobs
ID Job ID Ran Files Coverage
1 25392492630.1 05 May 2026 05:51PM UTC 297
64.29
GitHub Action Run
Source Files on build 25392492630
  • Tree
  • List 297
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25392492630
  • e8f4a64f on github
  • Prev Build on main (#25391613317)
  • Next Build on main (#25394478219)
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