π€― 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(chat-input): keep the control bar under im_layout (#22856)
Arvin Xub03b95c6f053
diff --git a/src/routes/(main)/agent/features/Conversation/MainChatInput/index.tsx b/src/routes/(main)/agent/features/Conversation/MainChatInput/index.tsxindex f2ebcccb5cd..5ba408d899c 100644--- a/src/routes/(main)/agent/features/Conversation/MainChatInput/index.tsx+++ b/src/routes/(main)/agent/features/Conversation/MainChatInput/index.tsx@@ -58,7 +58,8 @@ const MainChatInput = memo(() => {// left bar keeps the "+" menu, dictation and the expand toggle.const leftActions: ActionKeys[] = useMemo(() => ['plus', 'voiceDictation'], []);// `im_layout` opens conversations as channels: the slim composer preset of- // the side panels (small actions and send button, no control bar).+ // the side panels (small actions and send button). The control bar stays β+ // it is the only place to pick the device and working directory.const imLayout = useImLayout();const input = (@@ -69,7 +70,6 @@ const MainChatInput = memo(() => {isConfigLoading={isAgentConfigLoading}leftActions={leftActions}rightActions={rightActions}- showControlBar={!imLayout}{...(isDevMode? { sendMenu: { items: sendMenuItems } }: {diff --git a/src/routes/(main)/group/features/Conversation/MainChatInput/index.tsx b/src/routes/(main)/group/features/Conversation/MainChatInput/index.tsxindex b44b46c10a5..c666bfbfa6a 100644--- a/src/routes/(main)/group/features/Conversation/MainChatInput/index.tsx+++ b/src/routes/(main)/group/features/Conversation/MainChatInput/index.tsx@@ -42,7 +42,8 @@ const MainChatInput = memo(() => {const sendMenuItems = useSendMenuItems();// `im_layout` opens conversations as channels: the slim composer preset of- // the side panels (small actions and send button, no control bar).+ // the side panels (small actions and send button). The control bar stays β+ // it is the only place to pick the device and working directory.const imLayout = useImLayout();const input = (@@ -54,7 +55,6 @@ const MainChatInput = memo(() => {rightActions={rightActions}sendButtonProps={imLayout ? COMPACT_SEND_BUTTON_PROPS : undefined}sendMenu={{ items: sendMenuItems }}- showControlBar={!imLayout}onEditorReady={(instance) => {// Sync to global ChatStore for compatibility with other featuresuseChatStore.setState({ mainInputEditor: instance });