🤯 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 LOBE marker references from source code comments (#18092)
Arvin Xudcf241c50ed1
diff --git a/src/features/ChatInput/ChatInputNotice/useChatInputNotice.test.tsx b/src/features/ChatInput/ChatInputNotice/useChatInputNotice.test.tsxindex 7057ffb1316..05ca9c3b933 100644--- a/src/features/ChatInput/ChatInputNotice/useChatInputNotice.test.tsx+++ b/src/features/ChatInput/ChatInputNotice/useChatInputNotice.test.tsx@@ -18,7 +18,8 @@ interface TestProviderWithModels {const testState = vi.hoisted(() => ({agent: {agencyConfig: undefined as- { executionTarget?: string; heterogeneousProvider?: { type: string } } | undefined,+ | { executionTarget?: string; heterogeneousProvider?: { type: string } }+ | undefined,isConfigLoading: false,model: 'gpt-4o',provider: 'openai',@@ -154,7 +155,7 @@ describe('useChatInputNotice', () => {expect(result.current).toEqual({ key: 'input.viewOnlyGroup', type: 'warning' });});- it('stays silent for a gated member who can use but not edit the agent (LOBE-12547)', () => {+ it('stays silent for a gated member who can use but not edit the agent', () => {// The use-only permission is explained on the controls it actually locks// (model trigger / device chip), not as a standing banner.testState.resourceAccess = {diff --git a/src/features/ChatInput/ChatInputNotice/useChatInputNotice.ts b/src/features/ChatInput/ChatInputNotice/useChatInputNotice.tsindex cee590e95a2..ee9d96672ac 100644--- a/src/features/ChatInput/ChatInputNotice/useChatInputNotice.ts+++ b/src/features/ChatInput/ChatInputNotice/useChatInputNotice.ts@@ -62,7 +62,7 @@ export const resolveChatInputNotice = ({// Use-level General access (can chat, can't edit the shared config) is// deliberately NOT a notice: a standing "you can only use this agent" banner- // states a permission without naming what it blocks (LOBE-12547). The locked+ // states a permission without naming what it blocks. The locked// controls explain themselves instead — see `useModelLockTooltip` for the// model triggers and the fixed-target tooltip on the device chip.};diff --git a/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Intervention/customInteractionHandlers.test.ts b/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Intervention/customInteractionHandlers.test.tsindex afba22b6bad..6f2a5e9cabf 100644--- a/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Intervention/customInteractionHandlers.test.ts+++ b/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Intervention/customInteractionHandlers.test.ts@@ -98,7 +98,7 @@ describe('customInteractionHandlers', () => {expect(result).toEqual({// createUserMessage must stay false: the completed tool card already// renders the answers, so a synthetic user message would duplicate them- // in the client runtime (LOBE-12835).+ // in the client runtime.options: { createUserMessage: false, pluginState: { askUserAnswers: payload } },payload,});diff --git a/src/features/Conversation/Messages/AssistantGroup/components/ContentBlock.test.tsx b/src/features/Conversation/Messages/AssistantGroup/components/ContentBlock.test.tsxindex f7c4cf5359f..cff30ca7012 100644--- a/src/features/Conversation/Messages/AssistantGroup/components/ContentBlock.test.tsx+++ b/src/features/Conversation/Messages/AssistantGroup/components/ContentBlock.test.tsx@@ -218,7 +218,7 @@ describe('AssistantGroup ContentBlock', () => {it('does not render an empty reasoning card for signature-only reasoning', () => {// Some providers (e.g. DeepSeek over the Anthropic protocol) emit a thinking// block with only a signature_delta and zero thinking text. The signature is- // persisted for multi-turn replay but must not render a card. See LOBE-12829.+ // persisted for multi-turn replay but must not render a card.render(<ContentBlockassistantId="assistant-1"diff --git a/src/features/Conversation/Messages/components/Reasoning.tsx b/src/features/Conversation/Messages/components/Reasoning.tsxindex 2670054d58b..0b25d167268 100644--- a/src/features/Conversation/Messages/components/Reasoning.tsx+++ b/src/features/Conversation/Messages/components/Reasoning.tsx@@ -12,8 +12,8 @@ import { RichContentRenderer } from './RichContentRenderer';/*** Whether a persisted reasoning object holds renderable thinking. A* signature-only reasoning ({ signature } without content) is protocol state- * kept for multi-turn replay and must not render an empty "deep thought" card- * (LOBE-12829). Multimodal reasoning streams image parts via tempDisplayContent+ * kept for multi-turn replay and must not render an empty "deep thought" card.+ * Multimodal reasoning streams image parts via tempDisplayContent* without content, so those count as renderable.*/export const hasRenderableReasoning = (reasoning?: ModelReasoning | null): boolean =>diff --git a/src/features/Conversation/store/utils/effectiveModel.test.ts b/src/features/Conversation/store/utils/effectiveModel.test.tsindex 8098387adfa..247738b0667 100644--- a/src/features/Conversation/store/utils/effectiveModel.test.ts+++ b/src/features/Conversation/store/utils/effectiveModel.test.ts@@ -22,7 +22,7 @@ afterEach(() => {describe('getEffectiveConversationModel', () => {it('prefers the topic-scoped model override over the agent default', () => {// A topic switched to a Claude 5 model must drive capability guards even- // when the agent default is still a prefill-capable model (LOBE-12572).+ // when the agent default is still a prefill-capable model.useAgentStore.setState({agentMap: { [AGENT_ID]: { chatConfig: {}, model: 'gpt-5.2' } },} as any);diff --git a/src/features/DailyBrief/__tests__/BriefCardActions.test.tsx b/src/features/DailyBrief/__tests__/BriefCardActions.test.tsxindex 6c301d959b6..7f7104462d9 100644--- a/src/features/DailyBrief/__tests__/BriefCardActions.test.tsx+++ b/src/features/DailyBrief/__tests__/BriefCardActions.test.tsx@@ -154,14 +154,55 @@ describe('BriefCardActions', () => {taskId="task-1"/>,);- const commentButton = container.querySelector('.brief-comment-btn');- expect(commentButton).toBeInTheDocument();- fireEvent.click(commentButton!);-- // CommentInput replaces action buttons+ fireEvent.click(container.querySelector('.brief-comment-btn')!);expect(screen.queryByText('Approve')).not.toBeInTheDocument();+ });++ it('should show comment input when comment button clicked', () => {+ const { container } = renderWithRouter(+ <BriefCardActions+ actions={sampleActions}+ briefId="brief-1"+ briefType="decision"+ taskId="task-1"+ />,+ );+ fireEvent.click(container.querySelector('.brief-comment-btn')!);expect(screen.getByTitle('Submit feedback')).toBeInTheDocument();- expect(screen.getByText('Cancel')).toBeInTheDocument();+ });++ it('should restore action buttons when comment cancelled', () => {+ const { container } = renderWithRouter(+ <BriefCardActions+ actions={sampleActions}+ briefId="brief-1"+ briefType="decision"+ taskId="task-1"+ />,+ );+ fireEvent.click(container.querySelector('.brief-comment-btn')!);+ fireEvent.click(screen.getByText('Cancel'));+ expect(screen.getByText('Approve')).toBeInTheDocument();+ });++ it('should submit feedback and refresh on send', async () => {+ mockSubmitFeedback.mockResolvedValueOnce(undefined);+ const onAfterAddComment = vi.fn();+ const { container } = renderWithRouter(+ <BriefCardActions+ actions={sampleActions}+ briefId="brief-1"+ briefType="decision"+ taskId="task-1"+ onAfterAddComment={onAfterAddComment}+ />,+ );+ fireEvent.click(container.querySelector('.brief-comment-btn')!);+ fireEvent.click(screen.getByTitle('Submit feedback'));+ await waitFor(() =>+ expect(mockSubmitFeedback).toHaveBeenCalledWith('brief-1', 'task-1', 'my feedback'),+ );+ await waitFor(() => expect(onAfterAddComment).toHaveBeenCalled());});it('should show resolved state when resolvedAction is set', () => {@@ -249,7 +290,7 @@ describe('BriefCardActions', () => {expect(screen.queryByText('Confirm', { exact: true })).not.toBeInTheDocument();});- // LOBE-12704: the tRPC client only console.errors non-401 failures, so a+ // Brief permission errors: the tRPC client only console.errors non-401 failures, so a// rejected action used to read as a dead button — which is how "no permission"// reached us as a bug report with no error on screen.it('should surface the failure reason when a resolve action is rejected', async () => {diff --git a/src/features/HomeSidebar/hooks/useCreateMenuItems.tsx b/src/features/HomeSidebar/hooks/useCreateMenuItems.tsxindex 280c59e60ec..3afb1491532 100644--- a/src/features/HomeSidebar/hooks/useCreateMenuItems.tsx+++ b/src/features/HomeSidebar/hooks/useCreateMenuItems.tsx@@ -377,7 +377,7 @@ export const useCreateMenuItems = () => {if (!canCreate) return;if (openCreateGroupModal) {- // Let the user name the group at creation time (LOBE-12597)+ // Let the user name the group at creation timeopenCreateGroupModal(undefined, options?.visibility);return;}diff --git a/src/features/VisibilityConfirmContent/index.test.tsx b/src/features/VisibilityConfirmContent/index.test.tsxindex e2f8b483bb0..5d1b3ba7c33 100644--- a/src/features/VisibilityConfirmContent/index.test.tsx+++ b/src/features/VisibilityConfirmContent/index.test.tsx@@ -36,7 +36,7 @@ describe('VisibilityConfirmContent', () => {expect(screen.getAllByText('visibilityConfirm.irreversible')).toHaveLength(1);});- // LOBE-12543: publishing no longer asks for member permissions up front —+ // Publishing no longer asks for member permissions up front —// the resource lands on the workspace default and the owner tunes it later// from the resource's own "Member Permissions" entry.it('does not render a member-permission select when publishing', () => {diff --git a/src/routes/(main)/agent/features/Conversation/MainChatInput/index.tsx b/src/routes/(main)/agent/features/Conversation/MainChatInput/index.tsxindex 0ac489a069e..2e93f2ebee3 100644--- a/src/routes/(main)/agent/features/Conversation/MainChatInput/index.tsx+++ b/src/routes/(main)/agent/features/Conversation/MainChatInput/index.tsx@@ -40,7 +40,7 @@ const MainChatInput = memo(() => {: contextWindowRightActions;// Reasoning effort lives inside the "+" menu (Plus → 推理强度) rather than as- // a standalone action — reviewer feedback on the LOBE-12599 acceptance.+ // a standalone action — per the effort parameter refactoring.const leftActions: ActionKeys[] = useMemo(() => ['model', 'plus'], []);return (diff --git a/src/store/electron/actions/__tests__/app.test.ts b/src/store/electron/actions/__tests__/app.test.tsindex e22a38724ad..5eba190ca2a 100644--- a/src/store/electron/actions/__tests__/app.test.ts+++ b/src/store/electron/actions/__tests__/app.test.ts@@ -19,10 +19,10 @@ describe('ElectronAppActionImpl', () => {expect(useElectronStore.getState().appState.defaultShell).toBe('Git Bash');});- it('syncs defaultShell into the global agent context so {{defaultShell}} flips without a restart', () => {+ it('syncs defaultShell into the global agent context so the platform default shell (PowerShell on Windows, /bin/sh on macOS/Linux) flips without a restart', () => {// Regression: switching the Windows shell in settings only updated the// main process; the prompt placeholder kept describing the old shell- // until app restart (LOBE-12692).+ // until app restart.act(() => {useElectronStore.getState().updateElectronAppState({ defaultShell: 'Git Bash' });});@@ -30,7 +30,7 @@ describe('ElectronAppActionImpl', () => {expect(globalAgentContextManager.getContext().defaultShell).toBe('Git Bash');});- it('syncs arch into the global agent context so {{arch}} renders in the prompt', () => {+ it('syncs arch into the global agent context so unknown renders in the prompt', () => {act(() => {useElectronStore.getState().updateElectronAppState({ arch: 'arm64' });});