Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: fix agent.id mismatch lead permission keys are empty (#42095)

wangxiaolei63bd623a63d6
diff --git a/api/controllers/console/agent/roster.py b/api/controllers/console/agent/roster.py
index 5811d0c54fb..f73dfafa557 100644
--- a/api/controllers/console/agent/roster.py
+++ b/api/controllers/console/agent/roster.py
@@ -511,7 +511,7 @@ def _serialize_agent_app_pagination(
item["hidden_app_backed"] = False
item["id"] = agent.id
item["debug_conversation_id"] = debug_conversation_ids_by_agent_id.get(agent.id)
- item["permission_keys"] = permission_keys_by_agent_id.get(agent.id, [])
+ item["permission_keys"] = permission_keys_by_agent_id.get(str(agent.id), [])
item["role"] = agent.role or ""
item["active_config_is_published"] = active_config_is_published_by_agent_id.get(agent.id, False)
item["reference_count"] = reference_counts_by_agent_id.get(agent.id, 0)