fix(conflicts): 解决合并冲突

This commit is contained in:
sophie committed 2026-09-29 14:29:40 +08:00
commit a1828f75e6
95 files changed
+4636 -476

No files matched your search

+1 -1
View File
@@ -37,7 +37,7 @@ def _serialize_agent_row(agent: Agent, *, visible_agent_ids: set[int] | None = N
def _list_active_agents_for_user(user: User) -> list[Agent]:
"""返回用户可见的完整 Agent ORM 行(含 Registry 结构化列)。"""
if user.role == 'admin':
if user.is_platform_admin():
return (
db.session.query(Agent)
.filter(Agent.is_active.is_(True))