From 12ff3da3e4c484ad313fff47c473d4f63655d673 Mon Sep 17 00:00:00 2001 From: liuhao1024 Date: Thu, 20 Aug 2026 06:47:50 +0800 Subject: [PATCH] test: update cross-tree search hint assertion to the structured _hint field MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Follow-up to the pure-JSON search_files fix: the credential-filter test in tests/agent/ also asserted the old appended '[Hint: ...]' text — the local run covered tests/tools/ only, so CI slice 7 caught it. The _hint field is present and correct in the CI failure output itself; only the assertion syntax was stale. --- tests/agent/test_file_safety_credentials.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/agent/test_file_safety_credentials.py b/tests/agent/test_file_safety_credentials.py index 2c648f6f39..9534569963 100644 --- a/tests/agent/test_file_safety_credentials.py +++ b/tests/agent/test_file_safety_credentials.py @@ -165,7 +165,7 @@ def test_search_tool_filters_credential_results(fake_home, tmp_path, monkeypatch assert out["_omitted"].startswith("4 result(s) omitted") assert out["total_count"] == 5 assert out["truncated"] is True - assert "[Hint: Results truncated." in search_response + assert out["_hint"].startswith("Results truncated. Use offset=") # ---------------------------------------------------------------------------