A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.
Count only Chief's messages in the replaced-Chief test
Fei24116fc1a661cbfc
diff --git a/ds-bot/test/roster.test.js b/ds-bot/test/roster.test.jsindex b1e8740a..8485f8ec 100644--- a/ds-bot/test/roster.test.js+++ b/ds-bot/test/roster.test.js@@ -356,13 +356,15 @@ test('a hidden Bot made Main Bot shows again, and a replaced Chief drops its helconst writer = (await call('create-bot', { name: 'Writer' })).valueawait call('set-flags', { id: writer.id, hidden: true })await settle()- const greeted = sent.length+ // Only Chief's messages count: Writer's own greeting can go out late on a busy machine.+ const toChief = () => sent.filter(item => item.sessionId === chief).length+ const greeted = toChief()const team = (await call('set-main', { id: writer.id, main: true, replace: chief })).valueassert.equal(team.bots.find(bot => bot.id === writer.id).hidden, undefined)assert.equal(team.bots.find(bot => bot.id === chief).waiting, undefined)await call('update-bot', { id: chief, model: 'deepseek/deepseek-v4-flash' })await settle()- assert.equal(sent.length, greeted)+ assert.equal(toChief(), greeted)})const takeover = (home, team) => {