Skip to content

The agent that grows with you

fix(hermes-bots): stop New Cronjob dialog crash when the owner is a roster object

zhangfei1231231-sketchb73e057855a4
diff --git a/apps/desktop/src/plugins/hermes-bots/plugin.js b/apps/desktop/src/plugins/hermes-bots/plugin.js
index 2cf1239c30f..0385ecd50d1 100644
--- a/apps/desktop/src/plugins/hermes-bots/plugin.js
+++ b/apps/desktop/src/plugins/hermes-bots/plugin.js
@@ -11251,7 +11251,7 @@ function CreateRoutineDialog({ bot, open, onClose }) {
'Send results to',
pickerSelect(target, setTarget, [
{ id: 'history', label: 'Run history only' },
- { id: 'bot-chat', label: `${displayName({ name: bot }, $botMeta.get()[bot])}\u2019s chat (bot responds)` }
+ { id: 'bot-chat', label: `${displayName(typeof bot === 'string' ? { name: bot } : bot, botRosterMeta(bot, $botMeta.get()))}\u2019s chat (bot responds)` }
])
),
jsxs('label', {