A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.
Label steering messages the Bot has not read yet
Fei2411cc248df4670d
diff --git a/ds-bot/client.js b/ds-bot/client.jsindex 14f2ed76..433f1439 100644--- a/ds-bot/client.js+++ b/ds-bot/client.js@@ -48,6 +48,7 @@ var ZH = {"Waiting for your answer": "等你回答","Waiting for {names}": "等 {names} 交回","Unread activity": "有未读",+ "Not read yet": "未读",Search: "搜索","New chat": "新对话","Back to chat": "返回对话",@@ -3368,6 +3369,11 @@ div:has(> nav [class*="_marks"]){display:none!important}[class*="_userRow"] [class*="_bubble"] [class*="_markdown"],[class*="_userRow"] [class*="_bubble"] a{color:inherit}/* Sent messages get the hover toolbar below; steering and unsent bubbles keep none. */[class*="_userRow"] [class*="_actions"]{display:none!important}+/* A steering message the Bot has not read yet shows a small unread label under+ its bubble's right edge; --bt-steer-unread is set per window (header.js), and+ the none fallback means no English can leak into a Chinese window. */+[data-pending-steering]{flex-wrap:wrap}+[data-pending-steering]::after{content:var(--bt-steer-unread,none);display:block;flex-basis:100%;width:100%;order:99;margin-top:4px;font-size:11px;line-height:14px;color:var(--bt-ink-3);font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right}[data-chat-flow-kind=user] [class*="_userRow"]{flex-direction:row-reverse;align-items:center;justify-content:flex-start}[data-chat-flow-kind=user] [class*="_actions"]{display:flex!important;height:24px!important;gap:2px!important;opacity:0!important;visibility:hidden;transition:opacity .12s ease,visibility .12s!important;flex:none}[data-chat-flow-kind=user] [class*="_userRow"]:hover [class*="_actions"],[data-chat-flow-kind=user] [class*="_userRow"]:focus-within [class*="_actions"]{opacity:1!important;visibility:visible}@@ -9131,6 +9137,9 @@ function HeaderPill({ sessionId, useRoster, useSessions, useSessionStatus, useSe(0, import_react15.useEffect)(() => {document.body.style.setProperty("--bt-placeholder", JSON.stringify(name ? t("Message {name}", { name }) : t("Message")));}, [name, t("Message")]);+ (0, import_react15.useEffect)(() => {+ document.body.style.setProperty("--bt-steer-unread", JSON.stringify(t("Not read yet")));+ }, [t("Not read yet")]);(0, import_react15.useEffect)(() => {actions.beginVisit(sessionId);return () => actions.endVisit(sessionId);diff --git a/ds-bot/src/client/header.js b/ds-bot/src/client/header.jsindex 4e3948d6..c7b14888 100644--- a/ds-bot/src/client/header.js+++ b/ds-bot/src/client/header.js@@ -82,6 +82,10 @@ export function HeaderPill({ sessionId, useRoster, useSessions, useSessionStatususeEffect(() => {document.body.style.setProperty('--bt-placeholder', JSON.stringify(name ? t('Message {name}', { name }) : t('Message')))}, [name, t('Message')])+ // The unread label under a pending steering bubble reads its text from here.+ useEffect(() => {+ document.body.style.setProperty('--bt-steer-unread', JSON.stringify(t('Not read yet')))+ }, [t('Not read yet')])useEffect(() => {actions.beginVisit(sessionId)return () => actions.endVisit(sessionId)diff --git a/ds-bot/src/client/i18n.js b/ds-bot/src/client/i18n.jsindex 3eb93caa..e6fc9fb5 100644--- a/ds-bot/src/client/i18n.js+++ b/ds-bot/src/client/i18n.js@@ -11,6 +11,7 @@ const ZH = {'Waiting for your answer': '等你回答','Waiting for {names}': '等 {names} 交回','Unread activity': '有未读',+ 'Not read yet': '未读',Search: '搜索','New chat': '新对话','Back to chat': '返回对话',diff --git a/ds-bot/src/client/styles.js b/ds-bot/src/client/styles.jsindex 94125e68..3d1b9ffa 100644--- a/ds-bot/src/client/styles.js+++ b/ds-bot/src/client/styles.js@@ -1055,6 +1055,11 @@ div:has(> nav [class*="_marks"]){display:none!important}[class*="_userRow"] [class*="_bubble"] [class*="_markdown"],[class*="_userRow"] [class*="_bubble"] a{color:inherit}/* Sent messages get the hover toolbar below; steering and unsent bubbles keep none. */[class*="_userRow"] [class*="_actions"]{display:none!important}+/* A steering message the Bot has not read yet shows a small unread label under+ its bubble's right edge; --bt-steer-unread is set per window (header.js), and+ the none fallback means no English can leak into a Chinese window. */+[data-pending-steering]{flex-wrap:wrap}+[data-pending-steering]::after{content:var(--bt-steer-unread,none);display:block;flex-basis:100%;width:100%;order:99;margin-top:4px;font-size:11px;line-height:14px;color:var(--bt-ink-3);font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right}[data-chat-flow-kind=user] [class*="_userRow"]{flex-direction:row-reverse;align-items:center;justify-content:flex-start}[data-chat-flow-kind=user] [class*="_actions"]{display:flex!important;height:24px!important;gap:2px!important;opacity:0!important;visibility:hidden;transition:opacity .12s ease,visibility .12s!important;flex:none}[data-chat-flow-kind=user] [class*="_userRow"]:hover [class*="_actions"],[data-chat-flow-kind=user] [class*="_userRow"]:focus-within [class*="_actions"]{opacity:1!important;visibility:visible}