Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
Use bot icon for slash commands and normalize YAML file icons
Julius Marminge60ed67e5e1e5
diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsxindex 6103aaaae..991e27cd1 100644--- a/apps/web/src/components/ChatView.tsx+++ b/apps/web/src/components/ChatView.tsx@@ -75,6 +75,7 @@ import ThreadTerminalDrawer from "./ThreadTerminalDrawer";import { useNativeApi } from "../hooks/useNativeApi";import { Alert, AlertAction, AlertDescription, AlertTitle } from "./ui/alert";import {+ BotIcon,ChevronDownIcon,CircleAlertIcon,FileIcon,@@ -259,7 +260,7 @@ const ComposerCommandMenuItem = memo(function ComposerCommandMenuItem(props: {/>) : null}{props.item.type === "slash-command" ? (- <CursorIcon className="size-4 text-muted-foreground/80" />+ <BotIcon className="size-4 text-muted-foreground/80" />) : null}{props.item.type === "model" ? (<Badge variant="outline" className="px-1.5 py-0 text-[10px]">diff --git a/apps/web/src/vscode-icons.test.ts b/apps/web/src/vscode-icons.test.tsindex 085edf366..b00cf0cdc 100644--- a/apps/web/src/vscode-icons.test.ts+++ b/apps/web/src/vscode-icons.test.ts@@ -31,11 +31,13 @@ describe("getVscodeIconUrlForEntry", () => {const dockerfileUrl = getVscodeIconUrlForEntry("Dockerfile", "file", "dark");const shellUrl = getVscodeIconUrlForEntry("entrypoint.sh", "file", "dark");const cursorRulesUrl = getVscodeIconUrlForEntry("general.mdc", "file", "dark");+ const githubWorkflowUrl = getVscodeIconUrlForEntry(".github/workflows/ci.yml", "file", "light");assert.isTrue(tsxUrl.endsWith("/file_type_reactts.svg"));assert.isTrue(dockerfileUrl.endsWith("/file_type_docker.svg"));assert.isTrue(shellUrl.endsWith("/file_type_shell.svg"));assert.isTrue(cursorRulesUrl.endsWith("/file_type_markdown.svg"));+ assert.isTrue(githubWorkflowUrl.endsWith("/file_type_light_yaml.svg"));});it("falls back to defaults when there is no match", () => {diff --git a/apps/web/src/vscode-icons.ts b/apps/web/src/vscode-icons.tsindex 8acd6bbcf..696e5b23d 100644--- a/apps/web/src/vscode-icons.ts+++ b/apps/web/src/vscode-icons.ts@@ -45,6 +45,11 @@ const languageIdByFileName = toLowercaseLookup(languageAssociations.fileNameToLaconst localLanguageIdByExtensionOverrides = {// Cursor rules files (*.mdc) are commonly treated as markdown in VSCode/Cursor.mdc: "markdown",+ // Upstream languages.ts maps yml/yaml to specialized language ids that can produce+ // non-generic YAML icons (for example cloudfoundry/esphome). Prefer the base YAML icon+ // unless a more specific basename/extension match (e.g. azure-pipelines.yml) is found.+ yml: "yaml",+ yaml: "yaml",} as const;const defaultDarkFileIconDefinition = manifest.file ?? "_file";