fix: fix UI bug and agent roles

This commit is contained in:
2026-09-07 22:27:36 +09:00
parent 4eb0ae660e
commit 2f3cd100f8
11 changed files with 6068 additions and 755 deletions
+1 -8
View File
@@ -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}