You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
f32 fields parse numbers above f32::MAX as infinity, then serialize as null #1553
P2Medium: important but non-blocking improvementT-modelModel/data structure changesbugSomething is not workingready for workIssue is well-defined and ready to be picked up
json_float::option_f32 (crates/rmcp/src/model/serde_impl.rs) casts the parsed f64 with as f32, so values above f32::MAX turn into inf. The roundtrip check in the jsonrpc_message fuzz target for #1533 fails on it.
params.temperature parses as Some(inf), serde_json::to_string writes "temperature":null, and parsing that back gives None. Same for Annotations.priority and the ModelPreferences priority fields.
1e400 is already rejected (fields_reject_anything_but_a_finite_number), so 1e39 in an f32 field should fail the same way ("number out of range"). Plain serde f32 does the same as cast, so this isn't new in #1300; it just doesn't match what the module comment says.
P2Medium: important but non-blocking improvementT-modelModel/data structure changesbugSomething is not workingready for workIssue is well-defined and ready to be picked up
Activity
github-actions commentedon Dec 3, 2026
@connor4312 is on triage rotation this week and is the reviewer for this one.
Codex labeled this bug / P2 (T-model). Please confirm or correct those labels.
Automated triage. Labels are a first pass and the assigned maintainer has the final say.