The flush() helper now enforces the Discord hard limit by hard-splitting any chunk that exceeds 2000 chars (e.g. when "\n```" was appended after the soft-limit check). Also reserves 4 chars of overhead in the soft-limit check when inside a fenced code block. Adds a regression test that verifies no chunk exceeds 2000 chars even when the fence closure is appended at the limit boundary. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| agent | ||
| commands | ||
| config | ||
| db | ||
| discord | ||
| runtime | ||
| bot.ts | ||
| index.ts | ||
| router.ts | ||