Skip to content

A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.

Label a stopped notice 'Stopped by' in earlier chat rows

lulu feizhu1f32603c8cff
diff --git a/ds-bot/client.js b/ds-bot/client.js
index cf9382a0..373b5b3a 100644
--- a/ds-bot/client.js
+++ b/ds-bot/client.js
@@ -3863,7 +3863,7 @@ function EarlierParts({ sessionId, roster, actions }) {
case "event": {
if (row.role === "report") return (0, import_react6.createElement)(GroupEvent, { key, prefix: t("Replies from"), room: roster.roomsById[row.roomId], name: t("a group chat"), roster, actions });
const other = roster.byId[row.botId] ?? { id: row.botId, name: row.name ?? t("a Bot"), color: "gray" };
- return (0, import_react6.createElement)(EventLine, { key, prefix: row.role === "reply" ? t("Reply from") : t("Message from"), bots: [other], onOpen: () => {
+ return (0, import_react6.createElement)(EventLine, { key, prefix: row.role === "stopped" ? t("Stopped by") : row.role === "reply" ? t("Reply from") : t("Message from"), bots: [other], onOpen: () => {
if (selfId && other.id) actions.openExchange(selfId, other.id);
} });
}
diff --git a/ds-bot/src/client/cells.js b/ds-bot/src/client/cells.js
index f3415cf4..4f40ba07 100644
--- a/ds-bot/src/client/cells.js
+++ b/ds-bot/src/client/cells.js
@@ -247,7 +247,7 @@ function EarlierParts({ sessionId, roster, actions }) {
case 'event': {
if (row.role === 'report') return h(GroupEvent, { key, prefix: t('Replies from'), room: roster.roomsById[row.roomId], name: t('a group chat'), roster, actions })
const other = roster.byId[row.botId] ?? { id: row.botId, name: row.name ?? t('a Bot'), color: 'gray' }
- return h(EventLine, { key, prefix: row.role === 'reply' ? t('Reply from') : t('Message from'), bots: [other], onOpen: () => { if (selfId && other.id) actions.openExchange(selfId, other.id) } })
+ return h(EventLine, { key, prefix: row.role === 'stopped' ? t('Stopped by') : row.role === 'reply' ? t('Reply from') : t('Message from'), bots: [other], onOpen: () => { if (selfId && other.id) actions.openExchange(selfId, other.id) } })
}
default: return null
}