A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.
Show a copied team's default team workspace in the settings
Fei2411ba4cd38371a6
diff --git a/ds-bot/src/host/folders.js b/ds-bot/src/host/folders.jsindex 495f6081..c7a735dc 100644--- a/ds-bot/src/host/folders.js+++ b/ds-bot/src/host/folders.js@@ -164,7 +164,8 @@ export function install(rt) {async function folderEndpoint(endpoint, body, signal) {switch (endpoint) {case 'folders': {- const team = teamFolder() ?? null+ // A copied team has its workspace registered at its first turn; until then it is the default.+ const team = teamFolder() ?? resolve(defaultTeamFolder())const known = new Map()for (const workspace of ctx.workspaceRegistry.list?.() ?? []) {if (workspace.path !== team) known.set(workspace.path, workspace.title)diff --git a/ds-bot/test/work-dir.test.js b/ds-bot/test/work-dir.test.jsindex ef92184f..9ff2e53c 100644--- a/ds-bot/test/work-dir.test.js+++ b/ds-bot/test/work-dir.test.js@@ -619,6 +619,15 @@ test('the team workspace holds no DeepSeek Harness data, apart from the plugin\'assert.equal(state().workspaceId, 'w-new')})+test('a copied team shows its default team workspace before the workspace is registered', async (t) => {+ const copied = { ...TEAM }+ delete copied.workspaceId+ const { home, state, call, stop } = await start({ team: copied })+ t.after(stop)+ assert.equal(state().workspaceId, undefined)+ assert.equal((await call('folders', {})).value.team, resolve(join(home, 'workspace')))+})+test('in the desktop app the user\'s own DSH data is no team workspace and no Bot\'s folder either', async (t) => {const { root, state, call, stop } = await start()t.after(stop)