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(workbench): preserve session row density (#1010)
Call White116f622664f3
diff --git a/ui/src/components/workbench/ProjectsPage.tsx b/ui/src/components/workbench/ProjectsPage.tsxindex a280d01e9..9bed3366a 100644--- a/ui/src/components/workbench/ProjectsPage.tsx+++ b/ui/src/components/workbench/ProjectsPage.tsx@@ -35,6 +35,7 @@ import { ArchiveSessionDialog } from './ArchiveSessionDialog';import { NewProjectDialog } from './NewProjectDialog';import { ProjectAgentsMdDialog } from './ProjectAgentsMdDialog';import { ProjectSettingsDialog } from './ProjectSettingsDialog';+import { SessionPinIndicator } from './SessionPinAction';const DOT: Record<string, string> = {running: 'bg-mint shadow-[0_0_7px_rgba(91,255,160,0.9)]',@@ -324,6 +325,7 @@ const MobileSessionRow: React.FC<{<span className="min-w-0 flex-1 truncate text-[13px] font-medium">{session.title || `#${session.id.slice(-6)}`}</span>+ <SessionPinIndicator pinned={session.pinned} label={t('workbench.sessionPinned')} />{unread > 0 ? (<span className="shrink-0 rounded-full bg-mint px-1.5 py-0.5 font-mono text-[10px] font-bold text-background">{unread > 99 ? '99+' : unread}diff --git a/ui/src/components/workbench/SessionPinAction.test.tsx b/ui/src/components/workbench/SessionPinAction.test.tsxindex d52845e21..956743dd4 100644--- a/ui/src/components/workbench/SessionPinAction.test.tsx+++ b/ui/src/components/workbench/SessionPinAction.test.tsx@@ -1,7 +1,7 @@import { renderToStaticMarkup } from 'react-dom/server';import { describe, expect, it } from 'vitest';-import { SessionPinAction } from './SessionPinAction';+import { SessionPinAction, SessionPinIndicator } from './SessionPinAction';const renderAction = (pinned: boolean, pending = false) =>renderToStaticMarkup(@@ -15,6 +15,13 @@ const renderAction = (pinned: boolean, pending = false) =>);describe('SessionPinAction', () => {+ it('keeps the 24px action target out of the session row layout', () => {+ const html = renderAction(false);++ expect(html).toContain('absolute inset-y-0 right-2 flex items-center');+ expect(html).toContain('grid size-6');+ });+it('reveals an unpinned action on row hover, keyboard focus, and coarse pointers', () => {const html = renderAction(false);@@ -43,3 +50,20 @@ describe('SessionPinAction', () => {expect(html).toContain('cursor-wait');});});++describe('SessionPinIndicator', () => {+ it('renders no passive status for an unpinned session', () => {+ const html = renderToStaticMarkup(<SessionPinIndicator pinned={false} label="Pinned" />);++ expect(html).toBe('');+ });++ it('renders a non-interactive status icon for a pinned session', () => {+ const html = renderToStaticMarkup(<SessionPinIndicator pinned label="Pinned" />);++ expect(html).toContain('role="img"');+ expect(html).toContain('aria-label="Pinned"');+ expect(html).toContain('text-cyan');+ expect(html).not.toContain('<button');+ });+});diff --git a/ui/src/components/workbench/SessionPinAction.tsx b/ui/src/components/workbench/SessionPinAction.tsxindex a37b3d55d..5f00ea7ce 100644--- a/ui/src/components/workbench/SessionPinAction.tsx+++ b/ui/src/components/workbench/SessionPinAction.tsx@@ -11,6 +11,27 @@ interface SessionPinActionProps {className?: string;}+interface SessionPinIndicatorProps {+ pinned: boolean;+ label: string;+ className?: string;+}++export const SessionPinIndicator: React.FC<SessionPinIndicatorProps> = ({ pinned, label, className }) => {+ if (!pinned) return null;++ return (+ <span+ role="img"+ aria-label={label}+ title={label}+ className={clsx('flex shrink-0 text-cyan', className)}+ >+ <Pin className="size-3" aria-hidden="true" />+ </span>+ );+};+export const SessionPinAction: React.FC<SessionPinActionProps> = ({pinned,pending,@@ -26,32 +47,33 @@ export const SessionPinAction: React.FC<SessionPinActionProps> = ({};return (- <button- type="button"- disabled={pending}- aria-label={label}- aria-pressed={pinned}- title={label}- onClick={handleClick}- className={clsx(- 'group/pin grid size-6 shrink-0 place-items-center rounded-md transition-[opacity,transform,background-color,color,box-shadow] duration-150 ease-out',- 'hover:-translate-y-px hover:scale-105 focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-cyan/60 motion-reduce:transform-none',- pending- ? 'cursor-wait text-muted opacity-100 hover:translate-y-0 hover:scale-100'- : pinned- ? 'bg-cyan/[0.10] text-cyan opacity-100 hover:bg-cyan/[0.18] hover:ring-1 hover:ring-cyan/30'- : 'text-muted opacity-0 hover:bg-foreground/[0.08] hover:text-foreground group-hover/sess:opacity-100 group-focus-within/sess:opacity-100 pointer-coarse:opacity-100',- className,- )}- >- {pending ? (- <Loader2 className="size-3 animate-spin" aria-hidden="true" />- ) : (- <Pin- className="size-3 transition-transform duration-150 group-hover/pin:-rotate-12 group-hover/pin:scale-110 motion-reduce:transform-none"- aria-hidden="true"- />- )}- </button>+ <span className={clsx('absolute inset-y-0 right-2 flex items-center', className)}>+ <button+ type="button"+ disabled={pending}+ aria-label={label}+ aria-pressed={pinned}+ title={label}+ onClick={handleClick}+ className={clsx(+ 'group/pin grid size-6 shrink-0 place-items-center rounded-md transition-[opacity,transform,background-color,color,box-shadow] duration-150 ease-out',+ 'hover:-translate-y-px hover:scale-105 focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-cyan/60 motion-reduce:transform-none',+ pending+ ? 'cursor-wait text-muted opacity-100 hover:translate-y-0 hover:scale-100'+ : pinned+ ? 'bg-cyan/[0.10] text-cyan opacity-100 hover:bg-cyan/[0.18] hover:ring-1 hover:ring-cyan/30'+ : 'text-muted opacity-0 hover:bg-foreground/[0.08] hover:text-foreground group-hover/sess:opacity-100 group-focus-within/sess:opacity-100 pointer-coarse:opacity-100',+ )}+ >+ {pending ? (+ <Loader2 className="size-3 animate-spin" aria-hidden="true" />+ ) : (+ <Pin+ className="size-3 transition-transform duration-150 group-hover/pin:-rotate-12 group-hover/pin:scale-110 motion-reduce:transform-none"+ aria-hidden="true"+ />+ )}+ </button>+ </span>);};diff --git a/ui/src/components/workbench/WorkbenchSidebar.tsx b/ui/src/components/workbench/WorkbenchSidebar.tsxindex 8b04940b6..bfd9ff923 100644--- a/ui/src/components/workbench/WorkbenchSidebar.tsx+++ b/ui/src/components/workbench/WorkbenchSidebar.tsx@@ -312,7 +312,7 @@ const SessionRow: React.FC<{setMenuOpen(true);}}className={clsx(- 'group/sess flex items-center gap-2 rounded-md py-1.5 pl-[26px] pr-2.5 text-left transition',+ 'group/sess relative flex items-center gap-2 rounded-md py-1.5 pl-[26px] pr-10 text-left transition',active? 'border-l-2 border-mint bg-mint-soft pl-[24px] font-semibold text-foreground': 'hover:bg-foreground/[0.04]',