Skip to content

The agent that grows with you

fix: simplify bad-pin error message (windows-footgun scan tripped on open() inside the string)

Teknium5368598ba180
diff --git a/hermes_cli/browser_connect.py b/hermes_cli/browser_connect.py
index 8f3224da5ba..c2a27868d80 100644
--- a/hermes_cli/browser_connect.py
+++ b/hermes_cli/browser_connect.py
@@ -770,11 +770,10 @@ def _resolve_source_profile(src: str) -> tuple[str | None, str | None]:
return pin, None
return None, (
f"browser.real_profile_pin is set to '{pin}' but that profile "
- f"directory does not exist under {src!r}. Fix the pin (run: "
- "`python3 -c \"import json; "
- "print(json.load(open(input()))['profile']['info_cache'])\" "
- "against '<user-data-dir>/Local State' to list profiles) or "
- "remove it to fall back to last-used."
+ f"directory does not exist under {src!r}. Profile directories are "
+ "named like 'Default' or 'Profile 2' — list them with: "
+ f"ls {src!r}. Fix the pin, or remove it to fall back to the "
+ "last-used profile."
)
return _last_used_profile(src), None