From 36a2cddc74db3068444d4fc7fd8b8104f1204819 Mon Sep 17 00:00:00 2001
From: Luke Parker <10430890+Hona@users.noreply.github.com>
Date: Tue, 17 Nov 2026 15:19:21 +1000
Subject: [PATCH] feat(browser): mark browser extensions with a puzzle piece
Adds a puzzle glyph to the icon catalog (16 px grid, 1 px stroke, round joins, like its neighbours) and uses it for browser extensions only: the pane's Extensions button and the fallback of an extension without its own icon in the toolbar menu, Settings > Browser and the Add an extension dialog. OpenCode's own extensions keep their icon.
---
packages/gui-plugins/src/browser/panel.tsx | 5 +++--
packages/gui-plugins/src/browser/settings.tsx | 4 ++--
packages/plugin/src/gui/icon-name.ts | 1 +
packages/ui/src/icons/catalog.ts | 6 ++++++
4 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/packages/gui-plugins/src/browser/panel.tsx b/packages/gui-plugins/src/browser/panel.tsx
index 57f480434d5..43f889feb3f 100644
--- a/packages/gui-plugins/src/browser/panel.tsx
+++ b/packages/gui-plugins/src/browser/panel.tsx
@@ -862,7 +862,8 @@ export default function SessionBrowserPane(props: {
variant="ghost-muted"
size="large"
data-action="browser-extensions"
- icon={}
+ // A browser extension's own mark, not the one for OpenCode's extensions.
+ icon={}
aria-label={plugin.t("extensions.menu")}
/>
@@ -878,7 +879,7 @@ export default function SessionBrowserPane(props: {
}
onSelect={() => chooseExtension(extension())}
>
-
+
{extension().action?.title ?? extension().name}
{(badge) => (
diff --git a/packages/gui-plugins/src/browser/settings.tsx b/packages/gui-plugins/src/browser/settings.tsx
index fa04545d9f4..6a7e65c4337 100644
--- a/packages/gui-plugins/src/browser/settings.tsx
+++ b/packages/gui-plugins/src/browser/settings.tsx
@@ -378,7 +378,7 @@ function ExtensionRow(props: {
title={
-
+
{props.name}
{props.children}
diff --git a/packages/plugin/src/gui/icon-name.ts b/packages/plugin/src/gui/icon-name.ts
index c3519c255ef..36958972963 100644
--- a/packages/plugin/src/gui/icon-name.ts
+++ b/packages/plugin/src/gui/icon-name.ts
@@ -136,6 +136,7 @@ export type IconName =
| "post-skill"
| "prompt"
| "providers"
+ | "puzzle"
| "refresh"
| "reset"
| "review"
diff --git a/packages/ui/src/icons/catalog.ts b/packages/ui/src/icons/catalog.ts
index 4c6270fc8ac..a2aa0a3eb66 100644
--- a/packages/ui/src/icons/catalog.ts
+++ b/packages/ui/src/icons/catalog.ts
@@ -238,6 +238,12 @@ const icons = {
viewBox: "0 0 16 16",
body: ``,
},
+ // A browser extension, as every browser draws it: a piece with a tab on top and on the right, and a notch on the
+ // left and at the bottom. OpenCode's own extensions keep `extensions`.
+ puzzle: {
+ viewBox: "0 0 16 16",
+ body: ``,
+ },
"outline-globe-plus": {
viewBox: "0 0 16 16",
body: ``,