test: update cross-tree search hint assertion to the structured _hint field

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.
This commit is contained in:
liuhao1024
2026-08-20 06:47:50 +08:00
committed by kshitij
parent 478e66475b
commit 12ff3da3e4
+1 -1
View File
@@ -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=")
# ---------------------------------------------------------------------------