Commit 7545c76
authored
feat: add actionable config hints to all limit error messages (#112)
* feat: add actionable config hints to all limit error messages
Every error message that fires when a configurable limit is breached
now tells the LLM which config field to increase via manage_plugin.
fs-read (4 messages):
- maxFileSizeKb hint on all 'File too large' errors
- maxReadChunkKb hint on per-call chunk errors
fs-write (8 messages):
- maxWriteChunkKb hint on per-call chunk errors (text + binary)
- maxWriteSizeKb hint on cumulative write limit errors
- maxEntries hint on entry creation limit errors
fetch (9 messages):
- maxRequestsPerMinute/maxRequestsPerHour on rate limit errors
- maxDomainsPerSession on domain count errors
- maxDataReceivedKb on data budget errors
- maxResponseSizeKb on response too large errors
- maxRequestBodySizeKb on request body errors
- maxRedirects on redirect limit errors
- maxJsonResponseBytes/maxTextResponseBytes on convenience method errors
Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
* fix: address PR #112 review feedback
- writeFile chunk error now advises 'first chunk via writeFile, rest
via appendFile' instead of just 'split into appendFile' which would
change overwrite→append semantics
- writeFileBinary same fix for non-Office fallback message
- All maxReadChunkKb and maxWriteChunkKb config hints now warn to
ensure the sandbox buffer is large enough to match, preventing
VM faults from raising chunk size without the buffer
Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
---------
Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>1 parent 5f9f20e commit 7545c76
3 files changed
Lines changed: 41 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1112 | 1112 | | |
1113 | 1113 | | |
1114 | 1114 | | |
1115 | | - | |
| 1115 | + | |
| 1116 | + | |
1116 | 1117 | | |
1117 | 1118 | | |
1118 | 1119 | | |
1119 | 1120 | | |
1120 | 1121 | | |
1121 | 1122 | | |
1122 | 1123 | | |
1123 | | - | |
| 1124 | + | |
| 1125 | + | |
1124 | 1126 | | |
1125 | 1127 | | |
1126 | 1128 | | |
1127 | 1129 | | |
1128 | 1130 | | |
1129 | 1131 | | |
1130 | 1132 | | |
1131 | | - | |
| 1133 | + | |
| 1134 | + | |
1132 | 1135 | | |
1133 | 1136 | | |
1134 | 1137 | | |
1135 | 1138 | | |
1136 | 1139 | | |
1137 | | - | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
1138 | 1145 | | |
1139 | 1146 | | |
1140 | 1147 | | |
| |||
2239 | 2246 | | |
2240 | 2247 | | |
2241 | 2248 | | |
2242 | | - | |
| 2249 | + | |
| 2250 | + | |
| 2251 | + | |
| 2252 | + | |
2243 | 2253 | | |
2244 | 2254 | | |
2245 | 2255 | | |
| |||
2547 | 2557 | | |
2548 | 2558 | | |
2549 | 2559 | | |
2550 | | - | |
| 2560 | + | |
2551 | 2561 | | |
2552 | 2562 | | |
2553 | 2563 | | |
| |||
3136 | 3146 | | |
3137 | 3147 | | |
3138 | 3148 | | |
3139 | | - | |
| 3149 | + | |
3140 | 3150 | | |
3141 | 3151 | | |
3142 | 3152 | | |
| |||
3517 | 3527 | | |
3518 | 3528 | | |
3519 | 3529 | | |
3520 | | - | |
| 3530 | + | |
3521 | 3531 | | |
3522 | 3532 | | |
3523 | 3533 | | |
| |||
3582 | 3592 | | |
3583 | 3593 | | |
3584 | 3594 | | |
3585 | | - | |
| 3595 | + | |
3586 | 3596 | | |
3587 | 3597 | | |
3588 | 3598 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
| 275 | + | |
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
| 280 | + | |
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
346 | | - | |
| 346 | + | |
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
| |||
484 | 484 | | |
485 | 485 | | |
486 | 486 | | |
487 | | - | |
| 487 | + | |
488 | 488 | | |
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
493 | 493 | | |
494 | | - | |
| 494 | + | |
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
| |||
547 | 547 | | |
548 | 548 | | |
549 | 549 | | |
550 | | - | |
| 550 | + | |
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
| 246 | + | |
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | | - | |
| 266 | + | |
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
336 | | - | |
| 336 | + | |
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
341 | | - | |
| 341 | + | |
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
| 356 | + | |
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
375 | | - | |
| 375 | + | |
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
| |||
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
435 | | - | |
| 435 | + | |
436 | 436 | | |
437 | 437 | | |
438 | | - | |
| 438 | + | |
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
443 | | - | |
| 443 | + | |
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
458 | | - | |
| 458 | + | |
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
| |||
520 | 520 | | |
521 | 521 | | |
522 | 522 | | |
523 | | - | |
| 523 | + | |
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
528 | | - | |
| 528 | + | |
529 | 529 | | |
530 | 530 | | |
531 | 531 | | |
| |||
540 | 540 | | |
541 | 541 | | |
542 | 542 | | |
543 | | - | |
| 543 | + | |
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
| |||
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
563 | | - | |
| 563 | + | |
564 | 564 | | |
565 | 565 | | |
566 | 566 | | |
| |||
595 | 595 | | |
596 | 596 | | |
597 | 597 | | |
598 | | - | |
| 598 | + | |
599 | 599 | | |
600 | 600 | | |
601 | 601 | | |
| |||
0 commit comments