Commit 12b0cc4
authored
fix autoresume not working fine in useChat (#11486)
## Description
<!-- Provide a brief description of the changes in this PR -->
https://github.com/user-attachments/assets/f77fa8de-d1fc-420c-8f9e-8dd03791dae5
## Related Issue(s)
<!-- Link to the issue(s) this PR addresses, using hashtag notation:
#123 -->
#11283
## Type of Change
- [x] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [ ] Code refactoring
- [ ] Performance improvement
- [ ] Test update
## Checklist
- [ ] I have made corresponding changes to the documentation (if
applicable)
- [ ] I have added tests that prove my fix is effective or that my
feature works
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Bug Fixes**
* Fixed auto-resume functionality in useChat that was not working
properly.
* **Improvements**
* Improved detection and handling of suspended tool resumption in
agentic workflows.
* Added resume schema propagation to make suspend/approve/resume flows
more reliable and consistent.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 4837644 commit 12b0cc4
File tree
6 files changed
+316
-231
lines changed- .changeset
- client-sdks/ai-sdk/src
- e2e-tests/type-check
- packages/core/src
- loop/workflows/agentic-execution
- stream
6 files changed
+316
-231
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
168 | 169 | | |
169 | 170 | | |
170 | 171 | | |
| |||
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
| 180 | + | |
179 | 181 | | |
180 | 182 | | |
181 | 183 | | |
| |||
0 commit comments