Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

chore: drop internal LOBE issue markers from comments (#19905)

Arvin Xu312d588726c6
diff --git a/apps/server/src/services/aiAgent/shareGate.test.ts b/apps/server/src/services/aiAgent/shareGate.test.ts
index cc810e3b04d..afa91f6df3c 100644
--- a/apps/server/src/services/aiAgent/shareGate.test.ts
+++ b/apps/server/src/services/aiAgent/shareGate.test.ts
@@ -617,7 +617,7 @@ describe('applyShareGateToToolSet', () => {
// `lobe-skills` is an always-on builtin, so it reaches the tool set without
// ever appearing in the owner's `toolGrants`. Its opt-in is the SKILL list:
// the gate derives a synthetic tool grant from `skillGrants`, then narrows it
- // to the two read APIs. Regression for LOBE-14266, where the tool was simply
+ // to the two read APIs. Regression for the bug where the tool was simply
// absent from the allowlist and every skill-driven shared agent broke.
const buildSkillsToolSet = () => {
const toolSet = buildToolSet([
diff --git a/apps/server/src/services/bot/platforms/discord/client.test.ts b/apps/server/src/services/bot/platforms/discord/client.test.ts
index 876e39346f5..1e802e4d683 100644
--- a/apps/server/src/services/bot/platforms/discord/client.test.ts
+++ b/apps/server/src/services/bot/platforms/discord/client.test.ts
@@ -345,7 +345,7 @@ describe('DiscordGatewayClient', () => {
],
};
- it('names every mention and only strips the leading self mention (LOBE-14154)', () => {
+ it('names every mention and only strips the leading self mention', () => {
const client = createNumericClient();
expect(client.sanitizeUserInput!('<@111> 我搞了个 <@2000> 来抢你的活', { raw } as any)).toBe(
'@Shadow Arvin 我搞了个 @Lobo 来抢你的活',
diff --git a/apps/server/src/services/bot/platforms/discord/mentions.test.ts b/apps/server/src/services/bot/platforms/discord/mentions.test.ts
index 4dddb2a3e26..1b231e26d8a 100644
--- a/apps/server/src/services/bot/platforms/discord/mentions.test.ts
+++ b/apps/server/src/services/bot/platforms/discord/mentions.test.ts
@@ -84,7 +84,7 @@ describe('stripLeadingBotMention', () => {
});
describe('sanitizeDiscordUserInput', () => {
- it('keeps the other bot and the self mention mid-sentence readable (LOBE-14154)', () => {
+ it('keeps the other bot and the self mention mid-sentence readable', () => {
const text = `<@${SHADOW}> 我搞了个 <@${ME}> 来抢你的活,你怎么说`;
expect(sanitizeDiscordUserInput(text, ME, makeMessage(mentionsRaw))).toBe(
'@Shadow Arvin 我搞了个 @Lobo 来抢你的活,你怎么说',
diff --git a/apps/server/src/services/bot/platforms/discord/mentions.ts b/apps/server/src/services/bot/platforms/discord/mentions.ts
index af967b02dbf..5700e473d06 100644
--- a/apps/server/src/services/bot/platforms/discord/mentions.ts
+++ b/apps/server/src/services/bot/platforms/discord/mentions.ts
@@ -80,7 +80,10 @@ export const stripLeadingBotMention = (text: string, applicationId: string): str
text.replace(new RegExp(`^(?:\\s*<@!?${applicationId}>)+\\s*`), '');
/**
- * Full inbound-text normalization for Discord (see LOBE-14154):
+ * Full inbound-text normalization for Discord. When a user @-mentions two bots
+ * in one message, the raw text must keep both mentions named and readable so the
+ * model sees the full message — not just the leading part, which it used to
+ * misread as another bot trying to take over:
* 1. strip the leading self-mention prefix;
* 2. resolve every remaining user mention to `@name` via the message payload;
* 3. drop self mentions that could not be named (Gateway path, no `mentions`)
diff --git a/apps/server/src/services/toolExecution/serverRuntimes/__tests__/message.test.ts b/apps/server/src/services/toolExecution/serverRuntimes/__tests__/message.test.ts
index b101d4724b8..78c2932de64 100644
--- a/apps/server/src/services/toolExecution/serverRuntimes/__tests__/message.test.ts
+++ b/apps/server/src/services/toolExecution/serverRuntimes/__tests__/message.test.ts
@@ -622,7 +622,7 @@ describe('messageRuntime', () => {
});
});
- // ==================== Connection routing (LOBE-14350) ====================
+ // ==================== Connection routing ====================
// A WeChat account can hold both a per-agent bot integration and a System
// Bot connection. Sends must go out through the connection the caller
// named, or — for the conversation the run is replying in — through the one
diff --git a/apps/server/src/services/toolExecution/serverRuntimes/message/index.ts b/apps/server/src/services/toolExecution/serverRuntimes/message/index.ts
index a6d7b6d3580..6827ecc8351 100644
--- a/apps/server/src/services/toolExecution/serverRuntimes/message/index.ts
+++ b/apps/server/src/services/toolExecution/serverRuntimes/message/index.ts
@@ -368,7 +368,7 @@ export const messageRuntime: ServerRuntimeRegistration = {
* Without the inbound step, a WeChat conversation held over the System
* Bot would have its files sent through whatever per-agent WeChat bot the
* account also has — including a failed one, whose expired session rejects
- * every upload (LOBE-14350).
+ * every upload.
*/
const resolveRoute = async (
params: MessageRouteParams,
diff --git a/packages/prompts/src/prompts/botPlatformContext/index.ts b/packages/prompts/src/prompts/botPlatformContext/index.ts
index 20e9f84b107..c7f2c6d24fc 100644
--- a/packages/prompts/src/prompts/botPlatformContext/index.ts
+++ b/packages/prompts/src/prompts/botPlatformContext/index.ts
@@ -108,7 +108,7 @@ export const formatBotPlatformContext = ({
// Text replies cannot carry files, so delivering a generated file into this
// conversation is the one legitimate `sendMessage` here. Without a route
// hint the model runs `<outbound_routing>` discovery and may pick another
- // bot on the same platform — one with an expired session (LOBE-14350).
+ // bot on the same platform — one with an expired session.
'Exception — files: your text reply cannot carry attachments. To deliver a file / image / video / audio into THIS conversation, call `sendMessage` with `attachments` for the current conversation and pass NEITHER `botId` NOR `messengerInstallationId`: the runtime sends it through the same connection this conversation arrived on. Do not run `listBots` / `listMessengers` for this.',
'`sendMessage` / `sendDirectMessage` should otherwise ONLY be used when the user explicitly asks you to send a message to a DIFFERENT channel or user.',
'</message_delivery>',