π€― 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-XXX issue references from code comments (#18327)
Arvin Xu941403a556f5
diff --git a/apps/server/src/modules/AgentRuntime/adapters/serverCallLlmContextBuilder.ts b/apps/server/src/modules/AgentRuntime/adapters/serverCallLlmContextBuilder.tsindex 96acddd1c83..eeaf8d6ce00 100644--- a/apps/server/src/modules/AgentRuntime/adapters/serverCallLlmContextBuilder.ts+++ b/apps/server/src/modules/AgentRuntime/adapters/serverCallLlmContextBuilder.ts@@ -487,7 +487,7 @@ export const buildServerCallLlmContext = async ({// Group Agent Builder β mirrors the block above for the group Profile panel.// Without this the model has no idea which group it is editing, so it cannot// address members by id (updateAgentPrompt) and falls back to telling the user- // to wire the group up by hand (LOBE-12941).+ // to wire the group up by hand β built-in group agents were missing from the member list.let groupAgentBuilderContext: GroupAgentBuilderContext | undefined;const editingGroupId = state.metadata?.editingGroupId;if (editingGroupId && ctx.serverDB && ctx.userId) {diff --git a/apps/server/src/modules/Mecha/AgentToolsEngine/__tests__/index.test.ts b/apps/server/src/modules/Mecha/AgentToolsEngine/__tests__/index.test.tsindex 0668cb09dcf..ff73c70e386 100644--- a/apps/server/src/modules/Mecha/AgentToolsEngine/__tests__/index.test.ts+++ b/apps/server/src/modules/Mecha/AgentToolsEngine/__tests__/index.test.ts@@ -185,7 +185,7 @@ describe('createServerToolsEngine', () => {expect(availablePlugins).toContain('test-plugin');});- it('drops manifests without an api array instead of crashing the tools build (LOBE-12528)', () => {+ it('drops manifests without an api array instead of crashing the tools build', () => {// A DB plugin row whose manifest jsonb lacks `api` used to crash// ToolsEngine.convertManifestsToTools (`manifest.api.map`) and with it// every execAgent call of the affected user.diff --git a/apps/server/src/routers/lambda/__tests__/messenger.test.ts b/apps/server/src/routers/lambda/__tests__/messenger.test.tsindex baed8e53aa6..62de0f98734 100644--- a/apps/server/src/routers/lambda/__tests__/messenger.test.ts+++ b/apps/server/src/routers/lambda/__tests__/messenger.test.ts@@ -338,7 +338,7 @@ describe('messengerRouter.listMyInstallations', () => {// Telegram is an env/DB-backed singleton with no `messenger_installations`// row, and it stays absent here on purpose: this procedure doubles as// send-target discovery for the client tool adapter, which cannot act on a- // `messengerInstallationId` (LOBE-12706). Surfacing the singleton would let+ // `messengerInstallationId` β the client adapter cannot route sends through a System Bot installation. Surfacing the singleton would let// the model pick a target that then fails with `No enabled bot found for// platform "telegram"`. Reaching the user themselves goes through// `sendMessengerPush` and never consults this list.diff --git a/apps/server/src/routers/lambda/__tests__/workspaceUserSettings.test.ts b/apps/server/src/routers/lambda/__tests__/workspaceUserSettings.test.tsindex 2fb623ff5b2..381e15160cc 100644--- a/apps/server/src/routers/lambda/__tests__/workspaceUserSettings.test.ts+++ b/apps/server/src/routers/lambda/__tests__/workspaceUserSettings.test.ts@@ -60,7 +60,7 @@ describe('workspaceUserSettingsRouter.updatePreference', () => {mockChatGroupUpdate.mockResolvedValue({ id: 'cg_1' });});- describe('legacy sidebarGroupAssignments compat (LOBE-12860)', () => {+ describe('legacy sidebarGroupAssignments compat for "Move to Category"', () => {it('translates a pre-shared-sidebar move into the shared sessionGroupId write', async () => {// A client from before the shared-sidebar change still sends its// "Move to Category" through this per-member map, which the sidebar nodiff --git a/apps/server/src/routers/lambda/messenger.ts b/apps/server/src/routers/lambda/messenger.tsindex 87e4651f8c4..d99e2acaf33 100644--- a/apps/server/src/routers/lambda/messenger.ts+++ b/apps/server/src/routers/lambda/messenger.ts@@ -974,7 +974,7 @@ export const messengerRouter = router({// Telegram is deliberately absent here even though the account link makes it// reachable. This list doubles as send-target discovery for the client tool// adapter, which resolves a per-agent `botId` from `platform` and ignores- // `messengerInstallationId` (see LOBE-12706). Surfacing the synthetic+ // `messengerInstallationId` β the client adapter cannot route sends through a System Bot installation. Surfacing the synthetic// singleton would turn a clean "I can't reach Telegram" into a confusing// `No enabled bot found for platform "telegram"` for anyone who linked the// System Bot but has no per-agent Telegram provider. Reaching the userdiff --git a/apps/server/src/services/agent/index.test.ts b/apps/server/src/services/agent/index.test.tsindex 6704f8f82cf..925389e97aa 100644--- a/apps/server/src/services/agent/index.test.ts+++ b/apps/server/src/services/agent/index.test.ts@@ -516,7 +516,7 @@ describe('AgentService', () => {// Builtin agent rows are provisioned without avatar; the client replaces its// cached entry with this snapshot, so the snapshot must carry the builtin- // avatar or the UI degrades to the default robot avatar (LOBE-12876)+ // avatar or the UI degrades to the default robot avatarit('should fall back to the builtin avatar when a builtin agent row has none', async () => {const mockAgent = {avatar: null,diff --git a/apps/server/src/services/toolExecution/serverRuntimes/groupAgentBuilder.ts b/apps/server/src/services/toolExecution/serverRuntimes/groupAgentBuilder.tsindex d3bc53fffaf..5dfb0b22a56 100644--- a/apps/server/src/services/toolExecution/serverRuntimes/groupAgentBuilder.ts+++ b/apps/server/src/services/toolExecution/serverRuntimes/groupAgentBuilder.ts@@ -7,7 +7,7 @@* `toolExecution/builtin.ts` throws `Builtin tool "lobe-group-agent-builder" is* not implemented` and *every* member/config mutation fails β the model then* falls back to generic agent creation, which spawns standalone agents outside- * the group (LOBE-12941).+ * the group β built-in group agents were missing from the member list.** The edited group rides on `ctx.editingGroupId` (see `ExecAgentAppContext`),* NOT `ctx.groupId`: the builder conversation is owned by the builtin builderdiff --git a/apps/server/src/services/verify/prompts.ts b/apps/server/src/services/verify/prompts.tsindex 5e30b2b8003..279f72fd1dc 100644--- a/apps/server/src/services/verify/prompts.ts+++ b/apps/server/src/services/verify/prompts.ts@@ -221,7 +221,7 @@ export interface ReviewPredictPromptInput {}/**- * The offline baseline (LOBE-13035, 187 real samples across kimi-k3,+ * The offline baseline (187 real samples across kimi-k3,* gemini-3.6-flash and gemini-3.1-pro) shaped every rule below. Two findings did* most of the shaping:*diff --git a/packages/builtin-tool-activator/src/ExecutionRuntime/index.ts b/packages/builtin-tool-activator/src/ExecutionRuntime/index.tsindex 285a514697a..fe52e10eb25 100644--- a/packages/builtin-tool-activator/src/ExecutionRuntime/index.ts+++ b/packages/builtin-tool-activator/src/ExecutionRuntime/index.ts@@ -109,7 +109,7 @@ export class ActivatorExecutionRuntime {// manifest (systemRole + API schemas) injected into the system prompt// from the next LLM call onwards, so the result only needs to list the// newly callable APIs β returning the full docs here would double-carry- // them in every subsequent payload (LOBE-5684).+ // them in every subsequent payload.const apiNames = manifests.flatMap((manifest) =>manifest.apiDescriptions.length > 0? manifest.apiDescriptions.map((api) => `${manifest.identifier}.${api.name}`)diff --git a/packages/builtin-tool-local-system/src/__tests__/systemRole.test.ts b/packages/builtin-tool-local-system/src/__tests__/systemRole.test.tsindex cba2939c1cd..79fdb38926f 100644--- a/packages/builtin-tool-local-system/src/__tests__/systemRole.test.ts+++ b/packages/builtin-tool-local-system/src/__tests__/systemRole.test.ts@@ -12,7 +12,7 @@ describe('systemRole templates', () => {* `.desktop` variant is a client-only vite module swap. Keep the environment* facts in sync: a placeholder present only in the desktop variant means* gateway prompts silently lose information the local prompt has (this is- * how gateway runs ended up without the known-locations list, LOBE-12692).+ * how gateway runs ended up without the known-locations list).*/it('generic template carries every placeholder the desktop variant has', () => {const generic = extractPlaceholders(genericPrompt);diff --git a/packages/builtin-tool-local-system/src/shellSyntaxGuidance.ts b/packages/builtin-tool-local-system/src/shellSyntaxGuidance.tsindex 3a8ca0301ee..eaa2ad6fbb7 100644--- a/packages/builtin-tool-local-system/src/shellSyntaxGuidance.ts+++ b/packages/builtin-tool-local-system/src/shellSyntaxGuidance.ts@@ -3,7 +3,7 @@* the local-system system role, so the model only ever sees instructions for* the shell `runCommand` actually spawns. The previous prompt always carried* the PowerShell 5.1 guidance, which anchored models into emitting PowerShell- * commands even when the user had selected Git Bash (LOBE-12692).+ * commands even when the user had selected Git Bash.** Matching is by the human-readable shell names produced by `getShellInfo()`* in `@lobechat/local-file-shell` ("Git Bash", "PowerShell 7+ (pwsh)",diff --git a/packages/const/src/apiKeyScope.ts b/packages/const/src/apiKeyScope.tsindex c7762dee341..15b2336d72c 100644--- a/packages/const/src/apiKeyScope.ts+++ b/packages/const/src/apiKeyScope.ts@@ -282,7 +282,7 @@ export const TRPC_NAMESPACE_API_KEY_RULES: Record<string, TrpcNamespaceScopeRule* retrieval/indexing infrastructure owned by their domain scope, their* per-call cost is marginal, and file-upload pipelines trigger the same* embedding work outside this guard anyway. Whether embeddings deserve their- * own scope (e.g. `model:embed`) is tracked in LOBE-12910.+ * own scope (e.g. `model:embed`) is still an open product decision.*/const AGENT_RUN_SCOPES: ApiKeyScope[] = ['chat:write', 'model:invoke'];diff --git a/packages/const/src/rbac.test.ts b/packages/const/src/rbac.test.tsindex ad0cf5388c1..eb2ccaff23e 100644--- a/packages/const/src/rbac.test.ts+++ b/packages/const/src/rbac.test.ts@@ -64,7 +64,7 @@ describe('workspace built-in roles', () => {});});-describe('personal default permissions (LOBE-12892)', () => {+describe('personal default permissions', () => {it('grants only :owner codes plus the shared-registry :all resources', () => {for (const code of PERSONAL_DEFAULT_PERMISSIONS) {const [resource, , scope] = [code.split(':')[0], code.split(':')[1], code.split(':')[2]];diff --git a/packages/const/src/rbac.ts b/packages/const/src/rbac.tsindex 1d848087832..3cf878c2cd4 100644--- a/packages/const/src/rbac.ts+++ b/packages/const/src/rbac.ts@@ -633,7 +633,7 @@ export const getWorkspaceRolePermissionCodes = (role: string): readonly string[]* Default permission codes every authenticated user holds over their OWN data* in personal (non-workspace) context.*- * Why this exists (LOBE-12892): ordinary accounts have no `rbac_user_roles`+ * Why this exists: ordinary accounts have no `rbac_user_roles`* rows β roles are only assigned via the admin backend β so any personal-mode* check that consulted the DB alone returned 403 for every registered user,* making the OpenAPI surface admin-only in practice. Personal data is alreadydiff --git a/packages/const/src/verify.ts b/packages/const/src/verify.tsindex 60e7bddc1c1..17f711c6b73 100644--- a/packages/const/src/verify.ts+++ b/packages/const/src/verify.ts@@ -235,7 +235,7 @@ export const acceptanceCheckReviewActions = ['accept', 'ignore', 'reject'] as coexport type AcceptanceCheckReviewAction = (typeof acceptanceCheckReviewActions)[number];/**- * Why a reviewer rejected a check. The offline baseline (LOBE-13035) found that+ * Why a reviewer rejected a check. The offline baseline found that* three different models converged on the same "wrong" answer for 24 of the* checks a human had rejected β because the reject button is the only outbound* channel on the page, so it carries three unrelated jobs at once. Only `unmet`diff --git a/packages/context-engine/src/engine/messages/MessagesEngine.ts b/packages/context-engine/src/engine/messages/MessagesEngine.tsindex 548ec450029..2621602211a 100644--- a/packages/context-engine/src/engine/messages/MessagesEngine.ts+++ b/packages/context-engine/src/engine/messages/MessagesEngine.ts@@ -231,7 +231,7 @@ export class MessagesEngine {// (enable flags + FC support + the shared select predicates) so// ActivationResultTrimProcessor only trims activation tool results whose full// documentation is confirmed to be injected into the system prompt for this- // request β see LOBE-5684.+ // request.const canUseFC = capabilities?.isCanUseFC || (() => true);const injectedActivatedSkills =isAgentMode && (skillsConfig?.enabledSkills?.length ?? 0) > 0diff --git a/packages/context-engine/src/engine/messages/__tests__/MessagesEngine.activationResultTrim.test.ts b/packages/context-engine/src/engine/messages/__tests__/MessagesEngine.activationResultTrim.test.tsindex 90ab53b10c0..904ae70201f 100644--- a/packages/context-engine/src/engine/messages/__tests__/MessagesEngine.activationResultTrim.test.ts+++ b/packages/context-engine/src/engine/messages/__tests__/MessagesEngine.activationResultTrim.test.ts@@ -8,7 +8,7 @@ import { MessagesEngine } from '../MessagesEngine';import type { MessagesEngineParams } from '../types';/**- * Regression tests for LOBE-5684: after dynamic activation, the full tool+ * Regression tests: after dynamic activation, the full tool* systemRole / skill content must reach the final LLM payload exactly once β* either via the system prompt injection OR via the activation tool result,* never both.@@ -134,7 +134,7 @@ const countInPayload = (messages: any[], needle: string) => {return haystack.split(needle).length - 1;};-describe('MessagesEngine β activation result trimming (LOBE-5684)', () => {+describe('MessagesEngine β activation result trimming', () => {describe('activateTools', () => {it('should carry an activated manifest systemRole exactly once when injected', async () => {const engine = new MessagesEngine(diff --git a/packages/context-engine/src/processors/ActivationResultTrim.ts b/packages/context-engine/src/processors/ActivationResultTrim.tsindex 00e95e4bc04..e83693ee5f4 100644--- a/packages/context-engine/src/processors/ActivationResultTrim.ts+++ b/packages/context-engine/src/processors/ActivationResultTrim.ts@@ -62,7 +62,7 @@ export interface ActivationResultTrimConfig {* injected into the system prompt, so each activated tool/skill document* reaches the LLM payload exactly once.*- * Background (LOBE-5684): `activateTools` used to write the manifest+ * Background: `activateTools` used to write the manifest* systemRole + API descriptions into its `role=tool` result, and once* activated the same manifest enters ToolSystemRoleProvider's system-prompt* injection on every subsequent request β permanently double-carrying thediff --git a/packages/conversation-flow/src/parse.ts b/packages/conversation-flow/src/parse.tsindex 8ce61524f24..8af1c00f8d2 100644--- a/packages/conversation-flow/src/parse.ts+++ b/packages/conversation-flow/src/parse.ts@@ -143,7 +143,7 @@ export function parse(messages: Message[], messageGroups?: MessageGroupMetadata[return next;});- // Historical LOBE-12497 data can contain a taskCallback and a tool result as+ // Historical data can contain a taskCallback and a tool result as// sibling branches under the same assistant tool-use shell. Normal branch// resolution must keep choosing one conversational continuation, but hiding// the inactive callback also hides the only user-visible record that a taskdiff --git a/packages/database/migrations/0111_workspace_device_and_ai_infra_surrogate_pk.sql b/packages/database/migrations/0111_workspace_device_and_ai_infra_surrogate_pk.sqlindex ffc37e72aed..7a4a7dbea03 100644--- a/packages/database/migrations/0111_workspace_device_and_ai_infra_surrogate_pk.sql+++ b/packages/database/migrations/0111_workspace_device_and_ai_infra_surrogate_pk.sql@@ -1,6 +1,6 @@-- Combined workspace-scoped DB rollout (formerly two separate 0111 migrations):--- 1. ai_infra surrogate `_id` PK + workspace-scoped partial uniques (LOBE-10056)--- 2. workspace-scoped device unique + workspace `frozen` columns (LOBE-10315)+-- 1. ai_infra surrogate `_id` PK + workspace-scoped partial uniques+-- 2. workspace-scoped device unique + workspace `frozen` columns---- The two parts touch disjoint tables (ai_providers / ai_models vs.-- devices / workspaces). Every statement is guarded so the migration is a@@ -10,10 +10,10 @@-- ===========================================================================-- Part 1 β ai_infra surrogate `_id` PK + workspace-scoped partial uniques--- (LOBE-10056 Phase 5)+-- (Phase 5 β ai_infra surrogate PK rollout)---- On cloud production this whole part is a NO-OP: the manual steps [3]~[7]--- (LOBE-10073 .. LOBE-10077) already performed the backfill, NOT NULL, PK swap+-- already performed the backfill, NOT NULL, PK swap-- and partial indexes online / CONCURRENTLY. Every statement below is guarded-- (UPDATE β¦ WHERE _id IS NULL / IF EXISTS / catalog check / IF NOT EXISTS) so-- it skips cleanly there, while still fully rebuilding the schema on a fresh or@@ -57,7 +57,6 @@ CREATE UNIQUE INDEX IF NOT EXISTS "ai_models_id_provider_id_user_id_workspace_id-- ===========================================================================-- Part 2 β workspace-scoped device unique + workspace `frozen` columns--- (LOBE-10315)---- Replace the full (user_id, device_id) unique with two partial uniques scoped-- by workspace_id (null vs. not null), so personal and workspace-enrolled rowsdiff --git a/packages/database/src/models/__tests__/agentCopyJob.test.ts b/packages/database/src/models/__tests__/agentCopyJob.test.tsindex 6e9a5a9f4f3..70d2fe3bd23 100644--- a/packages/database/src/models/__tests__/agentCopyJob.test.ts+++ b/packages/database/src/models/__tests__/agentCopyJob.test.ts@@ -338,7 +338,7 @@ describe('AgentCopyJobModel', () => {await expect(agentModel.delete(source.id)).rejects.toThrow(AGENT_COPY_IN_PROGRESS);});- // LOBE-12922: copy sits on the ordinary user path, so a pending copy job+ // Copy sits on the ordinary user path, so a pending copy job// must never wedge an owner's workspace/account deletion the way a pending// transfer does β the cloud delete flows cancel Stripe and wipe the billing// rows BEFORE they reach these guards.@@ -379,10 +379,10 @@ describe('AgentCopyJobModel', () => {expect(await serverDB.query.users.findFirst({ where: eq(users.id, userId) })).toBeUndefined();});- // LOBE-12935: a copy drives the SAME migration UI as a transfer (progress+ // A copy drives the SAME migration UI as a transfer (progress// badge, topic gray-out, open-to-prioritize) and shares the same crash-// recovery net. Every query behind those must stay type-agnostic; only the- // owner-delete guards (LOBE-12922) and the per-type drains filter by type.+ // owner-delete guards and the per-type drains filter by type.it('stays visible to the shared migration queries while pending', async () => {const source = await seedSourceAgent();const { jobId, newAgent, topicPairs } = await seedTargetShells(source.id);diff --git a/packages/database/src/models/__tests__/rbac.test.ts b/packages/database/src/models/__tests__/rbac.test.tsindex f8509aac2a0..c5aa644b0fc 100644--- a/packages/database/src/models/__tests__/rbac.test.ts+++ b/packages/database/src/models/__tests__/rbac.test.ts@@ -387,7 +387,7 @@ describe('RbacModel β back-compat: no workspaceId', () => {});});-describe('RbacModel β personal mode implicit baseline (LOBE-12892)', () => {+describe('RbacModel β personal mode implicit baseline', () => {it('grants the :owner content baseline to a user with NO rbac_user_roles rows', async () => {const rbac = new RbacModel(serverDB, userId);diff --git a/packages/database/src/models/agentTransferJob.ts b/packages/database/src/models/agentTransferJob.tsindex 57d822a28f2..ef50d304df2 100644--- a/packages/database/src/models/agentTransferJob.ts+++ b/packages/database/src/models/agentTransferJob.ts@@ -236,7 +236,7 @@ export const remapResidualMessageAgentIds = async (* Blocking on copy jobs is therefore pure cost: copy sits on the ordinary user* path (importing a heavy agent into a workspace), so it would let any member* wedge an owner's workspace/account deletion β after the caller has already- * cancelled Stripe and wiped the billing rows. See LOBE-12922.+ * cancelled Stripe and wiped the billing rows.*/const isPendingTransfer = () =>and(eq(agentHistoryJobs.status, 'pending'), eq(agentHistoryJobs.type, 'transfer'));@@ -350,7 +350,7 @@ export class AgentTransferJobModel {* agent is exactly the one a concurrent transfer must not move: the copy's* drain keeps writing history into the scope the transfer just rewrote, so* the conversation ends up split across both scopes. Exempting `copy` from- * the OWNER-DELETE guards (LOBE-12922) is a separate judgement β it does not+ * the OWNER-DELETE guards is a separate judgement β it does not* extend to agent mutations.*/static hasPendingJobForAgents = async (diff --git a/packages/database/src/models/rbac.ts b/packages/database/src/models/rbac.tsindex 7727a050bb5..62540e45b5b 100644--- a/packages/database/src/models/rbac.ts+++ b/packages/database/src/models/rbac.ts@@ -233,7 +233,7 @@ export class RbacModel {);// Personal mode: every authenticated user implicitly holds the `:owner`- // baseline over their own data (LOBE-12892) β ordinary accounts have no+ // baseline over their own data β ordinary accounts have no// `rbac_user_roles` rows, and resource queries are `user_id`-isolated// anyway. DB grants (super_admin etc.) union on top.// De-dupe β the same code can come from multiple roles (e.g. owner +@@ -315,7 +315,7 @@ export class RbacModel {}// Personal mode: the implicit `:owner` baseline settles most checks with- // zero DB queries (LOBE-12892). Workspace mode above is untouched β the+ // zero DB queries. Workspace mode above is untouched β the// membership-role matrix stays the single source of truth there.if (permissionCodes.some((code) => PERSONAL_DEFAULT_PERMISSIONS.includes(code))) {return true;diff --git a/packages/database/src/repositories/search/index.test.ts b/packages/database/src/repositories/search/index.test.tsindex 9d94b2616d7..8783745c0cb 100644--- a/packages/database/src/repositories/search/index.test.ts+++ b/packages/database/src/repositories/search/index.test.ts@@ -1328,7 +1328,7 @@ describe.skipIf(!isServerDB)('SearchRepo', () => {});});- // Regression guard for LOBE-12379: the BM25 scans were split into an inner+ // Regression guard: the BM25 scans were split into an inner// single-table subquery (so ParadeDB can pick its TopN custom scan) with the// joins and β in personal mode β the `workspace_id IS NULL` check moved above// it. These tests pin the two things that split could break: rows leaking@@ -1545,7 +1545,7 @@ describe.skipIf(!isServerDB)('SearchRepo', () => {if (hit?.type === 'file') expect(hit.knowledgeBaseId).toBe(base.id);});});- // Regression guard for LOBE-12575: the agent filter on topics/messages moved+ // Regression guard: the agent filter on topics/messages moved// from inside the BM25 scan to above it (over-fetching through a deep// candidate pool). These tests pin the result semantics that move could// break: rows leaking across agents, and the filter being lost entirely.@@ -1629,7 +1629,7 @@ describe.skipIf(!isServerDB)('SearchRepo', () => {// The workspace-scoping tests above pin *results*, and this change is// deliberately result-neutral β they pass against the pre-fix implementation- // too. What actually fixes LOBE-12379 is the *shape* of the emitted SQL, so+ // too. What actually fixes the regression is the *shape* of the emitted SQL, so// it needs its own guard: ParadeDB only picks `TopNScanExecState` when the// scan node itself carries the whole `ORDER BY paradedb.score() LIMIT n`.//@@ -1768,7 +1768,7 @@ describe.skipIf(!isServerDB)('SearchRepo', () => {}});- // Guard for LOBE-12575: `agent_id` is not a BM25 field either β inside the+ // Guard: `agent_id` is not a BM25 field either β inside the// scan it costs TopN and, on production pg_search 0.15.26, NULLs out every// score (arbitrary order, flat relevance 3). The agent filter must sit// above the scan, backed by a deepened candidate pool.diff --git a/packages/model-runtime/src/core/anthropicCompatibleFactory/generateObject.test.ts b/packages/model-runtime/src/core/anthropicCompatibleFactory/generateObject.test.tsindex ee84753bd82..ebd440d19ee 100644--- a/packages/model-runtime/src/core/anthropicCompatibleFactory/generateObject.test.ts+++ b/packages/model-runtime/src/core/anthropicCompatibleFactory/generateObject.test.ts@@ -24,7 +24,7 @@ describe('Anthropic generateObject', () => {);});- it('should strip trailing assistant messages for models without prefill support (LOBE-12572)', async () => {+ it('should strip trailing assistant messages for models without prefill support', async () => {const { requestParams } = await buildAnthropicGenerateObjectRequest({messages: [{ content: 'Generate data', role: 'user' as const },diff --git a/packages/model-runtime/src/core/anthropicCompatibleFactory/index.test.ts b/packages/model-runtime/src/core/anthropicCompatibleFactory/index.test.tsindex 9805dfe5ce6..86e1c1e0df7 100644--- a/packages/model-runtime/src/core/anthropicCompatibleFactory/index.test.ts+++ b/packages/model-runtime/src/core/anthropicCompatibleFactory/index.test.ts@@ -424,7 +424,7 @@ describe('createAnthropicCompatibleRuntime', () => {it('should strip trailing assistant prefill when a logical id maps to a Claude 5 model', async () => {// The prefill strip inside handlePayload sees the logical id; when the// mapping only later resolves to a Claude 4.6+/5 upstream id, chat() must- // re-strip against the model actually sent (LOBE-12572).+ // re-strip against the model actually sent.const messagesCreate = vi.fn().mockResolvedValue({ content: [] });const Runtime = createAnthropicCompatibleRuntime({chatCompletion: {diff --git a/packages/openapi/src/controllers/user.controller.test.ts b/packages/openapi/src/controllers/user.controller.test.tsindex c67f8bfc939..2d14771963c 100644--- a/packages/openapi/src/controllers/user.controller.test.ts+++ b/packages/openapi/src/controllers/user.controller.test.ts@@ -15,7 +15,7 @@ const { UserController } = await import('./user.controller');/*** `/me` is open to any authenticated caller so a key can resolve its own- * identity (LOBE-12934), which makes `messageCount` the one field on it that+ * identity, which makes `messageCount` the one field on it that* still needs gating β it is chat-usage metadata, not identity.*/describe('UserController.getCurrentUser', () => {diff --git a/packages/openapi/src/controllers/user.controller.ts b/packages/openapi/src/controllers/user.controller.tsindex 499b715e03d..83c2585cb50 100644--- a/packages/openapi/src/controllers/user.controller.ts+++ b/packages/openapi/src/controllers/user.controller.ts@@ -26,7 +26,7 @@ export class UserController extends BaseController {/*** `/me` is reachable by every authenticated caller so a key can resolve its- * own identity β `lh login` depends on it (LOBE-12934). What it *returns*+ * own identity β `lh login` depends on it. What it *returns** is still scoped, because identity bootstrap needs an id, not a profile:** - without `user:read` the response is narrowed to the id, keeping thediff --git a/packages/openapi/src/routes/users.route.test.ts b/packages/openapi/src/routes/users.route.test.tsindex 15aa314cd38..086e9024646 100644--- a/packages/openapi/src/routes/users.route.test.ts+++ b/packages/openapi/src/routes/users.route.test.ts@@ -22,7 +22,7 @@ const { default: UserRoutes } = await import('./users.route');/*** A key minted with narrow scopes still has to be able to identify itself, or* `lh login` cannot resolve a userId from it. Guarding this route on- * `user:read` stranded such keys outside the product β see LOBE-12934.+ * `user:read` stranded such keys outside the product.*/describe('GET /users/me', () => {const requestAs = (apiKeyScopes: string[]) => {diff --git a/packages/openapi/src/routes/users.route.ts b/packages/openapi/src/routes/users.route.tsindex 794970b2003..9af3a90471f 100644--- a/packages/openapi/src/routes/users.route.ts+++ b/packages/openapi/src/routes/users.route.ts@@ -36,7 +36,7 @@ UserRoutes.get(// Reachability is not disclosure: the payload is scoped inside// `UserController.getCurrentUser` β a key without `user:read` receives only// `{ id }`, and `messageCount` additionally needs `chat:read`. Widen there,- // under a scope check, rather than by gating the route. See LOBE-12934.+ // under a scope check, rather than by gating the route.async (c) => {const userController = new UserController();return await userController.getCurrentUser(c);diff --git a/src/features/AgentBuilder/SuggestionChips/useBuilderSuggestions.test.tsx b/src/features/AgentBuilder/SuggestionChips/useBuilderSuggestions.test.tsxindex 0d85fad1355..d0be6dc078f 100644--- a/src/features/AgentBuilder/SuggestionChips/useBuilderSuggestions.test.tsx+++ b/src/features/AgentBuilder/SuggestionChips/useBuilderSuggestions.test.tsx@@ -112,7 +112,7 @@ describe('useBuilderSuggestions', () => {expect(result.current.suggestions[0]?.title).toBe('second title');});- // Regression for LOBE-12895: suggestions are persisted via the tiered SWR+ // Regression: suggestions are persisted via the tiered SWR// cache provider. A cache hit (e.g. hydrated from localStorage on a revisit)// must render directly without paying another LLM generation.it('serves a persisted cache hit without regenerating', async () => {