Teknium
eaa35ae68f
fix(gateway): balance code fences on every remaining chunk-split path
...
Widen #48476 's fence guarantees to the two splitters that still emitted
fence-broken chunks:
* GatewayStreamConsumer._split_text_chunks (fallback final send): close
the orphaned ``` at each chunk boundary and reopen it — with the
original language tag — on the next chunk, mirroring
BasePlatformAdapter.truncate_message's contract. Headroom is reserved
so balanced chunks stay within the platform limit.
* Slack block_kit._split_text (3000-char section chunking): same
close/reopen balancing for mrkdwn section text carrying fences.
With these, every chunk boundary — non-streaming send
(truncate_message), streaming overflow (_truncate_for_stream via
adapter.truncate_message per #45938 ), fallback final
(_split_text_chunks), final-send balance (ensure_closed_code_fences),
and Block Kit section splits — delivers fence-balanced chunks.
Regression tests probe each path with fenced fixtures, assert per-chunk
balance, limit compliance, language-tag reopening, and prose passthrough.
2026-07-23 11:50:28 -07:00
..
2026-07-22 16:59:29 -07:00
2026-07-22 12:10:58 -05:00
2026-07-23 11:45:07 -07:00
2026-07-23 05:45:17 +00:00
2026-07-23 14:46:24 -04:00
2026-07-23 01:39:21 -05:00
2026-07-22 20:57:25 -07:00
2026-07-07 18:33:28 +10:00
2026-07-18 01:11:03 -07:00
2026-07-22 20:55:51 -07:00
2026-03-14 14:27:20 +03:00
2026-07-23 11:50:28 -07:00
2026-07-23 11:50:08 -07:00
2026-07-17 06:53:38 -07:00
2026-07-17 20:55:24 +00:00
2026-07-05 13:42:46 -07:00
2026-07-01 03:16:13 -07:00
2026-07-22 14:12:50 +05:30
2026-07-22 22:23:24 -07:00
2026-07-22 04:39:20 -07:00
2026-07-23 14:46:24 -04:00
2026-07-22 16:51:01 -04:00
2026-07-22 03:20:45 -07:00
2026-07-23 08:07:00 -07:00
2026-07-21 12:40:48 -07:00
2026-07-05 13:42:46 -07:00
2026-07-23 11:44:43 -07:00
2026-07-23 14:46:24 -04:00
2026-07-22 21:14:44 -07:00
2026-04-21 01:56:35 -07:00
2026-07-03 14:27:34 +10:00
2026-07-06 03:28:30 -07:00
2026-07-01 16:21:39 +05:30
2026-05-28 22:26:25 -07:00
2026-07-22 04:40:07 -07:00
2026-07-23 07:24:46 -07:00
2026-07-22 04:39:28 -07:00
2026-07-05 00:44:15 -07:00
2026-07-23 11:44:43 -07:00
2026-07-14 03:58:54 +05:30
2026-07-15 00:10:31 -07:00
2026-07-22 03:20:25 -07:00
2026-07-06 04:58:07 -07:00
2026-07-22 04:39:17 -07:00
2026-05-28 22:26:25 -07:00
2026-06-28 15:38:39 -07:00
2026-07-22 10:35:04 -07:00
2026-07-20 05:39:09 -07:00
2026-06-27 15:59:00 -07:00
2026-07-18 00:34:54 -04:00
2026-07-05 11:44:53 +05:30
2026-07-17 20:55:24 +00:00
2026-07-23 17:32:38 +05:30
2026-07-23 14:46:24 -04:00
2026-07-16 12:48:48 -07:00
2026-07-17 20:55:24 +00:00
2026-07-18 19:18:03 +05:30
2026-06-30 20:11:01 +07:00
2026-06-25 23:49:11 -07:00
2026-07-18 18:40:59 -04:00
2026-07-07 21:17:34 +07:00
2026-07-05 19:35:30 -07:00
2026-06-28 03:58:01 -07:00
2026-06-26 20:10:20 +05:30
2026-06-25 23:49:11 -07:00
2026-07-21 12:15:46 +05:30
2026-07-05 14:01:03 -07:00
2026-04-19 22:44:47 -07:00
2026-05-28 22:26:25 -07:00
2026-03-24 08:19:23 -07:00
2026-07-05 14:51:49 -07:00
2026-06-28 22:52:59 -07:00
2026-07-22 03:19:32 -07:00
2026-07-01 03:17:48 -07:00
2026-07-22 16:51:01 -04:00
2026-07-22 16:51:01 -04:00
2026-05-28 22:26:25 -07:00
2026-06-30 15:30:06 -07:00
2026-07-22 16:51:01 -04:00
2026-07-16 19:48:47 -04:00
2026-07-07 15:15:37 -07:00
2026-07-07 11:57:01 +05:30
2026-07-17 20:55:24 +00:00
2026-05-16 00:57:39 -07:00
2026-07-22 07:56:47 -07:00
2026-07-12 05:07:52 -04:00
2026-07-22 21:14:44 -07:00
2026-07-18 04:15:13 -07:00
2026-03-19 15:16:35 +01:00
2026-07-23 17:32:38 +05:30
2026-07-22 04:42:50 -07:00
2026-07-14 21:25:44 -07:00
2026-05-28 22:26:25 -07:00
2026-07-18 01:11:03 -07:00
2026-05-28 22:26:25 -07:00
2026-07-05 13:40:21 -07:00
2026-05-28 22:26:25 -07:00
2026-06-07 05:01:27 -07:00
2026-06-03 06:36:46 -07:00
2026-07-21 12:43:27 -07:00
2026-06-28 02:35:01 -07:00
2026-07-22 21:53:56 -04:00
2026-07-23 08:19:14 -07:00
2026-07-23 05:02:45 +00:00
2026-07-15 04:55:46 -07:00
2026-07-16 15:23:32 -04:00
2026-07-16 14:43:14 +02:00
2026-07-23 07:33:28 -07:00
2026-05-28 22:26:25 -07:00
2026-04-26 18:50:49 -07:00
2026-07-08 08:05:45 -07:00
2026-05-28 22:26:25 -07:00
2026-07-05 00:41:34 -07:00
2026-06-07 17:49:38 -07:00