Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
fix(apps): dock tile radius/border polish + minimized-chip real icons (§7.1k) (#921)
Call White17633313b170
diff --git a/docs/plans/dock-pinned-show-page-apps.md b/docs/plans/dock-pinned-show-page-apps.mdindex 34148c679..bc184d989 100644--- a/docs/plans/dock-pinned-show-page-apps.md+++ b/docs/plans/dock-pinned-show-page-apps.md@@ -707,6 +707,34 @@ traversal-realpath guards apply to it too (a hostile `..` href is already rejecthref policy before mapping), and `icon_version` hashes the resolved (mapped) file so it stayscontent-correct. The mapping is LINK-scoped — it is not a blanket scan of `public/`.+### 7.1k Dock visual polish — tile radius/borders + minimized-chip icons (owner 2026-07-16 15:56)++Owner feedback on the live Dock (two items):++1. **Tile radius + accent borders.** The Dock tile icon's rounding is too heavy — target+ **12px** (`rounded-xl`) on the Dock tile box. And the per-session accent BORDERS+ ("有的绿有的紫") read as noisy — **remove the accent border entirely** from+ `ShowPageAvatarTile` (the 34% `color-mix` `borderColor` + the `border` class). This is+ the shared chokepoint, so the border disappears everywhere it renders (Dock, App+ Library rows, ⌘K results) — ONE consistent look, declared in the PR body. Letter+ avatars keep their accent-tinted BACKGROUND fill (16% mix) and accent letter color —+ only the border goes. **Radius is unified too (owner 16:04): 12px (`rounded-xl`) at+ the shared chokepoint itself** — Dock tiles AND App Library rows AND ⌘K results all+ render the same 12px, borderless tile; no per-surface radius overrides.+2. **Minimized-window chips use the app's real icon.** The minimized thumbnail's body+ currently renders the registry glyph (`def.icon`) for every window. New rule: **if the+ app has an icon, show it; only fall back otherwise.** Concretely: for `showpage`+ windows, render the page's own avatar content through the shared chokepoint+ (`ShowPageAvatarContent`: favicon `<img>` when the page has one, else the letter+ avatar with its accent — same identity as its Dock tile, sized to the chip); built-ins+ keep their registry icon (that IS their icon). The letter-not-generic fallback choice+ is deliberate (consistent with the Dock tile identity) — declare it in the PR body.++Invariant reminder: Dock tile visual changes MUST NOT break the drag gesture — the+press target must remain a filling non-interactive child (icon `<img+draggable={false}>` without `pointer-events-none`, letter wrapped in a filling `<span>`);+see the invariant comment in `showPageAvatarTile.tsx` (§7.1i forensics).+### 7.2 Becoming an app: the ladder (owner Q&A 2026-07-13)Pinning **is** installing — no separate ceremony. Two entrances, one action:diff --git a/ui/src/apps/showPageAvatarTile.test.tsx b/ui/src/apps/showPageAvatarTile.test.tsxindex b64c90cfc..836023a9a 100644--- a/ui/src/apps/showPageAvatarTile.test.tsx+++ b/ui/src/apps/showPageAvatarTile.test.tsx@@ -1,7 +1,7 @@import { renderToStaticMarkup } from 'react-dom/server';import { describe, expect, it } from 'vitest';-import { ShowPageAvatarContent } from './showPageAvatarTile';+import { ShowPageAvatarContent, ShowPageAvatarTile } from './showPageAvatarTile';// Guards the Dock-drag invariant (§7.1h item 3): a Dock tile is a framer-motion// Reorder.Item whose drag pan starts ONLY when the press lands on a non-interactive@@ -29,3 +29,24 @@ describe('ShowPageAvatarContent — Dock-drag press-target invariant', () => {expect(html).not.toContain('pointer-events-none');});});++// §7.1k item 1: the shared chokepoint is borderless — the per-session accent border+// (the 34% color-mix borderColor + the `border` class) read as noisy across many+// tiles, so it is gone everywhere ShowPageAvatarTile renders (App Library rows ++// ⌘K results). The accent survives only as the 16% background tint + letter color,+// and the tile keeps its 12px radius (`rounded-lg` = --radius-lg in this theme).+describe('ShowPageAvatarTile — §7.1k borderless accent tile', () => {+ it('renders no border, keeping the accent tint + letter color + 12px radius', () => {+ const html = renderToStaticMarkup(<ShowPageAvatarTile sessionId="ses_border" title="Hello" />);+ // No accent border anywhere: neither the `border` utility class nor a+ // `border-color` inline style (which is how React serializes borderColor).+ expect(html).not.toContain('border');+ // The accent still shows as the background tint + letter color.+ expect(html).toContain('background-color:');+ expect(html).toContain('color:var(');+ // 12px radius preserved (unified with the Dock tile).+ expect(html).toContain('rounded-lg');+ // The letter avatar still renders (no icon version supplied).+ expect(html).toContain('>H</span>');+ });+});diff --git a/ui/src/apps/showPageAvatarTile.tsx b/ui/src/apps/showPageAvatarTile.tsxindex 5b10d2b1b..7c0d32931 100644--- a/ui/src/apps/showPageAvatarTile.tsx+++ b/ui/src/apps/showPageAvatarTile.tsx@@ -72,13 +72,17 @@ export const ShowPageAvatarTile: React.FC<{<spanaria-hiddenclassName={clsx(- 'flex size-9 shrink-0 items-center justify-center overflow-hidden rounded-lg border text-[14px] font-bold leading-none',+ // §7.1k: borderless, 12px radius. `rounded-lg` is 12px in this theme+ // (--radius-lg; NOT stock Tailwind's 8px — `rounded-xl` here is 16px), the+ // owner's unified target across the Dock, App Library rows, and ⌘K results.+ // The per-session accent BORDER is dropped (it read as noisy across many+ // tiles); the accent survives only as the 16% background tint + letter color.+ 'flex size-9 shrink-0 items-center justify-center overflow-hidden rounded-lg text-[14px] font-bold leading-none',className,)}style={{color: `var(${accentVar})`,backgroundColor: `color-mix(in srgb, var(${accentVar}) 16%, transparent)`,- borderColor: `color-mix(in srgb, var(${accentVar}) 34%, transparent)`,}}><ShowPageAvatarContent iconUrl={showPageIconUrl(sessionId, iconVersion)} letter={letter} />diff --git a/ui/src/components/apps/AppWindow.tsx b/ui/src/components/apps/AppWindow.tsxindex b5957b996..7411eeb0b 100644--- a/ui/src/components/apps/AppWindow.tsx+++ b/ui/src/components/apps/AppWindow.tsx@@ -276,11 +276,13 @@ export const AppWindow: React.FC<{{showpageSid && showpageAvatar ? (<spanaria-hidden- className="grid size-4 shrink-0 place-items-center overflow-hidden rounded-[4px] border text-[10px] font-bold leading-none"+ // §7.1k sweep: borderless — the per-session accent border was the noise the+ // owner flagged. Keep the 16% tint + accent letter color and the chip's own+ // 4px radius (a small title-bar chip; the 12px tile unification is not for it).+ className="grid size-4 shrink-0 place-items-center overflow-hidden rounded-[4px] text-[10px] font-bold leading-none"style={{color: `var(${showpageAvatar.accentVar})`,backgroundColor: `color-mix(in srgb, var(${showpageAvatar.accentVar}) 16%, transparent)`,- borderColor: `color-mix(in srgb, var(${showpageAvatar.accentVar}) 34%, transparent)`,}}><ShowPageAvatarContent iconUrl={showPageIconUrl(showpageSid, iconVersion)} letter={showpageAvatar.letter} />diff --git a/ui/src/components/apps/Dock.tsx b/ui/src/components/apps/Dock.tsxindex cf61f712f..2355a90b1 100644--- a/ui/src/components/apps/Dock.tsx+++ b/ui/src/components/apps/Dock.tsx@@ -41,20 +41,35 @@ export const Dock: React.FC = () => {const pinBySession = useMemo(() => new Map(pins.map((pin) => [pin.session_id, pin])), [pins]);const pageBySession = useMemo(() => new Map(pages.map((page) => [page.session_id, page])), [pages]);+ // A Show Page's display identity from the live inventory: title prefers the live+ // session title, then the pin snapshot, then the session id; icon_version is the+ // has-icon signal + cache token. Shared by the resident tiles and the minimized+ // chips so a page reads identically wherever it appears (§7.1k item 2).+ const showpageIdentity = useMemo(+ () =>+ (sessionId: string, fallbackTitle?: string): { title: string; iconVersion: string | null } => {+ const page = pageBySession.get(sessionId);+ // live session title → pin snapshot → caller fallback (e.g. a minimized+ // window's own title, so it survives an unloaded/failed inventory) → sid.+ const title = page+ ? page.title?.trim() || t('chat.untitled')+ : pinBySession.get(sessionId)?.title_snapshot?.trim() || fallbackTitle?.trim() || sessionId;+ return { title, iconVersion: page?.icon_version ?? null };+ },+ [pageBySession, pinBySession, t],+ );+const resolveItem = useMemo(() => {return (id: string): ResidentItem | null => {const sessionId = dockIdToSession(id);if (sessionId !== null) {- const page = pageBySession.get(sessionId);- const title = page- ? page.title?.trim() || t('chat.untitled')- : pinBySession.get(sessionId)?.title_snapshot?.trim() || sessionId;- return { kind: 'showpage', id, sessionId, title, iconVersion: page?.icon_version ?? null };+ const { title, iconVersion } = showpageIdentity(sessionId);+ return { kind: 'showpage', id, sessionId, title, iconVersion };}const def = APP_REGISTRY[id as AppId];return def ? { kind: 'builtin', id, def } : null;};- }, [pageBySession, pinBySession, t]);+ }, [showpageIdentity]);// Local, drag-mutable copy of the order; framer's Reorder updates it live, and// it re-syncs whenever the server order changes (load / pin / unpin elsewhere).@@ -199,9 +214,14 @@ export const Dock: React.FC = () => {setMenu({ x: e.clientX, y: e.clientY, item });}}className={clsx(- 'grid size-10 place-items-center overflow-hidden rounded-xl border text-[15px] font-bold leading-none transition',+ // §7.1k: 12px radius (rounded-lg = --radius-lg = 12px in this theme;+ // rounded-xl is 16px here) unified with the App Library / ⌘K tiles.+ // No shared `border` here: built-in tiles carry their own neutral+ // border (accent only when focused); pinned Show Page tiles are+ // borderless — the accent lives in the tint + letter color.+ 'grid size-10 place-items-center overflow-hidden rounded-lg text-[15px] font-bold leading-none transition',item.kind === 'builtin' &&- (active ? 'border-2 bg-foreground/[0.07]' : 'border-border bg-foreground/[0.03] hover:bg-foreground/[0.07]'),+ (active ? 'border-2 bg-foreground/[0.07]' : 'border border-border bg-foreground/[0.03] hover:bg-foreground/[0.07]'),)}style={item.kind === 'builtin'@@ -209,14 +229,17 @@ export const Dock: React.FC = () => {? { borderColor: `var(${item.def.accent})` }: undefined: {- // Pinned Show Page: a letter avatar on a hashed accent tint (no icon- // pipeline). Border brightens to the full accent when focused.+ // Pinned Show Page: the page's favicon or a letter avatar on a+ // hashed accent tint (no icon pipeline). §7.1k: the per-session+ // accent RESTING border is gone (it read as noisy across many+ // pinned tiles); the accent survives as the 16% tint + letter+ // color. The FOCUSED tile shows an accent ring (box-shadow, not a+ // resting border) — visible even over an opaque favicon, where a+ // tint change would be hidden; only one tile is focused at a time,+ // so it is not the noisy multi-color resting look §7.1k removed.color: `var(${avatar!.accentVar})`,backgroundColor: `color-mix(in srgb, var(${avatar!.accentVar}) 16%, transparent)`,- borderWidth: active ? 2 : 1,- borderColor: active- ? `var(${avatar!.accentVar})`- : `color-mix(in srgb, var(${avatar!.accentVar}) 34%, transparent)`,+ boxShadow: active ? `0 0 0 2px var(${avatar!.accentVar})` : undefined,}}>@@ -278,7 +301,19 @@ export const Dock: React.FC = () => {{minimized.map((w) => {const def = APP_REGISTRY[w.appId];const Icon = def.icon;- const label = w.title ?? t(def.titleKey);+ // A showpage window's chip mirrors its Dock tile: the page's OWN icon+ // (favicon → letter avatar with its accent) and its live title. Every+ // other app keeps its registry glyph — that IS its icon (§7.1k item 2).+ // Resolve the sessionId param via a local first (the registry idiom) so+ // the typeof check narrows without a possibly-undefined property access.+ const rawSessionId = w.appId === 'showpage' ? w.params?.sessionId : undefined;+ const sessionId = typeof rawSessionId === 'string' && rawSessionId ? rawSessionId : null;+ // Pass w.title as the identity fallback so a persisted minimized window keeps+ // its real title if the inventory hasn't loaded / failed (Codex P3); the+ // live/pinned title still wins when available.+ const identity = sessionId ? showpageIdentity(sessionId, w.title) : null;+ const avatar = sessionId && identity ? showPageAvatar(sessionId, identity.title) : null;+ const label = identity ? identity.title : (w.title ?? t(def.titleKey));return (<buttonkey={w.id}@@ -296,7 +331,25 @@ export const Dock: React.FC = () => {<span className="size-1 rounded-full" style={{ backgroundColor: '#28c840' }} /></span><span className="grid flex-1 place-items-center">- <Icon className="size-4" style={{ color: `var(${def.accent})` }} />+ {sessionId && avatar ? (+ // The page's favicon (else letter avatar on its accent tint) — the+ // same shared chokepoint the Dock tile uses, scaled to the chip body.+ <span+ aria-hidden+ className="grid size-5 place-items-center overflow-hidden rounded-md text-[11px] font-bold leading-none"+ style={{+ color: `var(${avatar.accentVar})`,+ backgroundColor: `color-mix(in srgb, var(${avatar.accentVar}) 16%, transparent)`,+ }}+ >+ <ShowPageAvatarContent+ iconUrl={showPageIconUrl(sessionId, identity!.iconVersion)}+ letter={avatar.letter}+ />+ </span>+ ) : (+ <Icon className="size-4" style={{ color: `var(${def.accent})` }} />+ )}</span></span><span className="max-w-full truncate text-[10px] leading-tight text-muted">{label}</span>diff --git a/ui/src/components/apps/MobileDockDrawer.tsx b/ui/src/components/apps/MobileDockDrawer.tsxindex a1f4d4ec1..1f29e7799 100644--- a/ui/src/components/apps/MobileDockDrawer.tsx+++ b/ui/src/components/apps/MobileDockDrawer.tsx@@ -172,11 +172,19 @@ export const MobileDockDrawer: React.FC<{ open: boolean; onClose: () => void }>className="flex select-none flex-col items-center gap-1.5"><span- className="grid size-14 place-items-center overflow-hidden rounded-2xl border text-[20px] font-bold leading-none"+ className="grid size-14 place-items-center overflow-hidden rounded-2xl text-[20px] font-bold leading-none"style={{color: `var(${accentVar})`,backgroundColor: `color-mix(in srgb, var(${accentVar}) ${item.kind === 'builtin' ? 14 : 16}%, transparent)`,- borderColor: `color-mix(in srgb, var(${accentVar}) ${item.kind === 'builtin' ? 30 : 34}%, transparent)`,+ // §7.1k sweep: pinned Show Page tiles are borderless (the per-session+ // accent border was the owner's noise, matching the desktop Dock);+ // built-in tiles keep a subtle fixed-accent border. The tile keeps its+ // existing 20px radius (mobile tiles are larger than desktop's 40px, so+ // the 12px desktop-tile unification does not apply here).+ border:+ item.kind === 'builtin'+ ? `1px solid color-mix(in srgb, var(${accentVar}) 30%, transparent)`+ : undefined,}}>{Icon ? (diff --git a/ui/src/components/apps/ShowPageRoute.tsx b/ui/src/components/apps/ShowPageRoute.tsxindex 09f747e6a..8fcce5843 100644--- a/ui/src/components/apps/ShowPageRoute.tsx+++ b/ui/src/components/apps/ShowPageRoute.tsx@@ -7,6 +7,7 @@ import { useApi } from '../../context/ApiContext';import { useDock } from '../../context/DockContext';import { useWindowManager } from '../../context/WindowManagerContext';import { showPageAvatar, showPagePrivatePath } from '../../apps/showPageAvatar';+import { ShowPageAvatarContent } from '../../apps/showPageAvatarTile';// The `/apps/show/:sessionId` route — a pinned Show Page opened as an app on the// current surface. Desktop keeps windows (mirrors LibraryRoute): focus an@@ -122,14 +123,18 @@ const MobileShowPage: React.FC<{ sessionId: string }> = ({ sessionId }) => {{avatar && (<spanaria-hidden- className="grid size-7 shrink-0 place-items-center rounded-lg border text-[13px] font-bold leading-none"+ // §7.1k sweep: borderless — the per-session accent border removed. Keep the 16%+ // tint + accent letter color and the header's existing 12px radius. Routes the+ // avatar through the shared ShowPageAvatarContent chokepoint (letter-only here:+ // this header loads the session, not the icon inventory, so it has no favicon+ // — §7.1f — but it now shares the one render path if that changes).+ className="grid size-7 shrink-0 place-items-center overflow-hidden rounded-lg text-[13px] font-bold leading-none"style={{color: `var(${avatar.accentVar})`,backgroundColor: `color-mix(in srgb, var(${avatar.accentVar}) 16%, transparent)`,- borderColor: `color-mix(in srgb, var(${avatar.accentVar}) 34%, transparent)`,}}>- {avatar.letter}+ <ShowPageAvatarContent iconUrl={null} letter={avatar.letter} /></span>)}<span className="min-w-0 flex-1 truncate text-[14px] font-semibold text-foreground">{label}</span>diff --git a/ui/src/components/workbench/search/AppSearchResults.tsx b/ui/src/components/workbench/search/AppSearchResults.tsxindex 7166f2d06..ecfe87989 100644--- a/ui/src/components/workbench/search/AppSearchResults.tsx+++ b/ui/src/components/workbench/search/AppSearchResults.tsx@@ -54,7 +54,9 @@ export const AppSearchResultSection: React.FC<AppSearchResultSectionProps> = ({sessionId={result.sessionId}title={result.title}iconVersion={result.iconVersion}- className="size-7 rounded-md"+ // §7.1k: size-only override — the radius stays the shared 12px+ // (rounded-lg) from the tile, no per-surface radius override.+ className="size-7"/>) : (<span