Skip to content

The agent that grows with you

fix(desktop): render Markdown in Bot Mode group chat messages (fixes #88391)

negroni334cf2d28a2ffb4
diff --git a/apps/desktop/src/plugins/hermes-bots/plugin.js b/apps/desktop/src/plugins/hermes-bots/plugin.js
index 02e0aa44178..8e6600aa25d 100644
--- a/apps/desktop/src/plugins/hermes-bots/plugin.js
+++ b/apps/desktop/src/plugins/hermes-bots/plugin.js
@@ -16,6 +16,7 @@
*/
import * as sdk from '@hermes/plugin-sdk'
+import { Streamdown } from 'streamdown'
import {
atom,
Button,
@@ -6491,8 +6492,8 @@ function GroupChatWorkspace({ group, members }) {
]
}),
jsx('div', {
- className: 'whitespace-pre-wrap text-xs text-(--ui-text-secondary)',
- children: entry.text
+ className: 'text-xs text-(--ui-text-secondary) [&_p]:mb-1 [&_p:last-child]:mb-0',
+ children: jsx(Streamdown, { children: entry.text })
})
]
}, `${entry.at}:${index}`)