The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(delegation): pin delegation_backend only when the agent holds a real one
Teknium587fa185d98c
diff --git a/tools/mcp_tool_agent.py b/tools/mcp_tool_agent.pyindex 7ab6217b1dd..9b999a67bdf 100644--- a/tools/mcp_tool_agent.py+++ b/tools/mcp_tool_agent.py@@ -181,7 +181,7 @@ def persist_agent_tool_names(agent) -> None:returntry:pin = {"version": tool_pin_version(), "tools": _agent_tool_defs(agent)}- if backend := getattr(agent, "_delegation_backend", None):+ if isinstance(backend := getattr(agent, "_delegation_backend", None), str) and backend:pin["delegation_backend"] = backend # what its delegate_task was built from: the session routes on itdb.update_session_tool_names(session_id, pin)except Exception: