From 3acda6f77a8d0483b2f494483e1bdfe4071337b8 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Fri, 10 Apr 2026 16:46:13 +0800 Subject: [PATCH] feat: update converted text notice to suggest using grep for large files --- astrbot/core/computer/file_read_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/astrbot/core/computer/file_read_utils.py b/astrbot/core/computer/file_read_utils.py index 31b9e5ea0..52a83ceb8 100644 --- a/astrbot/core/computer/file_read_utils.py +++ b/astrbot/core/computer/file_read_utils.py @@ -508,20 +508,20 @@ def _build_converted_text_notice( return ( "Converted text was saved to " f"`{converted_text_path}`. The requested output is still too large to " - "return directly. Read that text file with a narrower `offset`/`limit` window." + "return directly. Read or grep that file with a narrower window." ) if selection_returned: return ( "Full converted text is also available at " - f"`{converted_text_path}`. Use that file with a narrow `offset`/`limit` " + f"`{converted_text_path}`. Read or grep that file with a narrow " "window for additional reads." ) return ( "Converted text was saved to " f"`{converted_text_path}` because the parsed document is too large to " - "return directly. Read that text file with a narrow `offset`/`limit` window." + "return directly. Read or grep that file with a narrow window." )