From 085af148e64c569296892ff6c9f845ec4363ce4d Mon Sep 17 00:00:00 2001 From: murashit Date: Thu, 9 Jul 2026 08:06:57 +0900 Subject: [PATCH] Rename dialogue fork action classes --- src/features/chat/ui/thread-stream/text.tsx | 4 ++-- .../chat/ui/thread-stream/blocks-and-messages.test.tsx | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/features/chat/ui/thread-stream/text.tsx b/src/features/chat/ui/thread-stream/text.tsx index 0f5d1980..cfeeef2b 100644 --- a/src/features/chat/ui/thread-stream/text.tsx +++ b/src/features/chat/ui/thread-stream/text.tsx @@ -70,7 +70,7 @@ function TextHeader({ view, context }: { view: ThreadStreamTextView; context: Te { context.onForkMenuToggle?.(null); context.onFork?.(fork, true); @@ -83,7 +83,7 @@ function TextHeader({ view, context }: { view: ThreadStreamTextView; context: Te { if (forkMenuOpen) { context.onForkMenuToggle?.(null); diff --git a/tests/features/chat/ui/thread-stream/blocks-and-messages.test.tsx b/tests/features/chat/ui/thread-stream/blocks-and-messages.test.tsx index 9310c993..bf447329 100644 --- a/tests/features/chat/ui/thread-stream/blocks-and-messages.test.tsx +++ b/tests/features/chat/ui/thread-stream/blocks-and-messages.test.tsx @@ -375,7 +375,7 @@ describe("thread stream rendering and action menu", () => { const closedElement = renderThreadStreamBlockElement(closedBlock); expect(closedElement.querySelector(".codex-panel__copy-dialogue")).not.toBeNull(); - const initialFork = expectPresent(closedElement.querySelector(".codex-panel__fork-message")); + const initialFork = expectPresent(closedElement.querySelector(".codex-panel__fork-dialogue")); expect(initialFork.getAttribute("aria-label")).toBe("Fork from here"); expect(initialFork.getAttribute("data-icon")).toBe("lucide-split"); initialFork.click(); @@ -392,10 +392,10 @@ describe("thread stream rendering and action menu", () => { const openElement = renderThreadStreamBlockElement(openBlock); expect(openElement.querySelector(".codex-panel__copy-dialogue")).toBeNull(); - expect(openElement.querySelector(".codex-panel__fork-and-archive-message")?.getAttribute("aria-label")).toBe( + expect(openElement.querySelector(".codex-panel__fork-and-archive-dialogue")?.getAttribute("aria-label")).toBe( "Fork and archive", ); - const openFork = expectPresent(openElement.querySelector(".codex-panel__fork-message")); + const openFork = expectPresent(openElement.querySelector(".codex-panel__fork-dialogue")); expect(openFork.getAttribute("aria-label")).toBe("Fork"); expect(openFork.getAttribute("data-icon")).toBe("file-plus-corner"); openFork.click(); @@ -424,7 +424,7 @@ describe("thread stream rendering and action menu", () => { })[0]; const element = renderThreadStreamBlockElement(block); - expectPresent(element.querySelector(".codex-panel__fork-and-archive-message")).click(); + expectPresent(element.querySelector(".codex-panel__fork-and-archive-dialogue")).click(); expect(onFork).toHaveBeenCalledWith({ itemId: "a1", turnId: "turn-1" }, true); });