Skip to content

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

Name the service on a connector request card

Fei241185054e52b29a
diff --git a/ds-bot/src/host/connectors/index.js b/ds-bot/src/host/connectors/index.js
index bf044cec..42ebc750 100644
--- a/ds-bot/src/host/connectors/index.js
+++ b/ds-bot/src/host/connectors/index.js
@@ -544,6 +544,7 @@ export function install(rt) {
...(exec.callId ? { callId: exec.callId } : {}),
sessionId: agentId,
connectorId: id,
+ name: entry.name,
purpose: String(args.purpose ?? '').trim().slice(0, 300),
status: 'pending',
askedAt: now,
diff --git a/ds-bot/test/connectors-engine.test.js b/ds-bot/test/connectors-engine.test.js
index 3a4b500d..e12e7b05 100644
--- a/ds-bot/test/connectors-engine.test.js
+++ b/ds-bot/test/connectors-engine.test.js
@@ -308,7 +308,9 @@ test('refresh is single-flight, rotates the refresh token, and invalid_grant mea
assert.equal(JSON.stringify(logs).includes('RT-2'), false)
// A connector that needs sign-in again can still be asked for with a card.
const ask = rt.teamTools.find(d => d.name === 'request_connector')
- assert.doesNotMatch(String(await ask.execute({ id: 'notion', purpose: 'Search pages' }, { agent: { id: 'm1' }, concludeTurn: () => {} })), /already connected/)
+ const asked = String(await ask.execute({ id: 'notion', purpose: 'Search pages' }, { agent: { id: 'm1' }, concludeTurn: () => {} }))
+ assert.doesNotMatch(asked, /already connected/)
+ assert.equal(rt.state.connectorRequests.m1.at(-1).name, 'Notion', 'the card names the service, not its id')
})
test('refresh uses the client that signed in: cimd, catalog, and legacy inference', async (t) => {