A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.
Skip agent-adopt for subagent Sessions
Fei2411c7f68c7c6a1b
diff --git a/ds-bot/client.js b/ds-bot/client.jsindex 0c7d9bf8..939f21b2 100644--- a/ds-bot/client.js+++ b/ds-bot/client.js@@ -19526,6 +19526,7 @@ function apply(ctx) {const snapshot = roster.getSnapshot();if (snapshot.byId[main] !== void 0 || snapshot.roomsById[main] !== void 0 || agentOfSession(main) !== void 0) return;const row = list.byId[main];+ if (row?.origin === "subagent") return;const parent = row?.parentId ?? row?.parentSessionId;const forkedFromAgent = parent !== void 0 && agentOfSession(parent) === agentId;if (row?.blank !== true && !forkedFromAgent) return;diff --git a/ds-bot/src/client/index.js b/ds-bot/src/client/index.jsindex 6b8b5589..3938461a 100644--- a/ds-bot/src/client/index.js+++ b/ds-bot/src/client/index.js@@ -879,6 +879,9 @@ export function apply(ctx) {// workspace picker, or a fork of a Session the same Agent owns. An existing// Session the user opened from the sidebar keeps its team tools and stays out.const row = list.byId[main]+ // A subagent child reports the Agent Session as its parent, but adopting it+ // would steal it from subagent routing — the Host refuses anyway, so skip.+ if (row?.origin === 'subagent') return// The client list maps the fork's parent to `parentId`; the raw field is// the fallback for shapes that skip the mapping.const parent = row?.parentId ?? row?.parentSessionId