Xue-1997
72e8e2983a
fix(session-search): strip ANSI from recalled messages
...
Recalled session messages can carry raw ANSI escape sequences (e.g.
archived terminal output), which then re-enter the model's context.
Strip them in _shape_message before content is truncated/returned,
reusing tools.ansi_strip.strip_ansi.
Re-applied onto current main (the original hunk predates the
max_content_len truncation in _shape_message; stripping happens on the
raw content before truncation so escape bytes never count against the
budget). Extracted from #40276 .
2026-08-03 13:47:03 +05:30
..
2026-08-02 20:21:59 -07:00
2026-08-02 15:52:14 -07:00
2026-07-28 07:58:16 -07:00
2026-07-17 04:53:38 -07:00
2026-08-02 23:11:56 -07:00
2026-08-02 15:11:37 -07:00
2026-07-28 11:52:44 -07:00
2026-07-29 11:53:39 -07:00
2026-08-02 00:11:50 -07:00
2026-07-27 14:32:05 -07:00
2026-07-29 10:54:04 -07:00
2026-08-02 11:18:41 +05:30
2026-06-21 17:46:38 +05:30
2026-07-29 10:14:11 -07:00
2026-07-26 17:46:55 -07:00
2026-07-29 10:14:00 -07:00
2026-07-29 11:53:39 -07:00
2026-08-02 16:02:26 -07:00
2026-07-29 12:19:37 -07:00
2026-07-31 17:43:37 -04:00
2026-08-02 14:04:52 +05:30
2026-07-02 04:20:43 -07:00
2026-06-25 13:52:06 -07:00
2026-08-02 22:44:58 -07:00
2026-07-20 06:50:31 -07:00
2026-07-22 12:13:01 -05:00
2026-08-02 00:11:50 -07:00
2026-08-02 00:36:03 -07:00
2026-08-01 21:17:51 -04:00
2026-08-02 15:34:22 -07:00
2026-08-02 15:12:23 -07:00
2026-07-31 10:17:55 -04:00
2026-07-22 12:13:01 -05:00
2026-08-02 15:51:43 -07:00
2026-08-02 00:11:50 -07:00
2026-07-29 09:33:48 -07:00
2026-07-14 02:59:39 +05:30
2026-07-31 17:43:37 -04:00
2026-07-06 04:58:42 -07:00
2026-07-30 07:18:08 -05:00
2026-08-01 21:17:51 -04:00
2026-08-02 10:02:33 -07:00
2026-07-17 04:50:47 -07:00
2026-07-28 00:53:16 -05:00
2026-07-29 10:02:03 -07:00
2026-07-18 04:15:13 -07:00
2026-08-01 11:35:59 +05:30
2026-07-29 16:49:07 +05:30
2026-07-29 10:13:50 -07:00
2026-07-28 14:07:21 -07:00
2026-07-22 12:13:01 -05:00
2026-08-02 10:02:33 -07:00
2026-08-01 10:47:20 -07:00
2026-08-02 15:09:53 -07:00
2026-07-29 10:14:00 -07:00
2026-08-02 15:11:02 -07:00
2026-06-25 16:40:27 -05:00
2026-07-30 00:08:28 -05:00
2026-06-13 14:42:51 -07:00
2026-07-29 11:53:39 -07:00
2026-08-02 00:11:50 -07:00
2026-07-28 14:37:19 -07:00
2026-08-02 10:01:16 -07:00
2026-08-03 13:47:03 +05:30
2026-07-29 13:01:36 -07:00
2026-07-29 13:01:36 -07:00
2026-08-03 09:56:36 +05:30
2026-08-02 23:17:40 +05:30
2026-07-30 22:31:42 -07:00
2026-07-28 04:24:50 -05:00
2026-08-02 15:12:43 -07:00
2026-08-02 15:08:35 -07:00
2026-08-02 16:02:26 -07:00
2026-07-01 01:05:28 -07:00
2026-08-02 10:04:48 -07:00
2026-07-22 06:56:53 -07:00
2026-08-02 10:04:48 -07:00
2026-05-31 00:50:19 -07:00
2026-06-30 16:39:41 -07:00
2026-07-29 10:14:00 -07:00
2026-07-29 00:01:33 -07:00
2026-07-28 22:31:40 -07:00
2026-07-28 11:55:01 -07:00
2026-08-03 10:25:15 +05:30
2026-07-28 14:17:45 -07:00
2026-07-14 02:59:39 +05:30
2026-07-29 10:54:04 -07:00
2026-07-29 10:08:53 -07:00
2026-07-29 14:04:21 -06:00
2026-07-29 11:53:39 -07:00
2026-07-04 15:08:49 -07:00
2026-07-26 18:28:20 -07:00
2026-06-10 02:57:15 -07:00
2026-07-23 21:06:47 -07:00
2026-08-02 10:04:48 -07:00
2026-06-29 21:11:58 -07:00