A local-first multi-agent app development platform, built on PenguinHarness
feat(web): redraw the dock launcher's shortcut icons, and make its ball answer the pointer (#680)
Yaowei Zhenge339b056ae9a
diff --git a/changelog/unreleased/2026-09-10-dock-launcher-icons.md b/changelog/unreleased/2026-09-10-dock-launcher-icons.mdnew file mode 100644index 00000000..1e65ffc9--- /dev/null+++ b/changelog/unreleased/2026-09-10-dock-launcher-icons.md@@ -0,0 +1,48 @@+# The workbench launcher's shortcuts got redrawn, and its ball answers the pointer++- **Date:** 2026-09-10+- **Type:** feature+- **Scope:** `web`, `docs`+- **PR:** [#680](https://github.com/Prism-Shadow/penguin-harness/pull/680)++[中文版](2026-09-10-dock-launcher-icons.zh.md)++The floating launcher's ball now answers what the pointer is on. Pointing at the ball itself turns+its four workbench tiles into an expand mark and changes the caption under it to "Open"; pointing+at one of the fanned-out entries puts that entry's own glyph in the ball, beside the name the+caption already read out. Keyboard focus drives both exactly as the pointer does, and a fan merely+standing open with nothing pointed at leaves the ball on its resting mark.++## Details++Five marks were redrawn, in the one table the launcher fan, the dock's panel picker, its add menu+and its tab strip all read from, so each moved on all four surfaces at once:++- **Subagents** — two robot heads, a large one above-left and a small one below-right, in place of+ the three-circle spawn tree. It is the Agent's own robot head, twice.+- **Memory** — the cerebrum seen from the side, in place of the open book: a lobed outline with the+ gyri drawn inside it. It ships as one path string because the shared glyph renderer draws a single+ `<path>`, and it is stroked at the family's 1.7 rather than the 1.6 it was drawn at, because that+ weight belongs to the set rather than to any one mark. The Memory panel,+ the memory-changes card and the agent cards' memory count had each carried their own hand-typed+ memory mark; the brain is drawn once, in `components/ui/icons.tsx`, and all three import it.+- **Trace observation** — an open eye, in place of three stacked lines.+- **Remote control** — the paper plane a session row already flies while it is relaying, in place+ of a chat bubble, so one feature wears one mark. The bubble had no other caller and was deleted.+- **Hide launcher** — the same eye struck through corner to corner, in place of the close cross.++The scheduled-tasks alarm clock gained detail as well: domed bells on its shoulders and two splayed+feet, where it had two bare diagonal ticks and no base. Its smallest placement is the session row's+12px trailing cluster, which is the size the detail is bounded by.++The Workspace folder, the terminal prompt and the ball's resting workbench tiles are unchanged.++## The sidebar's Models mark++The Models library in the sidebar nav and the collapsed rail had been drawing a brain of its own,+which the Memory brain would have sat beside as a near-duplicate: at the sizes those rows render,+both reduce to a round outline with a vertical line through it. Models is now a chip — body, die+and three pins a side. Three rather than the six a real package would show, because at the 16px+those rows draw, six pins a side fuse into a serrated edge and stop reading as pins. The die is+what keeps it clear of Machines, the next nav row down: a bare chip body with side ticks and a+stack of server units both reduce to a rectangle with lines.diff --git a/changelog/unreleased/2026-09-10-dock-launcher-icons.zh.md b/changelog/unreleased/2026-09-10-dock-launcher-icons.zh.mdnew file mode 100644index 00000000..8e855186--- /dev/null+++ b/changelog/unreleased/2026-09-10-dock-launcher-icons.zh.md@@ -0,0 +1,41 @@+# 工作台悬浮球的快捷方式图标重绘,悬浮球会回应指针++- **Date:** 2026-09-10+- **Type:** feature+- **Scope:** `web`, `docs`+- **PR:** [#680](https://github.com/Prism-Shadow/penguin-harness/pull/680)++[English](2026-09-10-dock-launcher-icons.md)++悬浮球现在会回应指针落在哪里。指针停在球上时,球上的四格工作台图标换成展开图标,下方文字改为「打开」;+指针停在展开后的某个快捷方式上时,球上换成该快捷方式自己的图标,与文字已经读出的名称并排。键盘焦点的表现+与指针完全一致;快捷方式已展开但没有指向任何一项时,球回到静止时的图标。++## 细节++重绘了五个图标。悬浮球扇形、侧栏面板选择器、其「+」添加菜单与面板标签栏读的是同一张表,因此每个改动同时+作用于这四处:++- **子智能体** —— 一大一小两个智能体头像,大的在左上、小的在右下,取代原先的三圆派生树。用的就是智能体+ 本身的机器人头,画了两个。+- **记忆** —— 侧面看的大脑,取代翻开的书:带脑叶的外轮廓,内部画出脑回。它以单条 path 字符串落地,+ 因为共享的字形渲染器只画一个 `<path>`;线宽采用整套图标的 1.7,而非原图的 1.6——线宽属于整套图标,+ 不属于其中某一枚。记忆面板、记忆变更卡片与智能体卡片上的记忆计数此前各自手抄了一份记忆图标;大脑+ 只在 `components/ui/icons.tsx` 画一次,三处都从那里导入。+- **轨迹观测** —— 睁开的眼睛,取代三条横线。+- **远程控制** —— 改用会话行在中继时已经挂着的纸飞机,取代对话气泡,让同一个功能只有一个标记。气泡已无+ 其他调用方,一并删除。+- **隐藏悬浮球** —— 同一只眼睛,被一道贯穿对角的斜线划掉,取代原先的关闭叉。++定时任务的闹钟也更细致了:肩上加了圆顶铃铛,底下加了两只外撇的脚,此前只有两道光秃秃的斜线、没有+底座。它最小的出现位置是会话行 12px 的尾部图标组,细节程度即以此为界。++工作区的文件夹、终端提示符,以及悬浮球静止时的工作台四格图标均保持不变。++## 侧边栏的模型库图标++侧边栏导航与收起后的侧栏中,模型库此前画的是另一个大脑,与记忆的大脑并排就成了近似重复:在这些行实际+渲染的尺寸下,两者都只剩一个中间带竖线的圆形轮廓。模型库改为芯片——芯片本体、中央裸片,每边三根引脚。+之所以是三根而不是实物那样的六根:在这些行实际渲染的 16px 下,每边六根会糊成一圈锯齿,不再像引脚。中央+裸片则是它与机器拉开距离的关键——紧挨着的下一行导航就是机器,只有本体加侧边短线的芯片和一摞服务器,+都会退化成「一个带线的矩形」。diff --git a/packages/docs/content/web-app.en.md b/packages/docs/content/web-app.en.mdindex 4ecfa5c4..a77cdcb4 100644--- a/packages/docs/content/web-app.en.md+++ b/packages/docs/content/web-app.en.md@@ -86,7 +86,7 @@ Copy buttons across the app confirm at the button itself: the copy icon flips to### Shortcuts Launcher-Whenever no side panel is on screen — the right panel closed on a desktop-width window, or neither panel open on a narrow one, where the two merge into a bottom sheet — a translucent round button carrying a workbench glyph floats 32px inside the right edge of the conversation, the region between the toolbar and the composer, with a short caption beneath it reading "Shortcuts", so the workbench's panels stay one click away even for someone who has never noticed the toolbar's toggle. Clicking it (or pressing Enter/Space on it) fans out one round entry per panel — agents, Workspace files, memory, Trace, messaging, and a terminal — on a tight semicircular ring around the button, opening leftward. The entries are glyphs alone; pointing at one, or focusing it, shows its name in the caption under the button, which stays centred beneath it — the room the button keeps from the edge is what holds even the longest name. Neither the button nor the entries carry a tooltip: their names are already on screen. Near the top or bottom of the conversation the arc shortens to the part that still fits. Picking an entry opens that panel — in the right side panel on a desktop-width window, in the bottom sheet on a narrow one — and the button disappears the moment the panel is open. The arc ends in a "Hide launcher" entry that puts the button away for good; a message says where it comes back from, and the **Shortcuts launcher** switch on the Appearance settings page turns it on again. Esc, a click elsewhere or scrolling folds the fan. The button drags up and down along the edge (a short press stays a click), following the pointer wherever it goes — over other controls included — and springs back onto the edge when released; it never covers the toolbar or the composer, and its position is remembered in the browser as one preference shared by every conversation. While the panel is closed and a subagent is waiting for an approval, the amber dot from the toolbar's toggle rides the button too.+Whenever no side panel is on screen — the right panel closed on a desktop-width window, or neither panel open on a narrow one, where the two merge into a bottom sheet — a translucent round button carrying a workbench glyph floats 32px inside the right edge of the conversation, the region between the toolbar and the composer, with a short caption beneath it reading "Shortcuts", so the workbench's panels stay one click away even for someone who has never noticed the toolbar's toggle. Clicking it (or pressing Enter/Space on it) fans out one round entry per panel — agents, Workspace files, memory, Trace, messaging, and a terminal — on a tight semicircular ring around the button, opening leftward. The entries are glyphs alone; pointing at one, or focusing it, shows its name in the caption under the button, which stays centred beneath it — the room the button keeps from the edge is what holds even the longest name. The button is the other half of that readout: it draws the pointed-at entry's glyph in place of its workbench mark, and while the pointer or the keyboard focus is on the button itself it names what the next click will do — an expand mark captioned "Open" while the fan is closed, a collapse mark captioned "Close" while it stands open — a fan merely standing open with nothing pointed at leaves the button on its resting mark. Neither the button nor the entries carry a tooltip: their names are already on screen. Near the top or bottom of the conversation the arc shortens to the part that still fits. Picking an entry opens that panel — in the right side panel on a desktop-width window, in the bottom sheet on a narrow one — and the button disappears the moment the panel is open. The arc ends in a "Hide launcher" entry that puts the button away for good; a message says where it comes back from, and the **Shortcuts launcher** switch on the Appearance settings page turns it on again. Esc, a click elsewhere or scrolling folds the fan. The button drags up and down along the edge (a short press stays a click), following the pointer wherever it goes — over other controls included — and springs back onto the edge when released; it never covers the toolbar or the composer, and its position is remembered in the browser as one preference shared by every conversation. While the panel is closed and a subagent is waiting for an approval, the amber dot from the toolbar's toggle rides the button too.### Files Paneldiff --git a/packages/docs/content/web-app.zh.md b/packages/docs/content/web-app.zh.mdindex 65e78f65..4c9662c0 100644--- a/packages/docs/content/web-app.zh.md+++ b/packages/docs/content/web-app.zh.md@@ -85,7 +85,7 @@ penguin web### 快捷方式悬浮球-没有面板占据屏幕时——桌面宽度下右侧停靠栏收起,窄屏下两块面板合并成的底部弹层没有打开——对话区(工具行与输入框之间的区域)右缘内侧 32px 处会浮着一枚半透明圆形按钮(球面是工作台图标)、下方带一行小字「快捷方式」,让工作台的各块面板始终一步可达——即使从未注意到工具行上的开关。点击它(或在其上按 Enter / Space)会以按钮为圆心向左展开一圈紧挨着它的圆形入口——智能体、Workspace 文件、记忆、轨迹、消息软件与终端各一枚,只有图标;指到或聚焦其中一枚时,按钮下方那行小字改显示它的名称;这行小字始终居中在按钮正下方,按钮与边缘留出的距离足以容下最长的那个名称。按钮与入口都不带 tooltip——名称已经写在屏幕上。按钮靠近对话区上下两端时,这段弧收窄为放得下的那一段。选中入口即打开对应面板——桌面宽度落在右侧停靠栏,窄屏落在底部弹层——面板一出现按钮就消失。弧末另有一枚「隐藏悬浮球」入口,选中即让按钮不再出现,并提示去哪儿恢复;设置页「外观」的**快捷方式悬浮球**开关可重新打开。Esc、点击别处或滚动都会收起这段弧。按钮可沿右缘上下拖动(短按仍是点击),拖动全程跟随指针——指针经过其他按钮也不会中断——松手回弹贴边;它不会盖住工具行或输入框,位置作为一条全局偏好记在浏览器里,所有对话共用。停靠栏收起期间若有子智能体等待审批,工具行开关上的琥珀色小点也会显示在这枚按钮上。+没有面板占据屏幕时——桌面宽度下右侧停靠栏收起,窄屏下两块面板合并成的底部弹层没有打开——对话区(工具行与输入框之间的区域)右缘内侧 32px 处会浮着一枚半透明圆形按钮(球面是工作台图标)、下方带一行小字「快捷方式」,让工作台的各块面板始终一步可达——即使从未注意到工具行上的开关。点击它(或在其上按 Enter / Space)会以按钮为圆心向左展开一圈紧挨着它的圆形入口——智能体、Workspace 文件、记忆、轨迹、消息软件与终端各一枚,只有图标;指到或聚焦其中一枚时,按钮下方那行小字改显示它的名称;这行小字始终居中在按钮正下方,按钮与边缘留出的距离足以容下最长的那个名称。按钮本身是这行小字的另一半:指到某个入口时,球面换成该入口自己的图标;指针或键盘焦点落在按钮自身上时,球面与小字说的是下一次点击的结果——弧收起时是展开图标与「打开」,弧展开时是收起图标与「关闭」——弧展开着但没有指向任何一项时,球面回到静止时的工作台图标。按钮与入口都不带 tooltip——名称已经写在屏幕上。按钮靠近对话区上下两端时,这段弧收窄为放得下的那一段。选中入口即打开对应面板——桌面宽度落在右侧停靠栏,窄屏落在底部弹层——面板一出现按钮就消失。弧末另有一枚「隐藏悬浮球」入口,选中即让按钮不再出现,并提示去哪儿恢复;设置页「外观」的**快捷方式悬浮球**开关可重新打开。Esc、点击别处或滚动都会收起这段弧。按钮可沿右缘上下拖动(短按仍是点击),拖动全程跟随指针——指针经过其他按钮也不会中断——松手回弹贴边;它不会盖住工具行或输入框,位置作为一条全局偏好记在浏览器里,所有对话共用。停靠栏收起期间若有子智能体等待审批,工具行开关上的琥珀色小点也会显示在这枚按钮上。### 文件面板diff --git a/packages/web/src/components/ui/icons.tsx b/packages/web/src/components/ui/icons.tsxindex affae6c0..d22d7ea3 100644--- a/packages/web/src/components/ui/icons.tsx+++ b/packages/web/src/components/ui/icons.tsx@@ -175,6 +175,59 @@ export const PANEL_RIGHT_ICON = "M4 5h16v14H4zM14 5v14";/** A dashboard of four tiles: the workbench the floating launcher opens. */export const WORKBENCH_ICON = "M3 3h7v9H3zM14 3h7v5h-7zM14 12h7v9h-7zM3 16h7v5H3z";+/**+ * Four corner brackets opening outward: the floating launcher's ball while the pointer or the+ * keyboard is on it, in place of the workbench tiles it rests on. Brackets rather than an arrow+ * or a chevron because the fan they announce opens up, left and down at once, and a mark with a+ * direction in it would name the wrong one.+ */+export const EXPAND_ICON = "M9 3H3v6M15 3h6v6M15 21h6v-6M9 21H3v-6";++/** The same four corner brackets turned inward: what the launcher ball offers while its fan stands open. */+export const COLLAPSE_ICON = "M3 9h6V3M21 9h-6V3M21 15h-6v6M3 15h6v6";++/**+ * Two robot heads, a large one above-left and a small one below-right: the subagents panel,+ * wherever the dock names it. The single robot head of `AGENT_GROUP_ICON` is the Agent itself;+ * the pair is what that Agent has going on underneath it. Reduced to antenna + head + two eye+ * dots, because the ears and the smile the single head carries fall below a pixel on the dock's+ * 13px tab strip.+ */+export const AGENTS_PAIR_ICON =+ "M7.3 4.2V2.2M3.8 4.2h7a2.2 2.2 0 0 1 2.2 2.2v5.8a2.2 2.2 0 0 1-2.2 2.2h-7a2.2 2.2 0 0 1-2.2-2.2V6.4a2.2 2.2 0 0 1 2.2-2.2zM4.6 9.2h.01M10 9.2h.01M18.6 14.8v-1.7M16.5 14.8h4.2a1.7 1.7 0 0 1 1.7 1.7v3.8a1.7 1.7 0 0 1-1.7 1.7h-4.2a1.7 1.7 0 0 1-1.7-1.7v-3.8a1.7 1.7 0 0 1 1.7-1.7zM17.3 18.4h.01M20.5 18.4h.01";++/**+ * The cerebrum from the side — for the Memory panel, the memory-changes card and the agent cards'+ * memory count.+ *+ * Two subpaths in one string, because `GlyphIcon` draws a single `<path>`: the lobed outline, then+ * the gyri inside it. The drawing was authored with the whole figure shifted a little down the box;+ * that shift is baked into the coordinates here rather than carried as a transform, since a+ * transform is an attribute the shared renderer has nowhere to put.+ *+ * It is stroked at the family's 1.7 like every other glyph, not at the 1.6 it was drawn at — the+ * weight belongs to the set, not to the mark.+ *+ * Every surface draws it from here: a memory mark typed out a second time is how one thing ends up+ * with two pictures of itself.+ */+export const MEMORY_ICON =+ "M5.1 17.9c-1.4 0 -2.5 -1.05 -2.5 -2.45 -1.1 -1 -.95 -2.75 .25 -3.6 -.5 -1.75 .6 -3.5 2.3 -3.8 .2 -1.85 1.95 -3.15 3.75 -2.7 1.3 -1.3 3.5 -1.45 4.95 -.25 2 -.35 3.8 .8 4.35 2.6 2 .1 3.45 1.9 3.05 3.85 .9 1.2 .5 2.95 -.75 3.7 .2 1.6 -1.1 2.9 -2.7 2.75 -1.15 1.15 -2.85 1.3 -4.15 .5 -1.6 1.55 -4.4 1.4 -5.45 -.8 -.85 .75 -2.1 .85 -3.1 .2ZM5.15 8.05C5.05 9.75 6.4 10.8 8 10.55m5.85 -5.45c-1.1 .65 -1.8 1.9 -1.6 3.25m5.95 -.65c-1.7 -.2 -2.8 1.2 -2.6 2.65M8.2 17.7c-1.2 -1.1 -.85 -3 .55 -3.65 1.7 -.8 3.3 -.45 4.5 -2.1m4.55 6.05c-1.35 -.45 -1.9 -1.65 -1.45 -2.85";++/**+ * The eye's almond outline, shared by the two marks drawn from it — `NAV_ICONS.traces` (an open+ * eye: watching the run) and `HIDDEN_ICON` (the same eye struck through). Composed rather than+ * typed twice so the pair cannot drift into looking unrelated.+ */+const EYE_OUTLINE = "M2 12s3.5-6.5 10-6.5S22 12 22 12s-3.5 6.5-10 6.5S2 12 2 12z";++/**+ * The struck-through eye: the launcher fan's last entry, which puts the ball away. The slash runs+ * corner to corner rather than across the eye alone, because the open eye a few entries above it+ * in the same fan is the same outline, and the slash is the only thing telling the two apart.+ */+export const HIDDEN_ICON = `${EYE_OUTLINE}M3 3l18 18`;+/*** File glyphs, shared by every place a file operation is marked — the file summary card, the* memory-changes card, the context panel's file ranking — so a read, an edit and a write look@@ -199,12 +252,10 @@ export const FILE_EDIT_ICON = "M12 20h9M16.5 3.5a2.85 2.85 0 1 1 4 4L7.5 20.5 2*/export const BACKGROUND_TASKS_ICON = "M2 12h4l3 9 6-18 3 9h4";-/** Chat bubble: the messaging binding's channel-neutral mark (dock panel tab). */-export const MESSAGING_ICON = "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z";-/*** Paper plane: remote control — the session-row mark for a Session that is relaying through- * a messaging channel, and the row menu's action that sets one up. One shape for every+ * a messaging channel, the row menu's action that sets one up, and the dock's remote-control+ * panel, so the feature wears one mark wherever it appears. One shape for every* channel — shape alone is not the carrier, so the row pairs it with the channel's name in* a tooltip and in sr-only text, and the menu entry is labelled.*/@@ -248,29 +299,38 @@ export const HAND_ICON ="M18 11V6a2 2 0 0 0-4 0M14 10V4a2 2 0 0 0-4 0v2M10 10.5V6a2 2 0 0 0-4 0v8M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15";/**- * Alarm clock (dial, hands and the twin bells): the mark of scheduled tasks wherever they are- * counted, listed or created — the agents page's schedule count, the chat dock's scheduled-tasks- * panel and the mark a session row wears while an enabled task is bound to it. Distinct from the- * plain clock face that means "most recent" in the list options.+ * Alarm clock — domed bells on its shoulders, a dial with hands, and two splayed feet: the mark+ * of scheduled tasks wherever they are counted, listed or created — the agents page's schedule+ * count, the chat dock's scheduled-tasks panel and the mark a session row wears while an enabled+ * task is bound to it. Distinct from the plain clock face that means "most recent" in the list+ * options.+ *+ * The smallest place it draws is the session row's 12px trailing cluster, which is what the+ * detail is bounded by: bells, feet and the hands' right angle each hold a whole pixel there,+ * while a second dial ring or ticks around the face would not, and the notch between the bells+ * is what keeps them reading as two.*/export const SCHEDULE_ICON =- "M12 21a7 7 0 1 0 0-14 7 7 0 0 0 0 14zm0-10v3l2 1.5M5 3L2.5 5.5M19 3l2.5 2.5";+ "M12 19.5a6.7 6.7 0 1 0 0-13.4 6.7 6.7 0 0 0 0 13.4zM12 8.9v3.9l2.6 1.8M3.1 7.7A3.5 3.5 0 0 1 7.7 4.3M16.3 4.3a3.5 3.5 0 0 1 4.6 3.4M7.8 18.8 5.4 21.6M16.2 18.8l2.4 2.8";export const NAV_ICONS = {agents: AGENT_GROUP_ICON,/** Plugin library (the puzzle piece). */plugins: PLUGIN_ICON,/**- * Model library (a brain: two lobes drawn as one path, closed across the midline). The chip- * this replaces named the hardware a model runs on; what the page actually lists is language- * models, and a brain is the mark that says so at a glance.+ * Model library (a chip: body, die and three pins a side). Three pins rather than the six a+ * real package would show — at the 16px these rows draw, six pins a side fuse into a serrated+ * edge and stop being pins. The die is what keeps the mark clear of `machines`, the next nav+ * row down: a bare body with side ticks and a stack of server units both reduce to "a rectangle+ * with lines", while concentric squares ringed with pins reduce to nothing else in this table.*/models:- "M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18ZM12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",+ "M5 5h14v14H5zM9 9h6v6H9zM7.5 5V2.4M12 5V2.4M16.5 5V2.4M7.5 19v2.6M12 19v2.6M16.5 19v2.6M5 7.5H2.4M5 12H2.4M5 16.5H2.4M19 7.5h2.6M19 12h2.6M19 16.5h2.6",/** Machines (two stacked server units, each with its own status lamp). */machines: "M4 4h16v6H4zM4 14h16v6H4zM7 7h.01M7 17h.01",usage: "M4 20V10m6 10V4m6 16v-7m4 7H2",- traces: "M4 6h16M4 12h10M4 18h13",+ /** Trace observation (an open eye with its pupil): watching what a run actually did. */+ traces: `${EYE_OUTLINE}M14.7 12a2.7 2.7 0 1 1-5.4 0 2.7 2.7 0 0 1 5.4 0z`,/** Benchmark center (a trophy: cup + two handles + base). */benchmark:"M7 4h10v5a5 5 0 0 1-10 0V4zM7 5H4v1a3 3 0 0 0 3 3m10-4h3v1a3 3 0 0 1-3 3M12 14v4m-4 0h8",diff --git a/packages/web/src/features/agents/agents-page.tsx b/packages/web/src/features/agents/agents-page.tsxindex bc5a618e..11349d02 100644--- a/packages/web/src/features/agents/agents-page.tsx+++ b/packages/web/src/features/agents/agents-page.tsx@@ -56,6 +56,7 @@ import {CloseIcon,GEAR_ICON,HOOK_ICON,+ MEMORY_ICON,PLUGIN_ICON,SCHEDULE_ICON,} from "../../components/ui/icons";@@ -97,9 +98,8 @@ const CARD_ICONS = {"M12 6.5C10.5 5 8 4.5 4 5v12c4-.5 6.5 0 8 1.5 1.5-1.5 4-2 8-1.5V5c-4-.5-6.5 0-8 1.5zm0 0V18",/** Usage (bar chart, same as sidebar "Usage Center") */usage: "M4 20V10m6 10V4m6 16v-7m4 7H2",- /** Memory (brain: two hemispheres + inner fold, lucide simplified), opens the settings tab */- memory:- "M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18ZM12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18ZM15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",+ /** Memory count: the brain every Memory surface wears; opens the settings tab. */+ memory: MEMORY_ICON,} as const;/**diff --git a/packages/web/src/features/chat/memory-changes-card.tsx b/packages/web/src/features/chat/memory-changes-card.tsxindex 8e298935..d600293f 100644--- a/packages/web/src/features/chat/memory-changes-card.tsx+++ b/packages/web/src/features/chat/memory-changes-card.tsx@@ -5,7 +5,7 @@* see lib/omni/memory-changes.ts for what qualifies and what is filtered).** Clicking a row opens the Memory side panel directly on that memory's content; the- * header's book button opens the panel on its list. A changed file that was deleted in a+ * header's brain button opens the panel on its list. A changed file that was deleted in a* later turn is filtered out (deletedKeys) — the row disappears here just as it does from* the panel's list; the whole card hides when nothing survives.*/@@ -17,15 +17,11 @@ import { ICON_SIZE } from "../../lib/icon-scale";import type { MemoryChangeRow } from "../../lib/omni/memory-changes";import { memoryRowKey } from "../../lib/omni/memory-changes";import { PathLabel } from "./message-files-card";-import { FILE_EDIT_ICON, FILE_WRITE_ICON } from "../../components/ui/icons";+import { FILE_EDIT_ICON, FILE_WRITE_ICON, MEMORY_ICON } from "../../components/ui/icons";import { scopeGlyph } from "./memory-view";const MAX_VISIBLE = 3;-/** Open book: the card's mark, same as the Memory panel's. */-const MEMORY_ICON =- "M4 19.5A2.5 2.5 0 0 1 6.5 17H20M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z";-export function MemoryChangesCard({rows,deletedKeys,diff --git a/packages/web/src/features/dock/dock-launcher.tsx b/packages/web/src/features/dock/dock-launcher.tsxindex 1b5ec258..bb27169c 100644--- a/packages/web/src/features/dock/dock-launcher.tsx+++ b/packages/web/src/features/dock/dock-launcher.tsx@@ -6,10 +6,12 @@* tight ring centred on it and opening leftward. The entries are glyphs alone; the caption* under the ball is where their names are read — it shows the hovered or focused entry's* name — because seven name pills floating around the ball is what pushed the ring far- * enough out to stop reading as one object. Nothing carries a tooltip: every name is already- * on screen. Picking an entry opens its panel: in the right dock on a wide window, in the- * merged bottom surface on a narrow one, which makes that surface visible and unmounts the- * launcher. The arc's last entry puts the launcher away for good, remembered as a global+ * enough out to stop reading as one object. The ball is that readout's other half: it draws+ * the pointed-at entry's glyph, an expand mark while the pointer or focus is on the ball+ * itself, and the workbench tiles the rest of the time. Nothing carries a tooltip: every name+ * is already on screen. Picking an entry opens its panel: in the right dock on a wide window,+ * in the merged bottom surface on a narrow one, which makes that surface visible and unmounts+ * the launcher. The arc's last entry puts the launcher away for good, remembered as a global* preference and turned back on from Appearance settings. The ball drags along the edge —* another global preference, a ratio of the body's height — and springs back onto it when* let go; Esc, a press elsewhere or a scroll folds the fan.@@ -36,7 +38,13 @@ import type {} from "react";import { S } from "../../lib/strings";import { GlyphIcon } from "../../components/ui/glyph-icon";-import { CloseIcon, NAV_ICONS, WORKBENCH_ICON } from "../../components/ui/icons";+import {+ COLLAPSE_ICON,+ EXPAND_ICON,+ HIDDEN_ICON,+ NAV_ICONS,+ WORKBENCH_ICON,+} from "../../components/ui/icons";import { toastInfo } from "../../components/ui/toast";import { usePrefersReducedMotion } from "../../components/ui/use-reduced-motion";import { ICON_SIZE } from "../../lib/icon-scale";@@ -132,7 +140,8 @@ interface FanState {interface FanEntry {key: string;label: string;- glyph: ReactNode;+ /** Drawn twice at two sizes: 15px in the fan, 18px in the ball while this entry is pointed at. */+ glyphAt: (size: number) => ReactNode;badge: boolean;testId: string;choose: () => void;@@ -202,10 +211,13 @@ function LauncherBall({// --------------------------------------------------------------------------------- fanconst [fan, setFanState] = useState<FanState | null>(null);/**- * The entry the pointer or focus is on, read out by the caption under the ball. Null is- * nothing pointed at, and the caption falls back to the launcher's own word.+ * The entry the pointer or focus is on: the caption under the ball reads out its name and the+ * ball draws its glyph. The key rather than the label, because the ball redraws the same mark+ * one rung larger than the fan does. Null is nothing pointed at.*/- const [hoveredName, setHoveredName] = useState<string | null>(null);+ const [hoveredKey, setHoveredKey] = useState<string | null>(null);+ /** The pointer or focus is on the ball itself: it offers to open rather than naming itself. */+ const [ballActive, setBallActive] = useState(false);// Mirrored in a ref so event handlers that fire before the next render read the latest.const fanNow = useRef<FanState | null>(null);const exitTimer = useRef(0);@@ -227,7 +239,7 @@ function LauncherBall({/** Folds the fan; `refocus` returns focus to the ball (Esc) so a keyboard user is not stranded. */const closeFan = useCallback((refocus: boolean) => {- setHoveredName(null);+ setHoveredKey(null);const current = fanNow.current;if (current !== null && current.phase === "open") {if (reducedMotionRef.current) {@@ -281,9 +293,6 @@ function LauncherBall({};}, [fanOpen, closeFan]);- // ----------------------------------------------------------------------------- caption- const captionText = hoveredName ?? S.dock.launcherCaption;-// The body's height bounds the travel: measured on mount and on every resize, and the// ball re-placed from its stored ratio (unless a drag is holding it) — a taller or// shorter body moves the resting point, and a fan opened for the old geometry folds.@@ -423,7 +432,7 @@ function LauncherBall({const entries: FanEntry[] = PANEL_KINDS.map((kind) => ({key: kind,label: panelLabel(kind),- glyph: panelGlyph(kind, ICON_SIZE.iconButton),+ glyphAt: (size) => panelGlyph(kind, size),badge: kind === "agents" && agentsPending,testId: `dock-launcher-open-${kind}`,// The dock becomes visible with the tab, and the launcher unmounts with it.@@ -433,7 +442,7 @@ function LauncherBall({entries.push({key: "terminal",label: S.terminal.title,- glyph: <GlyphIcon d={NAV_ICONS.terminal} size={ICON_SIZE.iconButton} />,+ glyphAt: (size) => <GlyphIcon d={NAV_ICONS.terminal} size={size} />,badge: false,testId: "dock-launcher-open-terminal",// The dock picker's terminal action: adopt a live shell no conversation holds, or@@ -447,9 +456,9 @@ function LauncherBall({entries.push({key: "hide",label: S.dock.launcherHide,- // The close cross at its own 14px grid — a two-stroke mark aliases when scaled off it —- // in the muted ink, so it reads as a lesser thing than the panels above it.- glyph: <CloseIcon className={toneInk.muted} />,+ // The struck-through eye, in the muted ink so it reads as a lesser thing than the panels+ // above it — and keeps reading that way when the ball mirrors it.+ glyphAt: (size) => <GlyphIcon d={HIDDEN_ICON} size={size} className={toneInk.muted} />,badge: false,testId: "dock-launcher-hide",// Writing the preference unmounts the launcher under its own click, so the toast is@@ -461,6 +470,22 @@ function LauncherBall({},});+ // What the ball shows, in the one place the states cannot contradict each other: an entry being+ // pointed at wins, then the ball's own hover — which names what the NEXT CLICK does, not what+ // the ball is, so an open fan offers to close and a closed one offers to open — and the resting+ // workbench mark last. A fan merely standing open is not a hover.+ const hovered = entries.find((entry) => entry.key === hoveredKey) ?? null;+ const ballAction = fanOpen ? S.dock.launcherClose : S.dock.launcherOpen;+ const captionText = hovered?.label ?? (ballActive ? ballAction : S.dock.launcherCaption);+ const ballGlyph = hovered ? (+ hovered.glyphAt(ICON_SIZE.sectionMark)+ ) : (+ <GlyphIcon+ d={ballActive ? (fanOpen ? COLLAPSE_ICON : EXPAND_ICON) : WORKBENCH_ICON}+ size={ICON_SIZE.sectionMark}+ />+ );+const label = agentsPending ? `${S.dock.launcher} · ${S.dock.launcherPending}` : S.dock.launcher;// Where each entry sits on the arc, for the geometry the fan opened with. The count is// the one being rendered, so a terminal appearing or leaving mid-fan re-spreads the arc.@@ -500,10 +525,10 @@ function LauncherBall({// tooltip: it would only repeat the caption a few pixels away.aria-label={entry.label}onClick={entry.choose}- onMouseEnter={() => setHoveredName(entry.label)}- onMouseLeave={() => setHoveredName((name) => (name === entry.label ? null : name))}- onFocus={() => setHoveredName(entry.label)}- onBlur={() => setHoveredName((name) => (name === entry.label ? null : name))}+ onMouseEnter={() => setHoveredKey(entry.key)}+ onMouseLeave={() => setHoveredKey((key) => (key === entry.key ? null : key))}+ onFocus={() => setHoveredKey(entry.key)}+ onBlur={() => setHoveredKey((key) => (key === entry.key ? null : key))}className={`${ENTRY_CLASS} ${fan.phase === "closing" ? "launcher-fan-out" : "launcher-fan-in"}`}@@ -521,7 +546,7 @@ function LauncherBall({} as CSSProperties}>- {entry.glyph}+ {entry.glyphAt(ICON_SIZE.iconButton)}{entry.badge && (<spanaria-hidden@@ -538,6 +563,10 @@ function LauncherBall({type="button"{...dragProps}onClick={onBallClick}+ onMouseEnter={() => setBallActive(true)}+ onMouseLeave={() => setBallActive(false)}+ onFocus={() => setBallActive(true)}+ onBlur={() => setBallActive(false)}// No tooltip: the caption under the ball already says what it opens, and the drag is// discovered by dragging.aria-label={label}@@ -550,9 +579,10 @@ function LauncherBall({: "bg-white/75 opacity-80 dark:bg-gray-900/75"} ${dragging ? "cursor-grabbing" : "cursor-pointer"}`}>- <GlyphIcon d={WORKBENCH_ICON} size={ICON_SIZE.sectionMark} />- {/* The caption hangs below the ball's circle: the launcher's own word at rest, the- pointed-at entry's name while the fan is open. It is the visible readout only —+ {ballGlyph}+ {/* The caption hangs below the ball's circle: the launcher's own word at rest, "open"+ while the ball itself is pointed at, and the pointed-at entry's name while the fan+ is open — the ball drawing that entry's mark meanwhile. It is the visible readout —every button carries its own accessible name — so it is hidden from assistivetechnology and never folded into the ball's. Its height is spelled from theconstant the vertical clamp reserves, so the two cannot drift apart. */}diff --git a/packages/web/src/features/dock/panel-meta.tsx b/packages/web/src/features/dock/panel-meta.tsxindex 62496bad..1bc7c0a4 100644--- a/packages/web/src/features/dock/panel-meta.tsx+++ b/packages/web/src/features/dock/panel-meta.tsx@@ -7,36 +7,16 @@ import type { ReactNode } from "react";import { S } from "../../lib/strings";import { GlyphIcon } from "../../components/ui/glyph-icon";import { FOLDER_ICON } from "../../components/ui/group-list";-import { MESSAGING_ICON, NAV_ICONS, SCHEDULE_ICON } from "../../components/ui/icons";+import {+ AGENTS_PAIR_ICON,+ MEMORY_ICON,+ MESSAGING_RELAY_ICON,+ NAV_ICONS,+ SCHEDULE_ICON,+} from "../../components/ui/icons";import { ICON_SIZE } from "../../lib/icon-scale";import type { PanelKind } from "./dock-state";-/** Open book: the Memory panel's mark (same glyph as the memory-changes card header). */-const MEMORY_ICON =- "M4 19.5A2.5 2.5 0 0 1 6.5 17H20M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z";--/** The subagents spawn-tree glyph is multi-element (circles + edges), so it is a component. */-export function AgentsGlyph({ size = ICON_SIZE.iconButton }: { size?: number }) {- return (- <svg- width={size}- height={size}- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- strokeWidth="1.7"- strokeLinecap="round"- strokeLinejoin="round"- aria-hidden- >- <circle cx="5" cy="12" r="2.5" />- <circle cx="19" cy="5.5" r="2.5" />- <circle cx="19" cy="18.5" r="2.5" />- <path d="M7.4 11 16.7 6.6M7.4 13l9.3 4.4" />- </svg>- );-}-/** The panel's short display name (read at call time — `S` is a live locale binding). */export function panelLabel(kind: PanelKind): string {switch (kind) {@@ -58,7 +38,7 @@ export function panelLabel(kind: PanelKind): string {export function panelGlyph(kind: PanelKind, size: number = ICON_SIZE.iconButton): ReactNode {switch (kind) {case "agents":- return <AgentsGlyph size={size} />;+ return <GlyphIcon d={AGENTS_PAIR_ICON} size={size} />;case "workspace":return <GlyphIcon d={FOLDER_ICON} size={size} />;case "memory":@@ -66,7 +46,7 @@ export function panelGlyph(kind: PanelKind, size: number = ICON_SIZE.iconButton)case "trace":return <GlyphIcon d={NAV_ICONS.traces} size={size} />;case "messaging":- return <GlyphIcon d={MESSAGING_ICON} size={size} />;+ return <GlyphIcon d={MESSAGING_RELAY_ICON} size={size} />;case "schedules":return <GlyphIcon d={SCHEDULE_ICON} size={size} />;}diff --git a/packages/web/src/lib/strings-en.ts b/packages/web/src/lib/strings-en.tsindex 10ebd355..162237f5 100644--- a/packages/web/src/lib/strings-en.ts+++ b/packages/web/src/lib/strings-en.ts@@ -104,6 +104,8 @@ export const en: Strings = {`This ends the shell "${name}" — it cannot be restored.`,launcher: "Shortcuts",launcherCaption: "Shortcuts",+ launcherOpen: "Open",+ launcherClose: "Close",launcherPending: "a subagent awaits approval",launcherPanels: "Shortcuts",launcherHide: "Hide launcher",diff --git a/packages/web/src/lib/strings.ts b/packages/web/src/lib/strings.tsindex bb6d47f0..4e726ca3 100644--- a/packages/web/src/lib/strings.ts+++ b/packages/web/src/lib/strings.ts@@ -114,10 +114,14 @@ export const zh = {/*** The floating launcher on the chat body's right edge while the right dock is hidden.* `launcherCaption` is printed under the ball at rest — the same words as the ball's- * accessible name — and gives way to the pointed-at entry's name while the fan is open.+ * accessible name — gives way to `launcherOpen` while the ball itself is pointed at, and+ * to the pointed-at entry's name while the fan is open.*/launcher: "快捷方式",launcherCaption: "快捷方式",+ /** Replaces `launcherCaption` while the pointer or focus is on the ball and no entry is: what the next click does, so the pair swaps with the fan's state. */+ launcherOpen: "打开",+ launcherClose: "关闭",/** Appended to the launcher's accessible name while its amber dot shows. */launcherPending: "子智能体有待审批",/** The fan of entries the launcher opens (its accessible group name). */diff --git a/packages/web/test/icon-scale.test.ts b/packages/web/test/icon-scale.test.tsindex 00ec327e..5219bd2d 100644--- a/packages/web/test/icon-scale.test.ts+++ b/packages/web/test/icon-scale.test.ts@@ -71,6 +71,13 @@ describe("one glyph, one home", () => {expect(occurrences("M4 5h16v14H4zM14 5v14")).toEqual(["components/ui/icons.tsx"]);});+ it("draws the memory brain in exactly one place", () => {+ // The Memory mark was hand-typed three times — the dock's panel table, the memory-changes+ // card and the agent card's memory count — so a redraw moved one surface and left the others+ // on the old picture.+ expect(occurrences("M5.15 8.05C5.05 9.75")).toEqual(["components/ui/icons.tsx"]);+ });+it("draws the background-task trace in exactly one place", () => {// Three surfaces draw it now — a session row, the chat header pill and a backgrounded// tool row — which is how the paths above ended up hand-typed five times each.