diff --git a/apps/web/src/components/ChatView.browser.tsx b/apps/web/src/components/ChatView.browser.tsx index a727b89ea3..32c2be218a 100644 --- a/apps/web/src/components/ChatView.browser.tsx +++ b/apps/web/src/components/ChatView.browser.tsx @@ -866,7 +866,7 @@ async function expectComposerActionsContained(): Promise { } async function waitForInteractionModeButton( - expectedLabel: "Chat" | "Plan", + expectedLabel: "Code" | "Plan", ): Promise { return waitForElement( () => @@ -2096,7 +2096,7 @@ describe("ChatView timeline estimator parity (full app)", () => { }); try { - const initialModeButton = await waitForInteractionModeButton("Chat"); + const initialModeButton = await waitForInteractionModeButton("Code"); expect(initialModeButton.title).toContain("enter plan mode"); window.dispatchEvent( @@ -2109,7 +2109,7 @@ describe("ChatView timeline estimator parity (full app)", () => { ); await waitForLayout(); - expect((await waitForInteractionModeButton("Chat")).title).toContain("enter plan mode"); + expect((await waitForInteractionModeButton("Code")).title).toContain("enter plan mode"); const composerEditor = await waitForComposerEditor(); composerEditor.focus(); @@ -2125,7 +2125,7 @@ describe("ChatView timeline estimator parity (full app)", () => { await vi.waitFor( async () => { expect((await waitForInteractionModeButton("Plan")).title).toContain( - "return to normal chat mode", + "return to normal code mode", ); }, { timeout: 8_000, interval: 16 }, @@ -2142,7 +2142,7 @@ describe("ChatView timeline estimator parity (full app)", () => { await vi.waitFor( async () => { - expect((await waitForInteractionModeButton("Chat")).title).toContain("enter plan mode"); + expect((await waitForInteractionModeButton("Code")).title).toContain("enter plan mode"); }, { timeout: 8_000, interval: 16 }, ); diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsx index aeab2d083a..7f320f9b3d 100644 --- a/apps/web/src/components/ChatView.tsx +++ b/apps/web/src/components/ChatView.tsx @@ -1476,7 +1476,7 @@ export default function ChatView({ threadId }: ChatViewProps) { type: "slash-command", command: "default", label: "/default", - description: "Switch this thread back to normal chat mode", + description: "Switch this thread back to normal code mode", }, ] satisfies ReadonlyArray>; const query = composerTrigger.query.trim().toLowerCase(); @@ -4284,13 +4284,13 @@ export default function ChatView({ threadId }: ChatViewProps) { onClick={toggleInteractionMode} title={ interactionMode === "plan" - ? "Plan mode — click to return to normal chat mode" + ? "Plan mode — click to return to normal code mode" : "Default mode — click to enter plan mode" } > - {interactionMode === "plan" ? "Plan" : "Chat"} + {interactionMode === "plan" ? "Plan" : "Code"}