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

dcdpr / jp / 24501507832
67%

Build:
DEFAULT BRANCH: main
Ran 16 Apr 2026 09:07AM UTC
Jobs 1
Files 284
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

16 Apr 2026 08:59AM UTC coverage: 64.207% (+0.04%) from 64.165%
24501507832

push

github

web-flow
fix(llm): Fix null rendering and strict-mode nullable schema (#560)

Two related bugs affecting tool call correctness are addressed here.

First, minijinja's default environment renders JSON `null` values as
`none` (Jinja2 convention). When tool arguments containing null fields
were templated into a command via `{{tool}}`, the output was invalid
JSON — `serde_json` would reject it with "expected ident". The fix is to
set `AutoEscape::Json` on the `Environment` used in `run_tool_command`,
which ensures null is serialized as `null`.

Second, `enforce_strict_object_structure` was adding all properties to
`required` for OpenAI strict mode without accounting for properties that
were originally optional. This made the schema invalid because the model
could not omit those fields. The fix tracks which properties were not
originally required and injects nullability into their type (e.g.
`"string"` becomes `["string", "null"]`), allowing the model to send
`null` to signal omission.

---------

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

40 of 46 new or added lines in 2 files covered. (86.96%)

1 existing line in 1 file now uncovered.

22649 of 35275 relevant lines covered (64.21%)

214.97 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
76.31
0.93% crates/jp_llm/src/provider/openai.rs

Coverage Regressions

Lines Coverage ∆ File
1
76.31
0.93% crates/jp_llm/src/provider/openai.rs
Jobs
ID Job ID Ran Files Coverage
1 24501507832.1 16 Apr 2026 09:07AM UTC 284
64.21
GitHub Action Run
Source Files on build 24501507832
  • Tree
  • List 284
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24501507832
  • d8d15410 on github
  • Prev Build on main (#24500954909)
  • Next Build on main (#24501814596)
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