π€― 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: clean LOBE-XXX code markers (2026-08-04) (#17890)
Arvin Xu43504be18f66
diff --git a/packages/context-engine/src/engine/messages/__tests__/MessagesEngine.test.ts b/packages/context-engine/src/engine/messages/__tests__/MessagesEngine.test.tsindex 145b0341bdd..677068ebaf4 100644--- a/packages/context-engine/src/engine/messages/__tests__/MessagesEngine.test.ts+++ b/packages/context-engine/src/engine/messages/__tests__/MessagesEngine.test.ts@@ -124,7 +124,7 @@ describe('MessagesEngine', () => {});});- it('should drop placeholder residue hidden inside tasks containers (LOBE-12572)', async () => {+ it('should drop placeholder residue hidden inside tasks containers', async () => {// TasksFlattenProcessor emits children as role='task' and// TaskMessageProcessor converts them to assistant AFTER the flatten β// the post-flatten placeholder pass must run after that conversion, or@@ -155,7 +155,7 @@ describe('MessagesEngine', () => {expect(result.messages[0].role).toBe('user');});- it('should not let placeholder-only containers consume history slots (LOBE-12572)', async () => {+ it('should not let placeholder-only containers consume history slots', async () => {// History truncation counts each container as one group; a placeholder-// only container must be dropped BEFORE truncation or it eats a slot and// then vanishes at the flatten phase, losing a real history turn.diff --git a/packages/context-engine/src/processors/__tests__/PlaceholderMessageFilter.test.ts b/packages/context-engine/src/processors/__tests__/PlaceholderMessageFilter.test.tsindex 1df9b676e1a..849e66e6da1 100644--- a/packages/context-engine/src/processors/__tests__/PlaceholderMessageFilter.test.ts+++ b/packages/context-engine/src/processors/__tests__/PlaceholderMessageFilter.test.ts@@ -20,7 +20,7 @@ describe('PlaceholderMessageFilterProcessor', () => {it('should remove failed assistant placeholders that carry an error', async () => {// Regression: persisted "..." rows from failed generations poisoned the// topic β replayed at the payload tail they trigger the Claude 4.6+- // assistant-prefill 400 on every subsequent send (LOBE-12572).+ // assistant-prefill 400 on every subsequent send.const context = createContext([{ content: 'hi', id: 'u1', role: 'user' },{ content: '...', error: { type: 'CapabilityNotSupported' }, id: 'a1', role: 'assistant' },diff --git a/packages/database/src/repositories/search/index.ts b/packages/database/src/repositories/search/index.tsindex 02d7137e1be..43e9b81ee55 100644--- a/packages/database/src/repositories/search/index.ts+++ b/packages/database/src/repositories/search/index.ts@@ -233,10 +233,9 @@ const RECENCY_CANDIDATE_MULTIPLIER = 4;* score ordering is real (see `liftsAgentFilter`): trading the exact inline* predicate for a score-ordered pool is unsound when the scores backing that* order are NULL. Indexing the column instead is tracked with the other- * missing fast fields in LOBE-12381.+ * missing fast fields.*- * @see https://linear.app/lobehub/issue/LOBE-12379- * @see https://linear.app/lobehub/issue/LOBE-12575+ * Indexing the column is tracked with the other missing fast fields.*/const WORKSPACE_FILTER_CANDIDATE_MULTIPLIER = 5;@@ -269,7 +268,7 @@ const WORKSPACE_FILTER_MIN_CANDIDATES = 500;/*** Flip to `true` once every BM25 index used by this repo carries `workspace_id`- * as a fast keyword field (LOBE-12381). pg_search then pushes `workspace_id IS+ * as a fast keyword field. pg_search then pushes `workspace_id IS* NULL` down as `must_not: exists(workspace_id)` and `workspace_id = ?` as a* `term`, so the ownership predicate can stay inline and personal search becomes* exact again (no candidate over-fetch, no dropped rows) while workspace-mode@@ -311,7 +310,7 @@ export class SearchRepo {* approximation. Workspace mode has no such pushdown-able owner column β its* rows are a tiny slice of a global TopN β so lifting the filter there would* silently return nothing. It keeps the exact inline predicate and stays on- * the slow plan until LOBE-12381 lands.+ * the slow plan until `workspace_id` becomes a fast keyword field in the BM25 index.*/private get liftsWorkspaceFilter() {return !WORKSPACE_ID_IN_BM25_INDEX && !this.workspaceId;@@ -324,7 +323,7 @@ export class SearchRepo {* pool, which is only sound while the scan's `ORDER BY paradedb.score()` is* real. Personal mode qualifies: its scan keeps only pushdown-able quals, so* scores are valid and the pool is genuinely the top-N matches. Workspace- * mode does not (until LOBE-12381 makes `workspace_id` a fast field): its+ * mode does not (until `workspace_id` becomes a fast field in the BM25 index): its* inline `workspace_id` qual NULLs the whole score column on pg_search* 0.15.26, so a pool cut on that ordering would be an arbitrary slice that* silently drops agent rows. It keeps `agent_id` inline next to@@ -1020,7 +1019,7 @@ export class SearchRepo {* the plain index-scan plan: `knowledge_base_id` is not in the BM25 index* either, so isolating the scan would not buy TopN. The KB filter does bound* the match set to one knowledge base (via its btree index), which keeps it- * workable until LOBE-12381 adds the missing fast fields.+ * workable until `workspace_id` and `visibility` become fast fields in the BM25 index.*/async searchKnowledgeBaseDocuments(query: string,diff --git a/packages/model-runtime/src/providers/anthropic/claudePrefill.test.ts b/packages/model-runtime/src/providers/anthropic/claudePrefill.test.tsindex 02313683438..bd80e6446a6 100644--- a/packages/model-runtime/src/providers/anthropic/claudePrefill.test.ts+++ b/packages/model-runtime/src/providers/anthropic/claudePrefill.test.ts@@ -14,7 +14,7 @@ describe('stripUnsupportedClaudeAssistantPrefill', () => {});it('should strip ALL stacked trailing assistant messages', () => {- // Regression LOBE-12572: failed-run placeholders can stack multiple+ // Regression: failed-run placeholders can stack multiple// assistant turns at the tail; popping only one still returns 400.const messages = [user('hi'),diff --git a/packages/model-runtime/src/providers/anthropic/claudePrefill.ts b/packages/model-runtime/src/providers/anthropic/claudePrefill.tsindex cfdcd3c961f..7341d867282 100644--- a/packages/model-runtime/src/providers/anthropic/claudePrefill.ts+++ b/packages/model-runtime/src/providers/anthropic/claudePrefill.ts@@ -8,7 +8,7 @@ import { shouldDropUnsupportedClaudeAssistantPrefill } from './modelId';* unsupported assistant prefill and returns 400 before generation starts.** A single trailing pop is not enough: failed-run placeholder rows can stack- * multiple assistant messages at the payload tail (see LOBE-12572), so strip+ * multiple assistant messages at the payload tail, so strip* until the conversation ends with a non-assistant turn. Models that still* support prefill are left untouched.* @see https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/prefill-claudes-responsediff --git a/packages/model-runtime/src/providers/anthropic/index.test.ts b/packages/model-runtime/src/providers/anthropic/index.test.tsindex 9b2b7ff9d34..ed8939d889b 100644--- a/packages/model-runtime/src/providers/anthropic/index.test.ts+++ b/packages/model-runtime/src/providers/anthropic/index.test.ts@@ -909,7 +909,7 @@ describe('LobeAnthropicAI', () => {]);});- it('should drop ALL stacked trailing assistant messages (LOBE-12572)', async () => {+ it('should drop ALL stacked trailing assistant messages', async () => {// Failed-run placeholder rows can stack several assistant turns at the// payload tail; popping only one still triggers the prefill 400.const payload: ChatStreamPayload = {diff --git a/packages/model-runtime/src/providers/bedrock/index.test.ts b/packages/model-runtime/src/providers/bedrock/index.test.tsindex 79ebb7f6b09..2a3bdf2f8fe 100644--- a/packages/model-runtime/src/providers/bedrock/index.test.ts+++ b/packages/model-runtime/src/providers/bedrock/index.test.ts@@ -244,7 +244,7 @@ describe('LobeBedrockAI', () => {]);});- it('should drop ALL stacked trailing assistant messages (LOBE-12572)', async () => {+ it('should drop ALL stacked trailing assistant messages', async () => {const mockStream = new ReadableStream({start(controller) {controller.enqueue('Hello, world!');@@ -278,7 +278,7 @@ describe('LobeBedrockAI', () => {it('should drop assistant prefill when a logical id maps to a Claude 5 Bedrock id', async () => {// The channel modelIdMapping resolves the actually-sent Bedrock model- // id; the prefill guard must follow it, not the logical id (LOBE-12572).+ // id; the prefill guard must follow it, not the logical id.const mappedInstance = new LobeBedrockAI({accessKeyId: 'test-access-key-id',accessKeySecret: 'test-access-key-secret',@@ -1358,7 +1358,7 @@ describe('LobeBedrockAI', () => {it('should drop assistant prefill in generateObject when a logical id maps to Claude 5', async () => {// The prefill guard must follow the resolved Bedrock model id, not the- // logical alias the channel mapping hides it behind (LOBE-12572).+ // logical alias the channel mapping hides it behind.const mappedInstance = new LobeBedrockAI({accessKeyId: 'test-access-key-id',accessKeySecret: 'test-access-key-secret',diff --git a/src/routes/(main)/agent/profile/features/EditorCanvas/index.test.tsx b/src/routes/(main)/agent/profile/features/EditorCanvas/index.test.tsxindex 98abdf08a11..ea917633245 100644--- a/src/routes/(main)/agent/profile/features/EditorCanvas/index.test.tsx+++ b/src/routes/(main)/agent/profile/features/EditorCanvas/index.test.tsx@@ -354,7 +354,7 @@ describe('Agent profile EditorCanvas', () => {it('does not bubble mode-switch clicks to the click-to-focus wrapper', () => {// The profile page wraps the canvas in a click-to-focus area; a bubbled// toggle click would focus the editor and scroll to the caret at the- // document end. See LOBE-12593.+ // document end.const onWrapperClick = vi.fn();render(<div onClick={onWrapperClick}>diff --git a/src/routes/(main)/agent/profile/features/EditorCanvas/index.tsx b/src/routes/(main)/agent/profile/features/EditorCanvas/index.tsxindex 6a94e30b96e..4dd4dee1945 100644--- a/src/routes/(main)/agent/profile/features/EditorCanvas/index.tsx+++ b/src/routes/(main)/agent/profile/features/EditorCanvas/index.tsx@@ -452,7 +452,6 @@ const AgentEditorCanvas = memo<AgentEditorCanvasProps>(({ agentId }) => {// bubbled click, and Lexical's focus() moves the caret to the// document end when there is no selection β scrolling the page to// the bottom. Toggling the view mode must not move the caret.- // See LOBE-12593.onClick={(e) => e.stopPropagation()}><ActionIcondiff --git a/src/routes/(main)/agent/profile/features/useClickToFocusEditor.test.ts b/src/routes/(main)/agent/profile/features/useClickToFocusEditor.test.tsindex 5299e95e209..5a84c260800 100644--- a/src/routes/(main)/agent/profile/features/useClickToFocusEditor.test.ts+++ b/src/routes/(main)/agent/profile/features/useClickToFocusEditor.test.ts@@ -36,7 +36,7 @@ describe('useClickToFocusEditor', () => {// Lexical's focus() selects the document end when no selection exists, so// focusing the display:none visual editor leaves a dirty end-of-document// selection that scrolls the page to the bottom once the editor becomes- // visible again. See LOBE-12593.+ // visible again.getRootElement.mockReturnValue({ offsetParent: null });const { result } = renderHook(() => useClickToFocusEditor(editor, true));diff --git a/src/routes/(main)/agent/profile/features/useClickToFocusEditor.ts b/src/routes/(main)/agent/profile/features/useClickToFocusEditor.tsindex c8e5f02b6b7..4cf96e2d772 100644--- a/src/routes/(main)/agent/profile/features/useClickToFocusEditor.ts+++ b/src/routes/(main)/agent/profile/features/useClickToFocusEditor.ts@@ -10,7 +10,7 @@ import { type MouseEvent, useCallback } from 'react';* `display: none`). Lexical's `focus()` falls back to `selectEnd()` when the* editor has no selection, so focusing the hidden editor leaves a dirty* end-of-document selection that scrolls the page to the bottom once the editor- * becomes visible again. See LOBE-12593.+ * becomes visible again.*/export const useClickToFocusEditor = (editor: IEditor | undefined, canEdit: boolean) =>useCallback(