From 48814a263cb8894d9e5312423876d077fdfe597c Mon Sep 17 00:00:00 2001 From: Nicolas Varrot Date: Fri, 13 Feb 2026 20:51:56 +0000 Subject: [PATCH] fix: improve avatar fallback in header, strengthen session switch reset (#63) --- FEEDBACK.md | 12 ++++++++---- src/components/Header.tsx | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/FEEDBACK.md b/FEEDBACK.md index afc6534..9580c7a 100644 --- a/FEEDBACK.md +++ b/FEEDBACK.md @@ -675,23 +675,27 @@ ## Item #63 - **Date:** 2026-02-13 - **Priority:** high -- **Status:** pending +- **Status:** done +- **Completed:** 2026-02-13 — commit `84512b1` - **Description:** "New message" indicator shows when scrolling up even when there are no new messages. The indicator should only appear when an actual new message arrives while scrolled up. ## Item #64 - **Date:** 2026-02-13 - **Priority:** high -- **Status:** pending +- **Status:** done +- **Completed:** 2026-02-13 — commit `84512b1` - **Description:** Cursor desync in textarea — the cursor position gets ahead of where characters actually appear (whitespace gap between cursor and text). Likely related to HighlightedTextarea overlay sync issue. ## Item #65 - **Date:** 2026-02-13 - **Priority:** high -- **Status:** pending +- **Status:** done +- **Completed:** 2026-02-13 — commit `84512b1` - **Description:** "New message" indicator and expand/collapse toggle overlap with the textarea when it grows (multi-line input). These elements should stay outside/above the textarea area and not overlap. ## Item #66 - **Date:** 2026-02-13 - **Priority:** medium -- **Status:** pending +- **Status:** done +- **Completed:** 2026-02-13 — commit `84512b1` - **Description:** Avatar image shows as broken for some deployments. Bardak's instance (deployed by Pelouse) shows a broken image. Works on Nicolas's instance. Likely the avatar URL configured by Pelouse is invalid or blocked. PinchChat should handle broken avatar images gracefully (fallback to initials or default icon). diff --git a/src/components/Header.tsx b/src/components/Header.tsx index 24cbb6e..2179ac4 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -38,7 +38,7 @@ export function Header({ status, sessionKey, onToggleSidebar, activeSessionData,
- PinchChat + PinchChat { const img = e.target as HTMLImageElement; if (img.src !== window.location.origin + '/logo.png') { img.src = '/logo.png'; } else { img.style.display = 'none'; } }} />
{t('header.title')}