Skip to content

Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.

Merge pull request #290 from jameshoweee/security/register-overwrite-owner-guard

Abel Dantasa6367ea35799
diff --cc core/switch_core/bridges/agent/protocol/service.py
index 9c46258af,c2c269baf..b7a383da9
--- a/core/switch_core/bridges/agent/protocol/service.py
+++ b/core/switch_core/bridges/agent/protocol/service.py
@@@ -256,9 -231,9 +256,10 @@@ class ProtocolService
ValueError: name is invalid (lowercase alphanumeric, dots, hyphens,
or underscores — no spaces).
InvalidIconUrl: ``icon_url`` is malformed or points somewhere unsafe.
+ InvalidDisplayName: ``display_name`` is over-long or unsafe to render.
AgentExistsError: agent with this name exists and ``overwrite`` is
- False.
+ False, or the existing agent is owned by another user (the name
+ is global, but re-registration stays within the owner's tenant).
"""
if not _VALID_NAME_RE.match(name):
raise ValueError(