A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.
Keep a whole event line inside a narrow chat
FeiZhuLulu25f19a473677
diff --git a/ds-bot/client.js b/ds-bot/client.jsindex c96586b3..2107c525 100644--- a/ds-bot/client.js+++ b/ds-bot/client.js@@ -2422,8 +2422,11 @@ var CONVERSATION_CSS = `.bt-event button{border:0;background:none;color:inherit;font:inherit;display:inline-flex;align-items:center;gap:4px;cursor:pointer;height:24px;padding:4px 6px 4px 4px;border-radius:999px;box-sizing:border-box;transition:background-color .12s ease}.bt-event button:hover{background:var(--bt-hover)}.bt-event button:active{background:var(--bt-active)}-.bt-event button.bt-event-whole{padding:4px 6px 4px 8px}-.bt-event-whole>span{margin-right:2px}+.bt-event button.bt-event-whole{min-width:0;max-width:100%;padding:4px 6px 4px 8px}+.bt-event-whole>*{flex:none}+.bt-event-whole>span:first-child{margin-right:2px}+/* One button cannot wrap like separate parts, so a long name is cut to fit the chat. */+.bt-event-whole>.bt-event-name{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bt-time-sep{display:flex;justify-content:center;align-items:center;height:28px;margin:14px 0 8px;font-size:12px;line-height:16px;color:var(--bt-ink-2);white-space:nowrap}[class*="_scroll"]>[class*="_column"]::before{content:var(--bt-first-sep,none);display:block;flex:none;height:28px;margin:17px 0 12px;font-size:12px;line-height:28px;text-align:center;color:var(--bt-ink-2);white-space:nowrap}.bt-activity{display:flex;align-items:center;gap:10px;margin:8px 0 4px 2px;font-size:14px;color:var(--bt-ink-2)}@@ -3724,10 +3727,10 @@ function EventLine({ prefix, bots, joiner = t("and"), onOpen, whole = false }) {{ className: "bt-event" },(0, import_react6.createElement)("button",- { type: "button", className: "bt-event-whole", onClick: () => onOpen?.(bots[0]) },+ { type: "button", className: "bt-event-whole", title: bots[0].name, onClick: () => onOpen?.(bots[0]) },(0, import_react6.createElement)("span", null, prefix),(0, import_react6.createElement)(BotMark, { bot: bots[0], size: 16 }),- bots[0].name+ (0, import_react6.createElement)("span", { className: "bt-event-name" }, bots[0].name)));}diff --git a/ds-bot/src/client/cells.js b/ds-bot/src/client/cells.jsindex c1aad33b..908b8a6c 100644--- a/ds-bot/src/client/cells.js+++ b/ds-bot/src/client/cells.js@@ -126,8 +126,8 @@ export function AssistantCell({ node, groupPart, sessionId, useRoster, useUi, usfunction EventLine({ prefix, bots, joiner = t('and'), onOpen, whole = false }) {if (whole && bots.length === 1) {return h('div', { className: 'bt-event' },- h('button', { type: 'button', className: 'bt-event-whole', onClick: () => onOpen?.(bots[0]) },- h('span', null, prefix), h(BotMark, { bot: bots[0], size: 16 }), bots[0].name))+ h('button', { type: 'button', className: 'bt-event-whole', title: bots[0].name, onClick: () => onOpen?.(bots[0]) },+ h('span', null, prefix), h(BotMark, { bot: bots[0], size: 16 }), h('span', { className: 'bt-event-name' }, bots[0].name)))}const parts = []parts.push(h('span', { key: 'p' }, prefix))diff --git a/ds-bot/src/client/styles.js b/ds-bot/src/client/styles.jsindex 4edf5841..8313449a 100644--- a/ds-bot/src/client/styles.js+++ b/ds-bot/src/client/styles.js@@ -775,8 +775,11 @@ export const CONVERSATION_CSS = `.bt-event button{border:0;background:none;color:inherit;font:inherit;display:inline-flex;align-items:center;gap:4px;cursor:pointer;height:24px;padding:4px 6px 4px 4px;border-radius:999px;box-sizing:border-box;transition:background-color .12s ease}.bt-event button:hover{background:var(--bt-hover)}.bt-event button:active{background:var(--bt-active)}-.bt-event button.bt-event-whole{padding:4px 6px 4px 8px}-.bt-event-whole>span{margin-right:2px}+.bt-event button.bt-event-whole{min-width:0;max-width:100%;padding:4px 6px 4px 8px}+.bt-event-whole>*{flex:none}+.bt-event-whole>span:first-child{margin-right:2px}+/* One button cannot wrap like separate parts, so a long name is cut to fit the chat. */+.bt-event-whole>.bt-event-name{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bt-time-sep{display:flex;justify-content:center;align-items:center;height:28px;margin:14px 0 8px;font-size:12px;line-height:16px;color:var(--bt-ink-2);white-space:nowrap}[class*="_scroll"]>[class*="_column"]::before{content:var(--bt-first-sep,none);display:block;flex:none;height:28px;margin:17px 0 12px;font-size:12px;line-height:28px;text-align:center;color:var(--bt-ink-2);white-space:nowrap}.bt-activity{display:flex;align-items:center;gap:10px;margin:8px 0 4px 2px;font-size:14px;color:var(--bt-ink-2)}