+ Agent
+
+ The model has agent capabilities, might take a long time to
+ respond. For example it can provide a high-quality context to
+ solve a problem.
+
+
+ ),
+ },
+ ], []);
+
+ const handleChange = (value: string) => {
+ setToolUse(value as ToolUse);
+ };
+
return (
How fast do you want the answer:
-
- {
- setToolUse(x as ToolUse);
- }}
- >
- Quick
- Explore
- Agent
-
-
-
-
-
-
- Quick
-
- The model doesn't have access to any tools and answers
- immediately. You still can provide context using @-commands, try
- @help.
-
-
- Explore
-
-
- The model has access to exploration tools and collects the
- necessary context for you.
-
-
- Agent
-
-
- The model has agent capabilities, might take a long time to
- respond. For example it can provide a high-quality context to
- solve a problem.
-
-
-
-
+
);
});
diff --git a/refact-agent/gui/src/features/Chat/Chat.test.tsx b/refact-agent/gui/src/features/Chat/Chat.test.tsx
index 01aae5a1a..a0b577128 100644
--- a/refact-agent/gui/src/features/Chat/Chat.test.tsx
+++ b/refact-agent/gui/src/features/Chat/Chat.test.tsx
@@ -234,9 +234,13 @@ describe("Chat", () => {
expect(textarea).not.toBeNull();
- const quickButtons = app.getAllByText(/quick/i);
+ // Click on the response mode dropdown trigger
+ const dropdownTrigger = app.getByTitle("Response speed mode");
+ await user.click(dropdownTrigger);
- await user.click(quickButtons[0]);
+ // Select "Quick" option from the dropdown
+ const quickOption = app.getByRole("option", { name: /quick/i });
+ await user.click(quickOption);
await user.type(textarea, "hello");
@@ -417,9 +421,13 @@ describe("Chat", () => {
expect(textarea).not.toBeNull();
- const quickButtons = app.getAllByText(/quick/i);
+ // Click on the response mode dropdown trigger
+ const dropdownTrigger = app.getByTitle("Response speed mode");
+ await user.click(dropdownTrigger);
- await user.click(quickButtons[0]);
+ // Select "Quick" option from the dropdown
+ const quickOption = app.getByRole("option", { name: /quick/i });
+ await user.click(quickOption);
await user.type(textarea, "hello");