From 91f84d4e6e9c360e6c1c291fae134957c1e16e7e Mon Sep 17 00:00:00 2001
From: Marco Beretta <81851188+berry-13@users.noreply.github.com>
Date: Fri, 28 Aug 2026 21:10:59 +0200
Subject: [PATCH] fix(client): address sixth round of Codex review findings
Recognize the batched-edit separator pair for every edit in a diff preview.
formatEditPreview writes a `--- old_text N` / `+++ new_text N` pair before each
edit's `@@`, but the parser gated on `inHunk`, which is never reset, so only
the first pair was skipped and every later one was counted as a deletion plus
an addition and rendered as a marker row. Matched by name instead, which leaves
content lines that merely begin with `-` or `+` alone.
Compose the shared Button for the popover's type-below hint, suppressing only
the fill the way Summary's quiet text buttons already do, so the focus ring and
disabled handling come from the shared recipe.
Render an answer box that carries only snippetHighlighted. It is independently
optional from snippet, and the details card opens for any answer box, so such a
result previously showed a heading with an empty body.
---
.../Chat/Input/AskUserQuestionPopover.tsx | 12 ++++++---
.../Chat/Messages/Content/Parts/DiffView.tsx | 13 ++++++++++
.../Content/Parts/__tests__/DiffView.test.ts | 25 +++++++++++++++++++
.../Chat/Messages/Content/WebSearch.tsx | 13 +++++++---
4 files changed, 56 insertions(+), 7 deletions(-)
diff --git a/client/src/components/Chat/Input/AskUserQuestionPopover.tsx b/client/src/components/Chat/Input/AskUserQuestionPopover.tsx
index de41557741..1c967d48d0 100644
--- a/client/src/components/Chat/Input/AskUserQuestionPopover.tsx
+++ b/client/src/components/Chat/Input/AskUserQuestionPopover.tsx
@@ -205,15 +205,19 @@ function AskUserQuestionPopoverPanel({
)}