π€― 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): stop the dir icon from reusing the branch glyph (#16980)
Arvin Xu65888adf53bd
diff --git a/src/features/ChatInput/ControlBar/DirIcon.tsx b/src/features/ChatInput/ControlBar/DirIcon.tsxindex b88861787d8..58e9791fcb7 100644--- a/src/features/ChatInput/ControlBar/DirIcon.tsx+++ b/src/features/ChatInput/ControlBar/DirIcon.tsx@@ -1,23 +1,28 @@import { Github } from '@lobehub/icons';import { Icon } from '@lobehub/ui';import { cssVar } from 'antd-style';-import { FolderIcon, GitBranchIcon } from 'lucide-react';+import { FolderGit2Icon, FolderIcon } from 'lucide-react';import { memo } from 'react';interface DirIconProps {- /** Detected repo type β drives the glyph: GitHub mark, git branch, or a plain- * folder when the type is unknown. */+ /** Detected repo type β drives the glyph: GitHub mark, a git-tracked folder, or+ * a plain folder when the type is unknown. */repoType?: 'git' | 'github';size?: number;}/** Directory icon shared by every cwd surface (local / device / settings pickers,- * topic rows) so a `github` dir looks the same everywhere. */+ * topic rows) so a `github` dir looks the same everywhere.+ *+ * A plain-git dir renders a *folder* glyph, not `GitBranchIcon`: this icon names a+ * directory, and in the ControlBar it sits immediately left of the worktree switcher,+ * which owns the branch glyph. Two identical branch icons side by side read as one+ * control repeated rather than "repo" followed by "branch". */const DirIcon = memo<DirIconProps>(({ repoType, size = 16 }) => {const iconStyle = { color: cssVar.colorTextTertiary, flex: 'none' as const };if (repoType === 'github') return <Github size={size} style={iconStyle} />;return (- <Icon icon={repoType === 'git' ? GitBranchIcon : FolderIcon} size={size} style={iconStyle} />+ <Icon icon={repoType === 'git' ? FolderGit2Icon : FolderIcon} size={size} style={iconStyle} />);});