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:
@@ -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=")
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user