Yiğit ERDOĞAN
01c6479311
fix(discord): long code-fence replies can exceed the message length limit ( #110148 )
...
* fix(discord): reopening a long code fence overflows maxChars
When a chunk is flushed mid code-fence, the next chunk reopens the fence
with the full original opening line (info string included), but the
reserve accounting only budgets the closing marker. A long fence opening
line therefore pushed reopened continuation chunks past maxChars, which
Discord rejects with HTTP 400.
Reopen continuation chunks with a bare marker when the full opening line
would not leave room for the close and body, and size split segments
against the reopen prefix so no chunk exceeds maxChars. This mirrors the
existing closing-fence-overflow guard on the opening/reopen side.
* fix(discord): preserve code after fence reopen
Co-authored-by: Yigtwxx <yigiterdogan023@gmail.com >
* fix(discord): preserve limits when fences cannot fit
Co-authored-by: Yigtwxx <yigiterdogan023@gmail.com >
---------
Co-authored-by: Peter Steinberger <steipete@gmail.com >
2026-07-18 23:06:46 +01:00
..
2026-07-18 19:19:17 +00:00
2026-07-18 11:41:39 -07:00
2026-07-12 11:11:15 -04:00
2026-07-18 22:38:51 +01:00
2026-07-18 22:38:51 +01:00
2026-07-17 22:36:45 -07:00
2026-07-16 11:33:18 -07:00
2026-07-16 16:47:25 -07:00
2026-07-16 13:55:23 -07:00
2026-07-16 13:55:23 -07:00
2026-07-14 12:00:55 -07:00
2026-07-12 17:16:47 +02:00
2026-07-18 10:58:22 +01:00
2026-07-18 13:54:56 +01:00
2026-07-18 14:40:45 +01:00
2026-07-16 16:47:25 -07:00
2026-07-17 01:11:11 -07:00
2026-07-18 02:12:53 +01:00
2026-07-18 04:06:58 +01:00
2026-07-15 17:05:21 -07:00
2026-07-18 23:02:03 +01:00
2026-07-15 16:23:47 -07:00
2026-07-16 13:55:23 -07:00
2026-07-18 03:32:39 -04:00
2026-07-16 16:47:25 -07:00
2026-07-14 14:15:44 -07:00
2026-07-16 13:55:23 -07:00
2026-07-16 16:47:25 -07:00
2026-07-16 13:55:23 -07:00
2026-07-15 03:32:15 -07:00
2026-07-18 21:38:44 +01:00
2026-07-18 06:23:49 +10:00
2026-07-16 16:47:19 -07:00
2026-07-13 02:34:06 -07:00
2026-07-18 23:06:46 +01:00
2026-07-12 09:17:31 +01:00
2026-07-14 06:27:12 -07:00
2026-07-18 21:48:04 +01:00
2026-07-15 18:18:23 -07:00
2026-07-16 13:55:23 -07:00
2026-07-18 18:49:38 +01:00
2026-07-16 22:22:01 -07:00
2026-07-18 03:28:29 +01:00
2026-07-16 16:47:25 -07:00
2026-07-17 14:44:03 +01:00
2026-07-18 17:00:15 +01:00
2026-07-18 15:57:22 +01:00
2026-07-18 18:26:28 +01:00
2026-07-16 13:55:23 -07:00
2026-07-18 21:31:24 +01:00
2026-07-18 03:32:39 -04:00
2026-07-16 13:55:23 -07:00
2026-07-18 20:19:19 +01:00
2026-07-16 16:47:25 -07:00
2026-07-16 22:41:03 -07:00
2026-07-18 06:27:59 +01:00
2026-07-14 18:00:16 -07:00
2026-07-15 00:16:39 -07:00
2026-07-17 16:36:05 -07:00
2026-07-12 18:08:26 -07:00
2026-07-17 01:12:23 -07:00
2026-07-14 04:25:58 -07:00
2026-07-16 01:45:06 -07:00
2026-07-18 13:54:56 +01:00
2026-07-18 09:33:06 +01:00
2026-07-18 18:40:02 +01:00
2026-07-16 21:35:44 -07:00
2026-07-18 20:27:58 +01:00
2026-07-16 13:55:23 -07:00
2026-07-17 00:56:46 -07:00
2026-07-16 11:10:59 -07:00
2026-07-16 12:56:43 -07:00
2026-07-16 16:47:25 -07:00
2026-07-18 13:54:56 +01:00
2026-07-16 13:55:23 -07:00
2026-07-16 22:41:03 -07:00
2026-07-18 18:29:24 +01:00
2026-07-14 09:27:02 -07:00
2026-07-18 18:45:45 +01:00
2026-07-18 17:30:37 +01:00
2026-07-16 16:47:25 -07:00
2026-07-16 02:11:39 -07:00
2026-07-17 11:38:21 +01:00
2026-07-16 09:15:03 -07:00
2026-07-18 20:52:49 +01:00
2026-07-18 11:14:05 +01:00
2026-07-15 04:15:23 -07:00
2026-07-16 16:47:25 -07:00
2026-07-14 15:38:39 -07:00
2026-07-18 00:11:45 +01:00
2026-07-18 00:36:08 +01:00
2026-07-14 09:27:02 -07:00
2026-07-15 17:05:21 -07:00
2026-07-15 22:40:00 -07:00
2026-07-18 04:06:58 +01:00
2026-07-18 22:55:46 +01:00
2026-07-15 16:23:47 -07:00
2026-07-18 20:08:08 +01:00
2026-07-16 16:47:25 -07:00
2026-07-17 00:56:46 -07:00
2026-07-18 21:08:10 +01:00
2026-07-18 13:54:56 +01:00
2026-07-14 06:36:21 -07:00
2026-07-16 13:55:23 -07:00
2026-07-18 22:33:26 +01:00
2026-07-18 03:32:39 -04:00
2026-07-17 11:11:13 +01:00
2026-07-18 20:00:06 +01:00
2026-07-16 16:47:25 -07:00
2026-07-15 17:05:21 -07:00
2026-07-18 15:57:22 +01:00
2026-07-18 22:35:56 +01:00
2026-07-15 16:23:47 -07:00
2026-07-16 13:55:23 -07:00
2026-07-18 21:45:35 +01:00
2026-07-18 21:19:03 +01:00
2026-07-18 13:54:56 +01:00
2026-07-14 11:00:31 -07:00
2026-07-13 11:07:35 -07:00
2026-07-18 18:50:56 +01:00
2026-07-18 22:44:06 +01:00
2026-07-16 16:47:25 -07:00
2026-07-15 16:36:30 -07:00
2026-07-18 09:09:29 +01:00
2026-07-16 16:47:25 -07:00
2026-07-15 18:18:23 -07:00
2026-07-18 17:00:15 +01:00
2026-07-14 04:47:06 -07:00
2026-07-16 23:56:59 -07:00
2026-07-18 19:57:50 +01:00
2026-07-16 04:10:27 -07:00
2026-07-18 13:54:56 +01:00
2026-07-16 16:47:25 -07:00
2026-07-18 21:51:15 +01:00
2026-07-18 12:09:22 +01:00
2026-07-18 20:32:30 +01:00
2026-07-16 13:55:23 -07:00
2026-07-16 13:55:23 -07:00
2026-07-16 13:55:23 -07:00