diff --git a/gui/src/pages/gui/Chat.test.tsx b/gui/src/pages/gui/Chat.test.tsx index 292266ab0b..8b8381043c 100644 --- a/gui/src/pages/gui/Chat.test.tsx +++ b/gui/src/pages/gui/Chat.test.tsx @@ -11,7 +11,7 @@ describe("Chat page test", () => { it("should be able to toggle modes", async () => { await renderWithProviders(); - expect(screen.getByText("Chat")).toBeInTheDocument(); + expect(screen.getByText("Agent")).toBeInTheDocument(); // Simulate cmd+. keyboard shortcut to toggle modes act(() => { @@ -23,8 +23,8 @@ describe("Chat page test", () => { ); }); - // Check that it switched to Agent mode - expect(await screen.findByText("Agent")).toBeInTheDocument(); + // Check that it switched to Edit mode + expect(await screen.findByText("Edit")).toBeInTheDocument(); act(() => { document.dispatchEvent( @@ -35,8 +35,8 @@ describe("Chat page test", () => { ); }); - // Check that it switched to Edit mode - expect(await screen.findByText("Edit")).toBeInTheDocument(); + // Check that it switched to Chat mode + expect(await screen.findByText("Chat")).toBeInTheDocument(); }); it.skip("should send a message and receive a response", async () => { diff --git a/gui/src/redux/slices/sessionSlice.ts b/gui/src/redux/slices/sessionSlice.ts index e81545d8b9..80ccf205f4 100644 --- a/gui/src/redux/slices/sessionSlice.ts +++ b/gui/src/redux/slices/sessionSlice.ts @@ -61,7 +61,7 @@ const initialState: SessionState = { id: uuidv4(), streamAborter: new AbortController(), symbols: {}, - mode: "chat", + mode: "agent", codeBlockApplyStates: { states: [], curIndex: 0,