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
The is_valid_json_escape() function in the JSON repair state machine does NOT include 'u' in its valid escape characters. When encountering valid \uXXXX unicode escapes, the state machine falls into the invalid escape branch and doubles the backslash to \\uXXXX, corrupting valid JSON.
The existing code in the valid-escape branch already handles consuming the 4 hex digits for \u — but 'u' is missing from the is_valid_json_escape match.
Impact
Any LLM response containing unicode escapes (e.g., \u0041) will be corrupted by the repair function
The repair function introduced in v0.1.4 can introduce bugs that weren't there before
Activity
ajianaz commentedon Jun 1, 2026
Fixed in v0.1.5