Skip to content

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

Merge remote-tracking branch 'origin/dev' into fix/198-long-post-mention

Fei241171f8e73bdc53
diff --cc ds-bot/src/host/tools.js
index 0c868406,27fdd2e1..0d0ffc1e
--- a/ds-bot/src/host/tools.js
+++ b/ds-bot/src/host/tools.js
@@@ -599,7 -592,9 +599,9 @@@ export function install(rt)
const sub = work === undefined ? undefined : randomUUID()
if (sub !== undefined) rt.openWork(sub, { from: self, room: room.id, parent: work })
try {
- await rt.postToRoom(room, sender, long.text, { mentions, ...(reportBack ? { reportBack: true } : {}), ...(member ? { member: true } : {}), ...(sub ? { sub } : {}), ...(long.length ? { length: long.length } : {}) }, long.files)
+ // A post that wants the replies names the conversation it was written
+ // from, so the report comes back there instead of the own chat.
- await rt.postToRoom(room, sender, long.text, { ...(reportBack ? { reportBack: true, ...callerRoom(exec) } : {}), ...(member ? { member: true } : {}), ...(sub ? { sub } : {}), ...(long.length ? { length: long.length } : {}) }, long.files)
++ await rt.postToRoom(room, sender, long.text, { mentions, ...(reportBack ? { reportBack: true, ...callerRoom(exec) } : {}), ...(member ? { member: true } : {}), ...(sub ? { sub } : {}), ...(long.length ? { length: long.length } : {}) }, long.files)
} catch (failure) {
if (sub !== undefined) rt.dropWork(sub)
return `Could not post in "${room.name}": ${failure.message}`