The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(desktop): pin selectable-text opt-in on group chat bodies
Teknium9005ad1ff717
diff --git a/apps/desktop/src/plugins/hermes-bots/plugin.js b/apps/desktop/src/plugins/hermes-bots/plugin.jsindex aae0a4c3699..de4c7ef123f 100644--- a/apps/desktop/src/plugins/hermes-bots/plugin.js+++ b/apps/desktop/src/plugins/hermes-bots/plugin.js@@ -8357,6 +8357,8 @@ function GroupChatWorkspace({ group, members, onBack }) {jsx('div', {className:'text-xs text-(--ui-text-secondary) [&_p]:mb-1 [&_p:last-child]:mb-0 [&_ul]:mb-1 [&_ul]:list-disc [&_ul]:pl-4 [&_ol]:mb-1 [&_ol]:list-decimal [&_ol]:pl-4 [&_pre]:overflow-x-auto',+ // The app shell sets user-select: none globally; message bodies opt+ // back in so drag-select and ⌘C work in group chat logs.'data-selectable-text': 'true',children: Streamdown ? jsx(Streamdown, { children: entry.text }) : entry.text})diff --git a/apps/desktop/src/plugins/hermes-bots/tests/group-chat.test.mjs b/apps/desktop/src/plugins/hermes-bots/tests/group-chat.test.mjsindex 6e6b84c3f0d..d61e04560a2 100644--- a/apps/desktop/src/plugins/hermes-bots/tests/group-chat.test.mjs+++ b/apps/desktop/src/plugins/hermes-bots/tests/group-chat.test.mjs@@ -706,3 +706,11 @@ test('source contract: group chat log lines expose CopyButton on the entry body'assert.doesNotMatch(src, /readAloud/)assert.doesNotMatch(src, /ActionBarPrimitive\.Reload/)})++test('source contract: group chat message bodies opt back into selectable text', () => {+ // styles.css sets user-select: none app-wide and re-enables it only for+ // [data-selectable-text="true"] surfaces. Without this opt-in on the entry+ // body, drag-select and Cmd/Ctrl+C are dead in group chat logs.+ const src = groupChatWorkspaceSource()+ assert.match(src, /'data-selectable-text':\s*'true'/)+})