Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

feat(web): display provider logos in runtime list (#571)

LinYushenc283288133db
diff --git a/packages/views/runtimes/components/provider-logo.tsx b/packages/views/runtimes/components/provider-logo.tsx
new file mode 100644
index 0000000000..8357ef2da0
--- /dev/null
+++ b/packages/views/runtimes/components/provider-logo.tsx
@@ -0,0 +1,111 @@
+import { Monitor } from "lucide-react";
+
+// Claude (Anthropic) — official mark, sourced from Bootstrap Icons (bi-claude)
+function ClaudeLogo({ className }: { className: string }) {
+ return (
+ <svg viewBox="0 0 16 16" fill="#D97757" className={className}>
+ <path d="m3.127 10.604 3.135-1.76.053-.153-.053-.085H6.11l-.525-.032-1.791-.048-1.554-.065-1.505-.08-.38-.081L0 7.832l.036-.234.32-.214.455.04 1.009.069 1.513.105 1.097.064 1.626.17h.259l.036-.105-.089-.065-.068-.064-1.566-1.062-1.695-1.121-.887-.646-.48-.327-.243-.306-.104-.67.435-.48.585.04.15.04.593.456 1.267.981 1.654 1.218.242.202.097-.068.012-.049-.109-.181-.9-1.626-.96-1.655-.428-.686-.113-.411a2 2 0 0 1-.068-.484l.496-.674L4.446 0l.662.089.279.242.411.94.666 1.48 1.033 2.014.302.597.162.553.06.17h.105v-.097l.085-1.134.157-1.392.154-1.792.052-.504.25-.605.497-.327.387.186.319.456-.045.294-.19 1.23-.37 1.93-.243 1.29h.142l.161-.16.654-.868 1.097-1.372.484-.545.565-.601.363-.287h.686l.505.751-.226.775-.707.895-.585.759-.839 1.13-.524.904.048.072.125-.012 1.897-.403 1.024-.186 1.223-.21.553.258.06.263-.218.536-1.307.323-1.533.307-2.284.54-.028.02.032.04 1.029.098.44.024h1.077l2.005.15.525.346.315.424-.053.323-.807.411-3.631-.863-.872-.218h-.12v.073l.726.71 1.331 1.202 1.667 1.55.084.383-.214.302-.226-.032-1.464-1.101-.565-.497-1.28-1.077h-.084v.113l.295.432 1.557 2.34.08.718-.112.234-.404.141-.444-.08-.911-1.28-.94-1.44-.759-1.291-.093.053-.448 4.821-.21.246-.484.186-.403-.307-.214-.496.214-.98.258-1.28.21-1.016.19-1.263.112-.42-.008-.028-.092.012-.953 1.307-1.448 1.957-1.146 1.227-.274.109-.477-.247.045-.44.266-.39 1.586-2.018.956-1.25.617-.723-.004-.105h-.036l-4.212 2.736-.75.096-.324-.302.04-.496.154-.162 1.267-.871z" />
+ </svg>
+ );
+}
+
+// Codex (OpenAI) — official mark, sourced from Bootstrap Icons (bi-openai)
+function CodexLogo({ className }: { className: string }) {
+ return (
+ <svg viewBox="0 0 16 16" fill="currentColor" className={className}>
+ <path d="M14.949 6.547a3.94 3.94 0 0 0-.348-3.273 4.11 4.11 0 0 0-4.4-1.934A4.1 4.1 0 0 0 8.423.2 4.15 4.15 0 0 0 6.305.086a4.1 4.1 0 0 0-1.891.948 4.04 4.04 0 0 0-1.158 1.753 4.1 4.1 0 0 0-1.563.679A4 4 0 0 0 .554 4.72a3.99 3.99 0 0 0 .502 4.731 3.94 3.94 0 0 0 .346 3.274 4.11 4.11 0 0 0 4.402 1.933c.382.425.852.764 1.377.995.526.231 1.095.35 1.67.346 1.78.002 3.358-1.132 3.901-2.804a4.1 4.1 0 0 0 1.563-.68 4 4 0 0 0 1.14-1.253 3.99 3.99 0 0 0-.506-4.716m-6.097 8.406a3.05 3.05 0 0 1-1.945-.694l.096-.054 3.23-1.838a.53.53 0 0 0 .265-.455v-4.49l1.366.778q.02.011.025.035v3.722c-.003 1.653-1.361 2.992-3.037 2.996m-6.53-2.75a2.95 2.95 0 0 1-.36-2.01l.095.057L5.29 12.09a.53.53 0 0 0 .527 0l3.949-2.246v1.555a.05.05 0 0 1-.022.041L6.473 13.3c-1.454.826-3.311.335-4.15-1.098m-.85-6.94A3.02 3.02 0 0 1 3.07 3.949v3.785a.51.51 0 0 0 .262.451l3.93 2.237-1.366.779a.05.05 0 0 1-.048 0L2.585 9.342a2.98 2.98 0 0 1-1.113-4.094zm11.216 2.571L8.747 5.576l1.362-.776a.05.05 0 0 1 .048 0l3.265 1.86a3 3 0 0 1 1.173 1.207 2.96 2.96 0 0 1-.27 3.2 3.05 3.05 0 0 1-1.36.997V8.279a.52.52 0 0 0-.276-.445m1.36-2.015-.097-.057-3.226-1.855a.53.53 0 0 0-.53 0L6.249 6.153V4.598a.04.04 0 0 1 .019-.04L9.533 2.7a3.07 3.07 0 0 1 3.257.139c.474.325.843.778 1.066 1.303.223.526.289 1.103.191 1.664zM5.503 8.575 4.139 7.8a.05.05 0 0 1-.026-.037V4.049c0-.57.166-1.127.476-1.607s.752-.864 1.275-1.105a3.08 3.08 0 0 1 3.234.41l-.096.054-3.23 1.838a.53.53 0 0 0-.265.455zm.742-1.577 1.758-1 1.762 1v2l-1.755 1-1.762-1z" />
+ </svg>
+ );
+}
+
+// OpenCode — official pixel-art "O" mark from anomalyco/opencode brand assets
+function OpenCodeLogo({ className }: { className: string }) {
+ return (
+ <svg viewBox="0 0 24 24" fill="none" className={className}>
+ <path d="M18 18H6V6H18V18Z" fill="#CFCECD" />
+ <path d="M18 3H6V18H18V3ZM24 24H0V0H24V24Z" fill="#656363" />
+ </svg>
+ );
+}
+
+// OpenClaw — official pixel lobster mascot from openclaw/openclaw
+function OpenClawLogo({ className }: { className: string }) {
+ return (
+ <svg viewBox="0 0 16 16" fill="none" className={className}>
+ {/* outline */}
+ <g fill="#3a0a0d">
+ <rect x="1" y="5" width="1" height="3" />
+ <rect x="2" y="4" width="1" height="1" />
+ <rect x="2" y="8" width="1" height="1" />
+ <rect x="3" y="3" width="1" height="1" />
+ <rect x="3" y="9" width="1" height="1" />
+ <rect x="4" y="2" width="1" height="1" />
+ <rect x="4" y="10" width="1" height="1" />
+ <rect x="5" y="2" width="6" height="1" />
+ <rect x="11" y="2" width="1" height="1" />
+ <rect x="12" y="3" width="1" height="1" />
+ <rect x="12" y="9" width="1" height="1" />
+ <rect x="13" y="4" width="1" height="1" />
+ <rect x="13" y="8" width="1" height="1" />
+ <rect x="14" y="5" width="1" height="3" />
+ <rect x="5" y="11" width="6" height="1" />
+ <rect x="4" y="12" width="1" height="1" />
+ <rect x="11" y="12" width="1" height="1" />
+ <rect x="3" y="13" width="1" height="1" />
+ <rect x="12" y="13" width="1" height="1" />
+ <rect x="5" y="14" width="6" height="1" />
+ </g>
+ {/* body */}
+ <g fill="#ff4f40">
+ <rect x="5" y="3" width="6" height="1" />
+ <rect x="4" y="4" width="8" height="1" />
+ <rect x="3" y="5" width="10" height="1" />
+ <rect x="3" y="6" width="10" height="1" />
+ <rect x="3" y="7" width="10" height="1" />
+ <rect x="4" y="8" width="8" height="1" />
+ <rect x="5" y="9" width="6" height="1" />
+ <rect x="5" y="12" width="6" height="1" />
+ <rect x="6" y="13" width="4" height="1" />
+ </g>
+ {/* claws */}
+ <g fill="#ff775f">
+ <rect x="1" y="6" width="2" height="1" />
+ <rect x="2" y="5" width="1" height="1" />
+ <rect x="2" y="7" width="1" height="1" />
+ <rect x="13" y="6" width="2" height="1" />
+ <rect x="13" y="5" width="1" height="1" />
+ <rect x="13" y="7" width="1" height="1" />
+ </g>
+ {/* eyes */}
+ <g fill="#081016">
+ <rect x="6" y="5" width="1" height="1" />
+ <rect x="9" y="5" width="1" height="1" />
+ </g>
+ <g fill="#f5fbff">
+ <rect x="6" y="4" width="1" height="1" />
+ <rect x="9" y="4" width="1" height="1" />
+ </g>
+ </svg>
+ );
+}
+
+export function ProviderLogo({
+ provider,
+ className = "h-4 w-4",
+}: {
+ provider: string;
+ className?: string;
+}) {
+ switch (provider) {
+ case "claude":
+ return <ClaudeLogo className={className} />;
+ case "codex":
+ return <CodexLogo className={className} />;
+ case "opencode":
+ return <OpenCodeLogo className={className} />;
+ case "openclaw":
+ return <OpenClawLogo className={className} />;
+ default:
+ return <Monitor className={className} />;
+ }
+}
diff --git a/packages/views/runtimes/components/runtime-detail.tsx b/packages/views/runtimes/components/runtime-detail.tsx
index f825f1a8da..88b264b894 100644
--- a/packages/views/runtimes/components/runtime-detail.tsx
+++ b/packages/views/runtimes/components/runtime-detail.tsx
@@ -22,7 +22,8 @@ import {
} from "@multica/ui/components/ui/alert-dialog";
import { ActorAvatar } from "../../common/actor-avatar";
import { formatLastSeen } from "../utils";
-import { RuntimeModeIcon, StatusBadge, InfoField } from "./shared";
+import { StatusBadge, InfoField } from "./shared";
+import { ProviderLogo } from "./provider-logo";
import { PingSection } from "./ping-section";
import { UpdateSection } from "./update-section";
import { UsageSection } from "./usage-section";
@@ -86,7 +87,7 @@ export function RuntimeDetail({ runtime }: { runtime: AgentRuntime }) {
runtime.status === "online" ? "bg-success/10" : "bg-muted"
}`}
>
- <RuntimeModeIcon mode={runtime.runtime_mode} />
+ <ProviderLogo provider={runtime.provider} className="h-4 w-4" />
</div>
<div className="min-w-0">
<h2 className="text-sm font-semibold truncate">{runtime.name}</h2>
diff --git a/packages/views/runtimes/components/runtime-list.tsx b/packages/views/runtimes/components/runtime-list.tsx
index 6d77ccda18..a135ce19e8 100644
--- a/packages/views/runtimes/components/runtime-list.tsx
+++ b/packages/views/runtimes/components/runtime-list.tsx
@@ -11,7 +11,7 @@ import {
DropdownMenuSeparator,
} from "@multica/ui/components/ui/dropdown-menu";
import { ActorAvatar } from "../../common/actor-avatar";
-import { RuntimeModeIcon } from "./shared";
+import { ProviderLogo } from "./provider-logo";
type RuntimeFilter = "mine" | "all";
@@ -40,7 +40,7 @@ function RuntimeListItem({
runtime.status === "online" ? "bg-success/10" : "bg-muted"
}`}
>
- <RuntimeModeIcon mode={runtime.runtime_mode} />
+ <ProviderLogo provider={runtime.provider} className="h-4 w-4" />
</div>
<div className="min-w-0 flex-1">
<div className="truncate text-sm font-medium">{runtime.name}</div>