The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(gateway): dedupe chat_type wiring after composing #58615 with #60769
teknium126670bce9578
diff --git a/gateway/run.py b/gateway/run.pyindex a4b267859f3..4201dde1ca5 100644--- a/gateway/run.py+++ b/gateway/run.py@@ -17452,7 +17452,6 @@ class GatewayRunner(GatewayAuthorizationMixin, GatewayKanbanWatchersMixin, Gatewstr(context.source.chat_type) if context.source.chat_type else ""),chat_name=context.source.chat_name or "",- chat_type=context.source.chat_type or "",thread_id=str(context.source.thread_id) if context.source.thread_id else "",user_id=str(context.source.user_id) if context.source.user_id else "",user_name=str(context.source.user_name) if context.source.user_name else "",diff --git a/gateway/session_context.py b/gateway/session_context.pyindex 41665ec9574..cf227fac121 100644--- a/gateway/session_context.py+++ b/gateway/session_context.py@@ -75,7 +75,6 @@ _SESSION_SOURCE: ContextVar = ContextVar("HERMES_SESSION_SOURCE", default=_UNSET_SESSION_CHAT_ID: ContextVar = ContextVar("HERMES_SESSION_CHAT_ID", default=_UNSET)_SESSION_CHAT_TYPE: ContextVar = ContextVar("HERMES_SESSION_CHAT_TYPE", default=_UNSET)_SESSION_CHAT_NAME: ContextVar = ContextVar("HERMES_SESSION_CHAT_NAME", default=_UNSET)-_SESSION_CHAT_TYPE: ContextVar = ContextVar("HERMES_SESSION_CHAT_TYPE", default=_UNSET)_SESSION_THREAD_ID: ContextVar = ContextVar("HERMES_SESSION_THREAD_ID", default=_UNSET)_SESSION_USER_ID: ContextVar = ContextVar("HERMES_SESSION_USER_ID", default=_UNSET)_SESSION_USER_NAME: ContextVar = ContextVar("HERMES_SESSION_USER_NAME", default=_UNSET)@@ -127,7 +126,6 @@ _VAR_MAP = {"HERMES_SESSION_CHAT_ID": _SESSION_CHAT_ID,"HERMES_SESSION_CHAT_TYPE": _SESSION_CHAT_TYPE,"HERMES_SESSION_CHAT_NAME": _SESSION_CHAT_NAME,- "HERMES_SESSION_CHAT_TYPE": _SESSION_CHAT_TYPE,"HERMES_SESSION_THREAD_ID": _SESSION_THREAD_ID,"HERMES_SESSION_USER_ID": _SESSION_USER_ID,"HERMES_SESSION_USER_NAME": _SESSION_USER_NAME,@@ -163,7 +161,6 @@ def set_session_vars(chat_id: str = "",chat_type: str = "",chat_name: str = "",- chat_type: str = "",thread_id: str = "",user_id: str = "",user_name: str = "",@@ -201,7 +198,6 @@ def set_session_vars(_SESSION_CHAT_ID.set(chat_id),_SESSION_CHAT_TYPE.set(chat_type),_SESSION_CHAT_NAME.set(chat_name),- _SESSION_CHAT_TYPE.set(chat_type),_SESSION_THREAD_ID.set(thread_id),_SESSION_USER_ID.set(user_id),_SESSION_USER_NAME.set(user_name),@@ -238,7 +234,6 @@ def clear_session_vars(tokens: list) -> None:_SESSION_CHAT_ID,_SESSION_CHAT_TYPE,_SESSION_CHAT_NAME,- _SESSION_CHAT_TYPE,_SESSION_THREAD_ID,_SESSION_USER_ID,_SESSION_USER_NAME,