fix: fix UI bug and agent roles
This commit is contained in:
@@ -202,14 +202,7 @@ class ChatPanelLayoutMixin:
|
||||
except Exception: # noqa: BLE001
|
||||
so_tep = -1
|
||||
|
||||
so_skill = -1
|
||||
try:
|
||||
from ...core.skills import list_skills
|
||||
so_skill = sum(1 for sk in list_skills() if getattr(sk, "enabled", False))
|
||||
except Exception: # noqa: BLE001
|
||||
so_skill = -1
|
||||
|
||||
# Ten nguoi dung do cua so chinh giu (app.py truyen xuong MainWindow).
|
||||
window = self.window()
|
||||
return {"user_name": getattr(window, "_user_name", "") or "",
|
||||
"project": ten, "files": so_tep, "skills": so_skill}
|
||||
"project": ten, "files": so_tep}
|
||||
|
||||
Reference in New Issue
Block a user