Repository navigation
fix: handle output-error parts to prevent session poisoning - #697
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR fixes incomplete tool-call handling in the AI core utils by preventing malformed ChangesIncomplete Tool Call Error Handling
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
sqlrooms/ai-core: Updated the handling of
output-errortool parts to ensure that incomplete or invalid inputs are cleared, preventing schema validation errors in subsequent sends. The original input is preserved underrawInput, allowing the AI SDK to skip validation and maintain session integrity.This will avoid "stop" and then continue prompting throws incomplete message parts error.
Summary by CodeRabbit
Release Notes
Bug Fixes
Tests