Skip to content

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

Call list_bots through the runtime's team tools in the restart poll test

Fei24110230a5c57a61
diff --git a/ds-bot/test/roster.test.js b/ds-bot/test/roster.test.js
index 6225cdb7..45f78bee 100644
--- a/ds-bot/test/roster.test.js
+++ b/ds-bot/test/roster.test.js
@@ -318,7 +318,7 @@ test('an unchanged state answer skips the live fields a window already holds', a
test('a window holding live state gets fresh fields after the host restarts at the same revision', async (t) => {
const first = start({ version: 1, mainBotIds: ['chief'], bots: { chief: { id: 'chief', sessionId: 'chief', name: 'Chief' } } })
t.after(first.stop)
- await first.ctx.registeredTools.get('list_bots').execute({}, { agent: { id: 'chief' } })
+ await rt.teamTools.find(d => d.name === 'list_bots').execute({}, { agent: { id: 'chief' } })
// Start working before the first poll, so both runs' first live answer would
// have counter 1 even though one is working and the other is idle.
for (const listener of first.ctx.listeners.get('session/event') ?? []) {