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
Pipeline runner silently returns empty dict on JSON decode failure
Severity: Medium File:backend/app/code/pipeline/pipeline_runner.py:129
When parsing LLM-generated JSON responses, the code attempts to extract JSON from text by finding { and }. If parsing fails, it logs a warning and returns an empty dict. Downstream code receives no signal that parsing failed.
exceptjson.JSONDecodeError:
pass# Return empty dict if parsing failslogger.warning(f"Failed to parse JSON from response: {text[:200]}")
return {}
Why it matters
Pipeline steps that depend on structured LLM output proceed with empty data, causing cascading failures or incorrect code generation. The warning log is easily missed in production.
Activity