Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions apps/web/src/components/ChatView.browser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ async function expectComposerActionsContained(): Promise<void> {
}

async function waitForInteractionModeButton(
expectedLabel: "Chat" | "Plan",
expectedLabel: "Code" | "Plan",
): Promise<HTMLButtonElement> {
return waitForElement(
() =>
Expand Down Expand Up @@ -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(
Expand All @@ -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();
Expand All @@ -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 },
Expand All @@ -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 },
);
Expand Down
6 changes: 3 additions & 3 deletions apps/web/src/components/ChatView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<Extract<ComposerCommandItem, { type: "slash-command" }>>;
const query = composerTrigger.query.trim().toLowerCase();
Expand Down Expand Up @@ -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"
}
>
<BotIcon />
<span className="sr-only sm:not-sr-only">
{interactionMode === "plan" ? "Plan" : "Chat"}
{interactionMode === "plan" ? "Plan" : "Code"}
</span>
</Button>

Expand Down
Loading