core: agent stats (#1650)

This commit is contained in:
Evgeny Poberezkin
2022-12-26 22:24:34 +00:00
committed by GitHub
parent e48452ccff
commit 74245d3f2b
9 changed files with 30 additions and 7 deletions
+1
View File
@@ -216,6 +216,7 @@ responseToView user_ testView liveItems ts = \case
[ maybe "no chat lock" (("chat lock: " <>) . plain) chatLockName,
plain $ "agent locks: " <> LB.unpack (J.encode agentLocks)
]
CRAgentStats stats -> map (plain . intercalate ",") stats
CRMessageError prefix err -> [plain prefix <> ": " <> plain err]
CRChatError e -> viewChatError e
where