From 164430e37f5806d09d9482db61eef011007f4281 Mon Sep 17 00:00:00 2001 From: Marco Beretta <81851188+berry-13@users.noreply.github.com> Date: Fri, 28 Aug 2026 19:59:55 +0200 Subject: [PATCH] fix(client): address second round of Codex review findings Reuse the shared Button primitive for the three question move controls (the chat card's chevron and both popover chevrons), which each repeated the same hover, focus-ring, color and rounding recipe locally. Only the icon geometry stays local. Drop provider image results that carry neither thumbnailUrl nor imageUrl. Both are optional in the ImageResult contract, and an unusable entry still made images.length nonzero, so the card rendered an anchor and img with undefined destinations instead of omitting the result. Gate the memory deletion confirmation on a completed phase. The panel opens as soon as the key streams in and the phase can still settle as cancelled, so "Memory deleted" was claiming a removal that never happened while the header correctly read Cancelled. Key pending answer drafts by action id instead of a single shared slot. With Save drafts disabled, editing a collapsed question in one conversation and then editing another paused conversation's question overwrote the only slot, and the action-scoped reader then showed the first card an empty box with its unsent answer unrecoverable. Entries are dropped once answered. --- .../Chat/Input/AskUserQuestionPopover.tsx | 18 +++---- .../Chat/Messages/Content/AskUserQuestion.tsx | 9 ++-- .../Messages/Content/Parts/MemoryCall.tsx | 7 ++- .../Chat/Messages/Content/verticals.tsx | 10 +++- .../src/hooks/Input/useAskAnswerMode.spec.ts | 47 +++++++++++++------ client/src/hooks/Input/useAskAnswerMode.ts | 41 ++++++++++------ 6 files changed, 88 insertions(+), 44 deletions(-) diff --git a/client/src/components/Chat/Input/AskUserQuestionPopover.tsx b/client/src/components/Chat/Input/AskUserQuestionPopover.tsx index 4565ebd753..bf9ceb6b8c 100644 --- a/client/src/components/Chat/Input/AskUserQuestionPopover.tsx +++ b/client/src/components/Chat/Input/AskUserQuestionPopover.tsx @@ -63,14 +63,15 @@ function AskUserQuestionsPopoverPanel({ ask }: { ask: ReturnType