LostInTwilight
eddfa0dd6b
fix(tool_hints): respect max_length for plain (non-path/non-command) tool values
...
Plain tool values (grep patterns, web_search/x_search queries, find_files
globs) were never truncated by format_tool_hints(), so long arguments
overflowed tool_hint_max_length and were pushed to chat/UI verbatim.
Add a hard-truncation fallback for the plain branch, mirroring the existing
truncation used by abbreviate_path / _abbreviate_command. This completes the
same class of fix started in 99209a80 for is_path tools.
Adds 4 regression tests to tests/agent/test_tool_hint.py.
2026-09-03 17:18:21 +08:00
..
2026-08-31 00:06:15 +08:00
2026-04-16 23:44:26 +08:00
2026-08-12 17:51:04 +08:00
2026-07-10 17:54:34 +08:00
2026-08-21 11:45:05 +08:00
2026-08-31 00:06:15 +08:00
2026-09-02 18:05:54 +08:00
2026-08-27 21:21:15 +08:00
2026-08-12 02:48:03 +09:00
2026-09-02 18:05:54 +08:00
2026-05-12 11:28:20 +08:00
2026-08-31 13:37:20 +08:00
2026-07-22 01:59:09 +08:00
2026-08-31 13:37:20 +08:00
2026-06-21 13:05:57 +08:00
2026-08-14 10:32:17 +08:00
2026-07-15 00:18:37 +08:00
2026-09-02 18:05:54 +08:00
2026-08-25 01:04:25 +08:00
2026-08-25 14:46:02 +08:00
2026-08-13 03:07:37 +09:00
2026-08-26 16:19:10 +08:00
2026-09-02 18:05:54 +08:00
2026-08-31 00:06:15 +08:00
2026-07-23 12:42:24 +08:00
2026-08-27 23:31:38 +08:00
2026-09-02 18:05:54 +08:00
2026-03-25 22:07:14 +08:00
2026-08-12 17:51:04 +08:00
2026-07-10 17:54:34 +08:00
2026-09-02 18:05:54 +08:00
2026-09-02 18:05:54 +08:00
2026-09-02 18:05:54 +08:00
2026-09-02 18:05:54 +08:00
2026-09-02 18:05:54 +08:00
2026-08-31 00:06:15 +08:00
2026-08-12 17:51:04 +08:00
2026-08-12 17:51:04 +08:00
2026-07-27 12:00:06 +08:00
2026-08-31 13:37:20 +08:00
2026-08-16 11:50:56 +08:00
2026-08-31 13:37:20 +08:00
2026-08-07 13:58:13 +08:00
2026-09-02 18:05:54 +08:00
2026-08-30 17:03:51 +08:00
2026-08-26 01:36:00 +08:00
2026-08-26 17:50:52 +08:00
2026-09-02 18:05:54 +08:00
2026-08-25 01:04:25 +08:00
2026-09-02 18:05:54 +08:00
2026-08-25 01:04:25 +08:00
2026-08-27 10:56:07 +08:00
2026-08-30 16:32:08 +08:00
2026-08-26 01:36:00 +08:00
2026-08-28 13:52:03 +08:00
2026-08-28 13:52:03 +08:00
2026-07-22 22:42:31 +08:00
2026-08-19 18:40:20 +08:00
2026-08-12 17:51:04 +08:00
2026-08-14 10:32:17 +08:00
2026-07-27 13:53:04 +08:00
2026-08-19 01:15:56 +08:00
2026-08-25 01:04:25 +08:00
2026-07-30 19:17:37 +08:00
2026-09-02 18:05:54 +08:00
2026-08-31 18:08:21 +08:00
2026-07-15 00:18:37 +08:00
2026-08-21 11:45:05 +08:00
2026-08-26 16:33:59 +08:00
2026-08-27 17:53:28 +08:00
2026-08-25 11:54:40 +08:00
2026-09-01 17:42:41 +08:00
2026-09-03 17:18:21 +08:00
2026-07-27 12:00:06 +08:00
2026-05-12 11:28:20 +08:00
2026-08-19 01:15:56 +08:00
2026-08-26 15:57:47 +08:00
2026-09-02 18:05:54 +08:00
2026-08-25 02:14:02 +08:00