Skip to content

The agent that grows with you

fix(setup): a CAMOFOX_URL home keeps the Tool Gateway browser unchecked

Teknium90a3b085271e
diff --git a/hermes_cli/nous_subscription.py b/hermes_cli/nous_subscription.py
index 02fa94415e1..5997d595015 100644
--- a/hermes_cli/nous_subscription.py
+++ b/hermes_cli/nous_subscription.py
@@ -513,9 +513,10 @@ def apply_nous_managed_defaults(config: dict[str, object], *, enabled_toolsets:
def _get_gateway_direct_credentials() -> dict[str, bool]:
- """tool_key -> has_direct_credentials. Env-configured keyless local backends (SearXNG)
+ """tool_key -> has_direct_credentials. Env-configured keyless local backends (SearXNG, CAMOFOX_URL)
count as configured so they are never classified "unconfigured" and pre-checked; Whisper shares
- the audio key with TTS."""
+ the audio key with TTS. CAMOFOX_URL: the home browses through Camofox (the ``camofox`` plugin
+ since it left core), so the managed browser is offered, not pre-checked over it."""
fal_direct = fal_key_is_configured()
audio_direct = bool(resolve_openai_audio_api_key())
return {
@@ -528,7 +529,7 @@ def _get_gateway_direct_credentials() -> dict[str, bool]:
"tts": audio_direct or _any_env("ELEVENLABS_API_KEY"),
"stt": audio_direct or _any_env("GROQ_API_KEY", "MISTRAL_API_KEY"),
"browser": (
- _any_env("BROWSER_USE_API_KEY")
+ _any_env("BROWSER_USE_API_KEY", "CAMOFOX_URL")
or bool(get_env_value("BROWSERBASE_API_KEY") and get_env_value("BROWSERBASE_PROJECT_ID"))
),
}
diff --git a/tests/hermes_cli/test_nous_subscription.py b/tests/hermes_cli/test_nous_subscription.py
index 39e3f9c67bb..9c62ad0f52a 100644
--- a/tests/hermes_cli/test_nous_subscription.py
+++ b/tests/hermes_cli/test_nous_subscription.py
@@ -325,13 +325,13 @@ def test_prompt_enable_tool_gateway_never_offers_explicit_backend(monkeypatch):
def test_gateway_direct_credentials_honor_env_configured_local_backends(monkeypatch):
- """SEARXNG_URL is an env-configured keyless local backend
- with no stored selection — it must still count as a direct credential
+ """SEARXNG_URL / CAMOFOX_URL are env-configured keyless local backends
+ with no stored selection — they must still count as direct credentials
so the tool is offered unchecked, never pre-checked (#92647)."""
monkeypatch.setattr(
ns,
"get_env_value",
- lambda name: "http://localhost:9377" if name == "SEARXNG_URL" else "",
+ lambda name: "http://localhost:9377" if name in ("SEARXNG_URL", "CAMOFOX_URL") else "",
)
monkeypatch.setattr(ns, "fal_key_is_configured", lambda: False)
monkeypatch.setattr(ns, "resolve_openai_audio_api_key", lambda: None)
@@ -339,6 +339,7 @@ def test_gateway_direct_credentials_honor_env_configured_local_backends(monkeypa
direct = ns._get_gateway_direct_credentials()
assert direct["web"] is True
+ assert direct["browser"] is True
assert direct["image_gen"] is False