Commit 184c4ed
jetnet
fix: guard tilldone nudge to prevent orphaned tool_result errors
Skip sendMessage nudge when conversation branch exceeds 150 messages
to avoid 400 invalid_request_error from the API when context truncation
drops the matching tool_use block. Addresses Issue disler#12.1 parent 72d404a commit 184c4ed
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
371 | 385 | | |
372 | 386 | | |
373 | 387 | | |
| |||
0 commit comments