A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.
Merge branch 'main' into devin/message-bot-steer
Fei241103f6cc5cc312
diff --cc ds-bot/src/host/delivery.jsindex 11ba757e,f7049806..50c656ec--- a/ds-bot/src/host/delivery.js+++ b/ds-bot/src/host/delivery.js@@@ -48,11 -46,10 +48,11 @@@ export function install(rt)...(replyTo ? { replyTo } : {}),...(roomId ? { roomId } : {}),...(audience === 'user' ? { audience } : {}),+ ...(deferred ? { deferred: true } : {}),}- if (record && EXCHANGE_ROLES.has(role)) {+ if (EXCHANGE_ROLES.has(role) && !deferred) {state.exchanges.push({ id: exchangeId, from: fromId, to: toId, text, role, time: Date.now(), ...(replyTo ? { replyTo } : {}), ...(audience === 'user' ? { audience } : {}) })- void rt.save()+ void rt.save().catch(() => {})}const agent = await resolveAgent(sessionId ?? rt.chatOf(toId))// A steered message cuts into a running turn at its next step; a follow-updiff --cc ds-bot/test/install.test.jsindex 754bf635,cd37a79d..f01c8550--- a/ds-bot/test/install.test.js+++ b/ds-bot/test/install.test.js@@@ -40,8 -40,10 +40,9 @@@ test('apply registers listeners, tools'on agent/created','effect ds-bot: identity section','prompt bot-identity 640',+ 'on agent/pre-step (prepend)','tool list_bots','tool message_bot',- 'tool interrupt_bot','tool stop_bot','tool create_bot','tool update_bot',