mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-09 03:03:24 +08:00
fix: surface actionable channel message errors
This commit is contained in:
parent
b42fc411c2
commit
7cbed3aefb
59 changed files with 2405 additions and 607 deletions
|
|
@ -7,6 +7,7 @@
|
|||
*/
|
||||
|
||||
import { normalizeAgentPresetCatalog, normalizeAgentPresetId } from "../../agent-preset.js";
|
||||
import { normalizeLastMessageError } from "../../last-message-error.js";
|
||||
|
||||
export const FEISHU_RPC_CHANNEL = "/feishu";
|
||||
|
||||
|
|
@ -206,6 +207,7 @@ export function normalizeBotConnection(value, fallbackBotId) {
|
|||
groupMessagePermissionGranted: value.groupMessagePermissionGranted === true,
|
||||
bot: normalizeBot(value.bot),
|
||||
health: normalizeHealth(value.health, connected),
|
||||
lastMessageError: normalizeLastMessageError(value.lastMessageError),
|
||||
error: normalizeError(value.error),
|
||||
};
|
||||
}
|
||||
|
|
@ -226,6 +228,7 @@ export function normalizeBotsSnapshot(value) {
|
|||
configured: true,
|
||||
bot: value.bot,
|
||||
health: value.health,
|
||||
lastMessageError: value.lastMessageError,
|
||||
error: value.error,
|
||||
}];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue