Classic298
e160769e2f
fix: very large system prompts can freeze the server ( #35560 )
...
A system prompt with many repeated tool approval policy or tool list markers and no closing marker took time growing with the square of its size to clean up, tens of seconds or more for half a megabyte. The tool approval cleanup runs on every chat request and blocks the server while it runs, so one oversized request stalled every user on that server process. Both cleanups now ignore the text after the last closing marker, which can never be removed anyway, so the same input takes under a millisecond and the cleaned prompt is the same as before.
2026-12-03 03:20:46 +04:00
..
2026-12-01 00:27:22 +04:00
2026-11-30 22:41:11 +04:00
2026-12-03 00:32:29 +04:00
2026-11-26 18:14:38 +04:00
2026-11-22 20:43:18 +04:00
2026-11-03 20:43:51 +09:00
2026-11-19 19:13:33 +04:00
2026-11-13 17:36:00 +09:00
2026-11-13 18:26:08 +09:00
2026-11-16 21:10:30 +09:00
2026-11-22 17:13:34 +04:00
2026-11-09 08:05:51 +09:00
2026-11-25 02:15:42 +04:00
2026-12-01 00:41:27 +04:00
2026-12-01 00:41:27 +04:00
2026-11-25 13:06:56 +04:00
2026-11-16 21:10:30 +09:00
2026-11-30 23:15:45 +04:00
2026-10-12 17:29:04 +04:00
2026-07-23 02:54:56 -04:00
2026-11-24 22:11:32 +04:00
2026-11-05 07:19:09 +09:00
2026-12-02 04:30:51 +04:00
2026-07-31 17:41:14 -04:00
2026-11-25 02:34:37 +04:00
2026-11-25 04:57:27 +04:00
2026-11-13 17:36:00 +09:00
2026-09-21 08:53:06 -04:00
2026-11-02 08:48:51 +09:00
2026-05-12 17:10:15 +09:00
2026-11-30 23:02:09 +04:00
2026-12-01 01:58:55 +04:00
2026-08-20 12:58:52 -07:00
2026-07-27 03:45:37 -04:00
2026-11-24 19:10:42 +04:00
2026-11-27 15:17:00 +04:00
2026-10-10 20:10:39 +04:00
2026-12-03 01:27:49 +04:00
2026-12-01 00:18:59 +04:00
2026-07-26 23:09:22 -04:00
2026-11-23 18:34:38 +04:00
2026-12-01 02:33:19 +04:00
2026-12-01 00:23:17 +04:00
2026-11-12 21:20:49 +09:00
2026-11-30 18:48:49 +04:00
2026-11-22 02:10:33 +04:00
2026-09-13 20:28:41 -05:00
2026-11-30 23:15:45 +04:00
2026-11-02 08:48:51 +09:00
2026-11-22 20:33:28 +04:00
2026-12-02 04:30:51 +04:00
2026-03-17 17:58:01 -05:00
2026-08-24 18:29:36 -04:00
2026-11-25 13:06:56 +04:00
2026-11-25 04:31:16 +04:00
2026-10-16 14:31:39 +04:00
2026-11-22 17:13:34 +04:00
2026-11-25 05:11:32 +04:00
2026-11-22 16:26:59 +04:00
2026-12-01 00:04:41 +04:00
2026-11-25 02:34:37 +04:00
2026-11-22 17:13:34 +04:00
2026-12-03 03:20:46 +04:00
2026-11-22 17:13:34 +04:00
2026-12-03 03:20:46 +04:00
2026-12-02 03:33:58 +04:00
2026-11-02 08:48:51 +09:00
2026-10-10 19:59:52 +04:00
2026-10-11 15:55:57 +04:00
2026-11-02 08:48:51 +09:00