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.

🚑 fix: resolve unresolved merge conflict markers in main→canary sync

Arvin Xu70f81ad1a1f9
diff --git a/e2e/src/steps/home/chat-input.steps.ts b/e2e/src/steps/home/chat-input.steps.ts
index 6161c9069db..bc7936407f9 100644
--- a/e2e/src/steps/home/chat-input.steps.ts
+++ b/e2e/src/steps/home/chat-input.steps.ts
@@ -2,12 +2,8 @@ import { After, Given, Then, When } from '@cucumber/cucumber';
import { expect } from '@playwright/test';
import { llmMockManager } from '../../mocks/llm';
-<<<<<<< HEAD
import type { CustomWorld } from '../../support/world';
import { WAIT_TIMEOUT } from '../../support/world';
-=======
-import { type CustomWorld, WAIT_TIMEOUT } from '../../support/world';
->>>>>>> origin/main
const COLD_ROUTE_SCRIPT_DELAY = 2500;
@@ -16,7 +12,6 @@ const delay = (ms: number) =>
setTimeout(resolve, ms);
});
-<<<<<<< HEAD
const focusHomeChatInput = async (world: CustomWorld): Promise<void> => {
const candidates = [
world.page.locator('[data-testid="chat-input"] textarea'),
@@ -41,8 +36,6 @@ const focusHomeChatInput = async (world: CustomWorld): Promise<void> => {
throw new Error('Could not find a visible Home chat input to focus');
};
-=======
->>>>>>> origin/main
Given(
'用户在冷启动 Home 页面并延迟 Agent 路由加载',
{ timeout: 45_000 },
@@ -88,7 +81,6 @@ Given(
},
);
-<<<<<<< HEAD
When(
'用户在输入框中输入 {string}',
{ timeout: 30_000 },
@@ -102,8 +94,6 @@ When(
},
);
-=======
->>>>>>> origin/main
When('用户按 Enter 从 Home 默认输入发送', { timeout: 45_000 }, async function (this: CustomWorld) {
console.log(' 📍 Step: 启用冷路由延迟并发送默认 Home 消息...');
diff --git a/src/routes/(main)/home/features/InputArea/useSend.test.ts b/src/routes/(main)/home/features/InputArea/useSend.test.ts
index 55392936aa5..b92c68b9405 100644
--- a/src/routes/(main)/home/features/InputArea/useSend.test.ts
+++ b/src/routes/(main)/home/features/InputArea/useSend.test.ts
@@ -35,21 +35,15 @@ const fileState = vi.hoisted(() => ({
}));
const homeState = vi.hoisted(() => ({
-<<<<<<< HEAD
agentGroups: [],
homeInputLoading: false,
inputActiveMode: null,
isAgentListInit: true,
pinnedAgents: [],
-=======
- homeInputLoading: false,
- inputActiveMode: null,
->>>>>>> origin/main
sendAsAgent: vi.fn(),
sendAsGroup: vi.fn(),
sendAsResearch: vi.fn(),
sendAsWrite: vi.fn(),
-<<<<<<< HEAD
ungroupedAgents: [],
}));
@@ -66,12 +60,6 @@ const globalState = vi.hoisted(() => ({
homeSelectedAgentId: undefined,
},
updateSystemStatus: vi.fn(),
-=======
-}));
-
-const agentState = vi.hoisted(() => ({
- inboxAgentId: 'agt_inbox',
->>>>>>> origin/main
}));
vi.mock('@/hooks/useQueryRoute', () => ({
@@ -79,16 +67,12 @@ vi.mock('@/hooks/useQueryRoute', () => ({
}));
vi.mock('@/store/agent', () => ({
-<<<<<<< HEAD
useAgentStore: Object.assign(
(selector: (state: typeof agentState) => unknown) => selector(agentState),
{
getState: () => agentState,
},
),
-=======
- useAgentStore: (selector: (state: typeof agentState) => unknown) => selector(agentState),
->>>>>>> origin/main
}));
vi.mock('@/store/agent/selectors', () => ({
@@ -97,7 +81,6 @@ vi.mock('@/store/agent/selectors', () => ({
},
}));
-<<<<<<< HEAD
vi.mock('@/store/global', () => ({
useGlobalStore: (selector: (state: typeof globalState) => unknown) => selector(globalState),
}));
@@ -108,8 +91,6 @@ vi.mock('@/store/global/selectors', () => ({
},
}));
-=======
->>>>>>> origin/main
vi.mock('@/store/chat', () => {
const useChatStore = (selector: (state: typeof chatState) => unknown) => selector(chatState);
useChatStore.getState = () => chatState;
diff --git a/src/routes/(main)/home/features/InputArea/useSend.ts b/src/routes/(main)/home/features/InputArea/useSend.ts
index 678e3101c14..c7e500f1791 100644
--- a/src/routes/(main)/home/features/InputArea/useSend.ts
+++ b/src/routes/(main)/home/features/InputArea/useSend.ts
@@ -85,21 +85,13 @@ export const useSend = () => {
await ensureAgentConfigLoaded(activeAgentId);
sendMessage({
-<<<<<<< HEAD
context: { agentId: activeAgentId, isolatedTopic: true },
-=======
- context: { agentId: inboxAgentId, isolatedTopic: true },
->>>>>>> origin/main
contexts: contextList,
editorData,
files: fileList,
message: inputMessage,
onTopicCreated: (topicId) => {
-<<<<<<< HEAD
router.replace(SESSION_CHAT_TOPIC_URL(activeAgentId, topicId, false));
-=======
- router.replace(SESSION_CHAT_TOPIC_URL(inboxAgentId, topicId, false));
->>>>>>> origin/main
},
});
diff --git a/src/server/services/agentSignal/policies/analyzeIntent/feedbackAction.ts b/src/server/services/agentSignal/policies/analyzeIntent/feedbackAction.ts
index 39008a437ee..3421960abb3 100644
--- a/src/server/services/agentSignal/policies/analyzeIntent/feedbackAction.ts
+++ b/src/server/services/agentSignal/policies/analyzeIntent/feedbackAction.ts
@@ -110,7 +110,6 @@ const createPlannerProcedureState = (
const markerReader = options.markerReader ?? options.procedure?.markerReader;
const procedureState = options.procedure?.procedureState;
-<<<<<<< HEAD
if (procedureState) {
if (!markerReader) return procedureState;
@@ -119,37 +118,6 @@ const createPlannerProcedureState = (
markers: {
...procedureState.markers,
shouldSuppress: markerReader.shouldSuppress,
-=======
- if (payload.target === 'memory') {
- return [
- {
- actionId: `${signal.signalId}:action:memory`,
- actionType: AGENT_SIGNAL_POLICY_ACTION_TYPES.userMemoryHandle,
- chain: {
- chainId: signal.chain.chainId,
- parentNodeId: signal.signalId,
- parentSignalId: signal.signalId,
- rootSourceId: signal.chain.rootSourceId,
- },
- payload: {
- agentId: payload.agentId,
- conflictPolicy: payload.conflictPolicy,
- evidence: payload.evidence,
- feedbackHint: payload.satisfactionResult === 'satisfied' ? 'satisfied' : 'not_satisfied',
- idempotencyKey,
- message: payload.message,
- reason: payload.reason,
- serializedContext,
- sourceHints: payload.sourceHints,
- topicId: payload.topicId,
- },
- signal: {
- signalId: signal.signalId,
- signalType: signal.signalType,
- },
- source: signal.source,
- timestamp: signal.timestamp,
->>>>>>> origin/main
},
};
}