The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): badge active-gateway bots too — resolve the relay attention key for local rows
kshitij387698a60d09
diff --git a/apps/desktop/src/plugins/hermes-bots/plugin.js b/apps/desktop/src/plugins/hermes-bots/plugin.jsindex 0b592952971..833772c9131 100644--- a/apps/desktop/src/plugins/hermes-bots/plugin.js+++ b/apps/desktop/src/plugins/hermes-bots/plugin.js@@ -7556,9 +7556,16 @@ function BotRow({ bot, onDelete, onEdit, onGroup, showHandle }) {const unread = Boolean(unreadByName[botSelectionKey(bot)])// Needs-attention badge (#93091 item 3): background failures record under// the selection key (group turns) or the route key (relay deliveries) —- // check both. Hidden bots keep their entry; hiding is display-only.+ // check both. Local/unannotated rows carry no connectionId, so their relay+ // failures live under `<activeConnectionId>::<name>` — resolve that shape+ // too or active-gateway bots never badge. Hidden bots keep their entry;+ // hiding is display-only.const attentionByKey = useValue($botAttention)- const attention = attentionByKey[botSelectionKey(bot)] || attentionByKey[botRosterKey(bot)] || null+ const attention =+ attentionByKey[botSelectionKey(bot)] ||+ attentionByKey[botRosterKey(bot)] ||+ attentionByKey[`${bot?.connectionId || activeConnectionId}::${bot?.name || 'default'}`] ||+ null// WHO sent the last message (bot-to-bot DM vs human) — the full stored// history lives in the canonical chat, not inline.// Preview identity must match click identity (#88200): when the backenddiff --git a/apps/desktop/src/plugins/hermes-bots/tests/bot-attention-badge.test.mjs b/apps/desktop/src/plugins/hermes-bots/tests/bot-attention-badge.test.mjsindex a011668d097..42fc318dea9 100644--- a/apps/desktop/src/plugins/hermes-bots/tests/bot-attention-badge.test.mjs+++ b/apps/desktop/src/plugins/hermes-bots/tests/bot-attention-badge.test.mjs@@ -138,8 +138,11 @@ test('hooks: relay delivery and group member turns note/clear attention', () =>test('render: roster row shows an amber warning glyph with a per-class hint', () => {assert.match(pluginSource, /BOT_ATTENTION_HINTS\[attention\.reason\]/)assert.match(pluginSource, /name: 'warning'/)- // Lookup covers both key shapes so relay- and group-recorded state render.- assert.match(pluginSource, /attentionByKey\[botSelectionKey\(bot\)\] \|\| attentionByKey\[botRosterKey\(bot\)\]/)+ // Lookup covers all three key shapes so relay- and group-recorded state+ // renders, including local/unannotated rows keyed by the ACTIVE connection.+ assert.match(pluginSource, /attentionByKey\[botSelectionKey\(bot\)\] \|\|/)+ assert.match(pluginSource, /attentionByKey\[botRosterKey\(bot\)\] \|\|/)+ assert.match(pluginSource, /attentionByKey\[`\$\{bot\?\.connectionId \|\| activeConnectionId\}::\$\{bot\?\.name \|\| 'default'\}`\]/)// Hint copy for every class.assert.match(pluginSource, /Sign in again for this profile/)assert.match(pluginSource, /Quota or balance exhausted/)