🤯 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
🐛 fix(desktop): allow scrolling in read file view and improve new topic creation
Innei6e65d725c535
diff --git a/packages/builtin-tool-local-system/src/client/Render/ReadLocalFile/ReadFileView.tsx b/packages/builtin-tool-local-system/src/client/Render/ReadLocalFile/ReadFileView.tsxindex a0985fff950..80aa1f09b82 100644--- a/packages/builtin-tool-local-system/src/client/Render/ReadLocalFile/ReadFileView.tsx+++ b/packages/builtin-tool-local-system/src/client/Render/ReadLocalFile/ReadFileView.tsx@@ -78,6 +78,8 @@ const styles = createStaticStyles(({ css, cssVar }) => ({background: ${cssVar.colorBgContainer};`,previewText: css`+ overflow: auto;+font-size: 12px;line-height: 1.6;word-break: break-all;diff --git a/src/features/DesktopFileMenuBridge/index.tsx b/src/features/DesktopFileMenuBridge/index.tsxindex f092539a333..95d4fe27506 100644--- a/src/features/DesktopFileMenuBridge/index.tsx+++ b/src/features/DesktopFileMenuBridge/index.tsx@@ -17,11 +17,15 @@ const DesktopFileMenuBridge = () => {const { createAgent, createEmptyGroup, createPage } = useCreateMenuItems();const navigate = useNavigate();const inboxAgentId = useAgentStore(builtinAgentSelectors.inboxAgentId);+ const activeAgentId = useAgentStore((s) => s.activeAgentId);- // Handle create new topic from File menu (navigate to inbox agent)+ // Handle create new topic from File menu+ // If currently in an agent page, create a new topic for the current agent+ // Otherwise, navigate to inbox agentconst handleCreateNewTopic = useCallback(() => {- navigate(SESSION_CHAT_URL(inboxAgentId, false));- }, [inboxAgentId, navigate]);+ const targetAgentId = activeAgentId || inboxAgentId;+ navigate(SESSION_CHAT_URL(targetAgentId, false));+ }, [activeAgentId, inboxAgentId, navigate]);// Handle create new agent from File menuconst handleCreateNewAgent = useCallback(async () => {