feat(FN-841): harden planning-mode AI response parsing and recovery
- Add robust JSON extraction from AI responses (handle markdown fences, mixed content, malformed JSON) - Add multi-strategy recovery: regex extraction, brace/bracket balancing, common-fix repairs - Add comprehensive test suite for planning-mode parsing (101 new test cases) - Document planning-mode robustness behavior in dashboard README - Add changeset for patch bump to @gsxdsm/fusion
This commit is contained in:
8
.changeset/fix-planning-json-parse.md
Normal file
8
.changeset/fix-planning-json-parse.md
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
"@gsxdsm/fusion": patch
|
||||
---
|
||||
|
||||
Fix planning mode JSON parse failure on question generation. Planning mode now
|
||||
robustly extracts JSON from AI responses (handles markdown wrapping, prose,
|
||||
truncated output) and retries once with a reformat prompt before showing an
|
||||
actionable error instead of "Unexpected end of JSON input".
|
||||
Reference in New Issue
Block a user