Skip to content

The agent that grows with you

fix(tools): word the read_preview hint so the Windows footgun lint doesn't read it as open()

Brooklyn Nicholson6ae7b79b51c5
diff --git a/tests/tools/test_read_preview_tool.py b/tests/tools/test_read_preview_tool.py
index 6035e26f9b2..8f6d4dbf6e1 100644
--- a/tests/tools/test_read_preview_tool.py
+++ b/tests/tools/test_read_preview_tool.py
@@ -61,6 +61,6 @@ def test_empty_answer_names_both_cases_and_the_remedy():
error must tell them apart (open a page vs update an older app, #94272)."""
result = json.loads(rp.read_preview_tool(callback=lambda **_: ""))
- assert "open a page with open_preview" in result["error"]
+ assert "call open_preview first" in result["error"]
assert "timed out" in result["error"]
assert "older than this backend" in result["error"]
diff --git a/tools/read_preview_tool.py b/tools/read_preview_tool.py
index c8f48b4f848..58b7250e9a1 100644
--- a/tools/read_preview_tool.py
+++ b/tools/read_preview_tool.py
@@ -20,6 +20,6 @@ def read_preview_tool(
"read_preview is only available in the Hermes desktop app.",
"start and count must be integers.",
"Failed to read the preview pane: ",
- "No preview tab answered: nothing is open (open a page with open_preview), "
+ "No preview tab answered: no page is loaded (call open_preview first), "
"or the bridge timed out. If the pane IS open, the desktop app may be older "
"than this backend — update it and retry."))