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

dcdpr / jp / 24551603658
66%

Build:
DEFAULT BRANCH: main
Ran 17 Apr 2026 06:42AM UTC
Jobs 1
Files 287
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

17 Apr 2026 06:38AM UTC coverage: 64.256% (+0.007%) from 64.249%
24551603658

push

github

web-flow
fix(llm): Replace `AutoEscape::Json` with custom formatter (#575)

The previous null-rendering fix set `AutoEscape::Json` globally on the
minijinja environment used by `run_tool_command`. That stopped null
values rendering as Jinja2's `none`, but introduced a new regression:
every string scalar was JSON-quoted at the point of interpolation. A
template like `just rfd-draft {{tool.arguments.title}}` would produce
`"Assistant-Initiated ..."` with literal surrounding quotes, breaking
downstream shell commands.

The fix replaces `AutoEscape::Json` with a custom formatter
(`format_tool_template_value`) that applies different rules depending on
the value kind. Scalars (strings, numbers, booleans) render raw so that
`{{tool.arguments.title}}` produces the bare string, matching what tool
authors expect. Composite values (maps, sequences) serialize as JSON,
preserving the original fix for `{{tool}}` interpolations. Null and
undefined values render as the literal `null` regardless of context.
Safe strings — produced by an explicit `| tojson` filter — pass through
unchanged, so opt-in JSON encoding still works without double-encoding.

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

15 of 19 new or added lines in 1 file covered. (78.95%)

22967 of 35743 relevant lines covered (64.26%)

192.21 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
32.86
1.18% crates/jp_llm/src/tool.rs
Jobs
ID Job ID Ran Files Coverage
1 24551603658.1 17 Apr 2026 06:42AM UTC 287
64.26
GitHub Action Run
Source Files on build 24551603658
  • Tree
  • List 287
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24551603658
  • afda81c8 on github
  • Prev Build on main (#24537554831)
  • Next Build on main (#24578098452)
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