A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.
Pass the owner Peer when the app collects the page injections
Fei2411b0145dd7ed2b
diff --git a/app/src/host.mjs b/app/src/host.mjsindex 5471592e..6ce1c038 100644--- a/app/src/host.mjs+++ b/app/src/host.mjs@@ -68,7 +68,8 @@ async function main() {const missing = ['sessionController', 'workspaceRegistry'].filter(name => ctx.get(name) === undefined)if (missing.length > 0) throw new Error(`The profile in ${profile.dir} did not start ${missing.join(', ')}; the engine log has the cause`)const url = connection.authenticatedUrl(`http://127.0.0.1:${String(webServer.port)}`)- await send({ type: 'ready', url, injections: webServer.collectIndexInjections() })+ // The window is the owner's page; DSH 0.2.2 builds the injections for the Peer they serve.+ await send({ type: 'ready', url, injections: webServer.collectIndexInjections(connection.browserPeer) })}main().catch(async (error) => {