From d855080485aac8a316b9c78ddfea25465cde6c7b Mon Sep 17 00:00:00 2001 From: Adam Malczewski Date: Sun, 7 Jun 2026 16:46:20 +0900 Subject: feat(chat): drop the faded opacity on in-flight messages Remove the opacity-50 dimming applied to provisional (streaming) chunks across user/assistant/tool/batch rendering; in-flight content now renders at full opacity. Test updated to assert no dimming. --- src/features/chat/ui.test.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/features/chat/ui.test.ts') diff --git a/src/features/chat/ui.test.ts b/src/features/chat/ui.test.ts index 43822a7..c118115 100644 --- a/src/features/chat/ui.test.ts +++ b/src/features/chat/ui.test.ts @@ -133,7 +133,7 @@ describe("ChatView", () => { expect(screen.getByText("System context loaded")).toBeInTheDocument(); }); - it("marks provisional chunks", () => { + it("renders provisional (in-flight) chunks without any dimming", () => { const chunks: RenderedChunk[] = [ { seq: null, @@ -145,10 +145,9 @@ describe("ChatView", () => { render(ChatView, { props: { chunks } }); - // Assistant chunks are no longer in a bubble; the provisional marker now - // lives on the plain wrapper that directly contains the text. + // In-flight chunks render at full opacity (no faded "disabled" look). const wrapper = screen.getByText("Streaming...").closest("div"); - expect(wrapper).toHaveClass("opacity-50"); + expect(wrapper).not.toHaveClass("opacity-50"); }); it("renders empty transcript", () => { -- cgit v1.2.3