🤯 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.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
chore: remove internal LOBE-14771 references from code comments (#21391)
Arvin Xu6dfeabd89ca8
diff --git a/apps/server/src/services/aiAgent/pipeline/__tests__/toolDiscovery.connectorTokenRefresh.test.ts b/apps/server/src/services/aiAgent/pipeline/__tests__/toolDiscovery.connectorTokenRefresh.test.tsindex 5d679c997e3..a7792b1f10b 100644--- a/apps/server/src/services/aiAgent/pipeline/__tests__/toolDiscovery.connectorTokenRefresh.test.ts+++ b/apps/server/src/services/aiAgent/pipeline/__tests__/toolDiscovery.connectorTokenRefresh.test.ts@@ -109,7 +109,7 @@ const run = (plugins: string[]) =>const manifestToken = (manifest: unknown) =>(manifest as { mcpParams?: { auth?: { accessToken?: string } } })?.mcpParams?.auth?.accessToken;-// LOBE-14771: manifests carry the connector token for the whole run, so an+// Manifests carry the connector token for the whole run, so an// expired-but-refreshable token used to 401 on the first call after expiry.describe('discoverTools — connector OAuth token refresh', () => {it('builds a pinned connector manifest from refreshed credentials', async () => {diff --git a/apps/server/src/services/connector/tokens.test.ts b/apps/server/src/services/connector/tokens.test.tsindex 433000b4469..d2370b43f01 100644--- a/apps/server/src/services/connector/tokens.test.ts+++ b/apps/server/src/services/connector/tokens.test.ts@@ -36,7 +36,7 @@ describe('refreshExpiredConnectorTokens', () => {vi.clearAllMocks();});- // LOBE-14771: agent runs baked the stored (expired) token into manifests, so+ // Agent runs baked the stored (expired) token into manifests, so// the first call after every expiry 401'd even when it was refreshable.it('refreshes an expired token and persists the rotated credentials', async () => {vi.mocked(refreshConnectorToken).mockResolvedValue({diff --git a/apps/server/src/services/connector/tokens.ts b/apps/server/src/services/connector/tokens.tsindex 87cd8a1ef9e..e1518c0efae 100644--- a/apps/server/src/services/connector/tokens.ts+++ b/apps/server/src/services/connector/tokens.ts@@ -175,7 +175,7 @@ const refreshOnce = (* background tool sync scheduled after the run started, so the first call after* every access-token expiry 401'd even when the refresh token was still valid —* and the model then reported a connection that only needed a refresh as one- * the owner must reconnect (LOBE-14771).+ * the owner must reconnect.** `connectorModel` must carry the gatekeeper so rotated credentials are* persisted encrypted. Never throws; a connector that cannot be refreshed isdiff --git a/apps/server/src/services/toolExecution/__tests__/index.test.ts b/apps/server/src/services/toolExecution/__tests__/index.test.tsindex 285932b1b5d..3adafd7cafb 100644--- a/apps/server/src/services/toolExecution/__tests__/index.test.ts+++ b/apps/server/src/services/toolExecution/__tests__/index.test.ts@@ -848,7 +848,7 @@ describe('ToolExecutionService', () => {});});- // LOBE-14771: the SDK puts the 401 status only in `.code` and MCPService+ // The SDK puts the 401 status only in `.code` and MCPService// wraps it in a TRPCError, so the model used to see a bare "Invalid or// expired token" and told Share visitors to reauthorize a connection that// belongs to the creator.diff --git a/apps/server/src/services/toolExecution/mcpAuthError.ts b/apps/server/src/services/toolExecution/mcpAuthError.tsindex 656c4f3060e..4816a1422a5 100644--- a/apps/server/src/services/toolExecution/mcpAuthError.ts+++ b/apps/server/src/services/toolExecution/mcpAuthError.ts@@ -31,8 +31,7 @@ export const isMcpAuthorizationError = (error: unknown): boolean => {* error says nothing about who owns the connection, so models guessed and told* Agent Share visitors to "reauthorize in the browser" — but a shared run* executes with a connection from the creator's side (theirs, or one a- * workspace member authorized), which the visitor can neither see nor repair- * (LOBE-14771).+ * workspace member authorized), which the visitor can neither see nor repair.*/export const buildMcpAuthorizationErrorContent = (identifier: string,