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(pet): stop the reply bubble tail poking above the bubble border (#2800)
Max192abc574944
diff --git a/ui/e2e/pet-mini/layout.spec.ts b/ui/e2e/pet-mini/layout.spec.tsindex 043318cc0..f081e6159 100644--- a/ui/e2e/pet-mini/layout.spec.ts+++ b/ui/e2e/pet-mini/layout.spec.ts@@ -497,3 +497,20 @@ for (const pose of ['idle', 'ready', 'sleeping']) {expect(new Set(await playStates())).toEqual(new Set(['running']));});}++test('the reply bubble tail starts on the bubble border instead of poking above it', async ({ page }) => {+ await page.goto('/e2e/pet-mini/fixture.html?scenario=personal');+ const bubble = page.locator('.pet-mini-reply-bubble');+ await expect(bubble).toBeVisible();+ const tail = await bubble.evaluate((node) => {+ const style = getComputedStyle(node, '::after');+ return { bottom: parseFloat(style.bottom), height: parseFloat(style.height), clip: style.clipPath, transform: style.transform };+ });+ // Rotated 45deg, the square's anti-diagonal is the horizontal line through+ // its centre, where both strokes end. That centre must sit on the top edge of+ // the bubble's bottom border (the padding edge `bottom` is measured from),+ // and only the half below it may paint.+ expect(tail.transform).not.toBe('none');+ expect(tail.bottom).toBe(-tail.height / 2);+ expect(tail.clip).toBe('polygon(100% 0px, 100% 100%, 0px 100%)');+});diff --git a/ui/src/pet/pet-mini.css b/ui/src/pet/pet-mini.cssindex 5b967888a..0f2271880 100644--- a/ui/src/pet/pet-mini.css+++ b/ui/src/pet/pet-mini.css@@ -761,9 +761,15 @@ to {border:1px solid color-mix(in srgb,var(--pet-ink) 10%,transparent);border-radius:22px;background:var(--pet-card)}+/* The tail is a square rotated 45deg with its two lower edges stroked. Its+ anti-diagonal becomes the horizontal line through its centre, so the clip+ keeps only the half below it, and that centre sits exactly on the top edge+ of the bubble's bottom border (bottom = -half the side). The strokes then+ start on the border line instead of overshooting it, and the fill covers+ the border across the opening. */.pet-mini-reply-bubble:after {position:absolute;- bottom:-6px;+ bottom:-7px;left:calc(50% - 7px);width:14px;height:14px;@@ -772,6 +778,7 @@ to {border-radius:0 0 3px 0;background:inherit;content:"";+ clip-path:polygon(100% 0,100% 100%,0 100%);transform:rotate(45deg);pointer-events:none}.pet-mini-reply-toggle {