Skip to content

The agent that grows with you

fix(agent): terminal copy for the new role_alternation failure reason

teknium176724f3dc255
diff --git a/agent/turn_failure_copy.py b/agent/turn_failure_copy.py
index e8337db5b68..fec973dd595 100644
--- a/agent/turn_failure_copy.py
+++ b/agent/turn_failure_copy.py
@@ -154,6 +154,10 @@ _NONRETRYABLE_COPY: Dict[str, str] = {
"{label} rejected this request as malformed, so the model didn't answer. Start a clean "
"session with /new or switch models with /model; if it keeps happening, run `hermes doctor`."
),
+ FailoverReason.role_alternation.value: (
+ "{label} requires user and assistant turns to strictly alternate and rejected this "
+ "conversation's shape. Start a clean session with /new or switch models with /model."
+ ),
FailoverReason.ssl_cert_verification.value: (
"Hermes couldn't verify {label}'s security certificate, so the connection was refused. "
"This is usually a corporate proxy or an outdated certificate store on this computer — "