Commit c5c7adc
fix: ensure newUserContent is never empty when resuming tasks
Added a check to ensure that newUserContent always has at least one text block
when calling initiateTaskLoop. This prevents the 'text content blocks must be
non-empty' API error when resuming a task with no response text or images.1 parent 0e86549 commit c5c7adc
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
998 | 998 | | |
999 | 999 | | |
1000 | 1000 | | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
1001 | 1010 | | |
1002 | 1011 | | |
1003 | 1012 | | |
| |||
0 commit comments