Files
hermes-agent/hermes_cli/observability
Siddharth Balyan 33e9504e93 fix(agent): external-process providers are not local servers (#129153)
is_local_endpoint() reads process://<name> as an unqualified LAN host, so
DirectSDK and every other external_process provider took the single-slot
local-server branches: a "prompt is too long" with no token count failed the
turn with "wait and /retry" instead of compressing (the session stayed stuck
until /new), and init/context resolution ran the Ollama/llama.cpp probe
waterfall against a child process.

agent/process_transport.py adds two predicates keyed on the provider
profile's auth_type, never on the URL:
- is_local_server(base_url, provider): a local HTTP server. Used where the
  call site means one request slot, a local server to probe, or local-server
  copy (overflow rejection, stream load notice, Ollama num_ctx, local context
  probes, minimum-context remedy copy, reasoning carriers, Ollama vision
  probe, stale-aux pins, the dashboard local_endpoint flag, the local-model
  metrics bucket, the CLI banner fix hint).
- waits_like_local(base_url, provider): silent before the first token. Used
  where the call site means patience (stream stale ceiling, stream read
  timeout, aux first-token window), so external-process providers keep the
  900 s budget they had by accident, now on purpose.

Builds on the salvaged C#129157 (dskwe), which added the process:// string
check at the overflow site; that check is replaced by the auth_type rule and
its test now covers acp:// too.
2026-11-14 05:44:33 +05:30
..