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
102 changes: 58 additions & 44 deletions refact-agent/gui/src/components/ChatForm/ToolUseSwitch.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import { Flex, SegmentedControl, Text, HoverCard } from "@radix-ui/themes";
import React, { useMemo } from "react";
import { Flex, Text } from "@radix-ui/themes";
import { ToolUse } from "../../features/Chat/Thread";
import { QuestionMarkCircledIcon } from "@radix-ui/react-icons";
import { Select, type ItemProps } from "../Select";

type ToolUseSwitchProps = {
toolUse: ToolUse;
Expand All @@ -12,50 +12,64 @@ export const ToolUseSwitch = React.forwardRef<
HTMLDivElement,
ToolUseSwitchProps
>(({ toolUse, setToolUse }, ref) => {
const options: ItemProps[] = useMemo(() => [
{
value: "quick",
children: "Quick",
tooltip: (
<div>
<Text weight="bold" as="div">Quick</Text>
<Text as="p" size="2">
The model doesn&apos;t have access to any tools and answers
immediately. You still can provide context using @-commands, try
@help.
</Text>
</div>
),
},
{
value: "explore",
children: "Explore",
tooltip: (
<div>
<Text weight="bold" as="div">Explore</Text>
<Text as="p" size="2">
The model has access to exploration tools and collects the
necessary context for you.
</Text>
</div>
),
},
{
value: "agent",
children: "Agent",
tooltip: (
<div>
<Text weight="bold" as="div">Agent</Text>
<Text as="p" size="2">
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.
</Text>
</div>
),
},
], []);

const handleChange = (value: string) => {
setToolUse(value as ToolUse);
};

return (
<Flex direction="column" gap="3" mb="2" align="start" ref={ref}>
<Text size="2">How fast do you want the answer:</Text>
<Flex direction="row" gap="1" align="center">
<SegmentedControl.Root
defaultValue="quick"
value={toolUse}
onValueChange={(x) => {
setToolUse(x as ToolUse);
}}
>
<SegmentedControl.Item value="quick">Quick</SegmentedControl.Item>
<SegmentedControl.Item value="explore">Explore</SegmentedControl.Item>
<SegmentedControl.Item value="agent">Agent</SegmentedControl.Item>
</SegmentedControl.Root>
<HoverCard.Root>
<HoverCard.Trigger>
<QuestionMarkCircledIcon style={{ marginLeft: 4 }} />
</HoverCard.Trigger>
<HoverCard.Content size="2" maxWidth="280px">
<Text weight="bold">Quick</Text>
<Text as="p" size="2">
The model doesn&apos;t have access to any tools and answers
immediately. You still can provide context using @-commands, try
@help.
</Text>
<Text as="div" mt="2" weight="bold">
Explore
</Text>
<Text as="p" size="2">
The model has access to exploration tools and collects the
necessary context for you.
</Text>
<Text as="div" mt="2" weight="bold">
Agent
</Text>
<Text as="p" size="2">
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.
</Text>
</HoverCard.Content>
</HoverCard.Root>
</Flex>
<Select
title="Response speed mode"
options={options}
value={toolUse}
onChange={handleChange}
contentPosition="popper"
/>
</Flex>
);
});
Expand Down
16 changes: 12 additions & 4 deletions refact-agent/gui/src/features/Chat/Chat.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,13 @@

expect(textarea).not.toBeNull();

const quickButtons = app.getAllByText(/quick/i);
// Click on the response mode dropdown trigger
const dropdownTrigger = app.getByTitle("Response speed mode");

Check failure on line 238 in refact-agent/gui/src/features/Chat/Chat.test.tsx

View workflow job for this annotation

GitHub Actions / build (lts/*)

src/features/Chat/Chat.test.tsx > Chat > should send request to the lsp

TestingLibraryElementError: Unable to find an element with the title: Response speed mode. Ignored nodes: comments, script, style <body> <div> <div class="radix-themes" data-accent-color="indigo" data-gray-color="slate" data-has-background="true" data-is-root-theme="true" data-panel-background="translucent" data-radius="medium" data-scaling="100%" > <div class="rt-Flex rt-r-fd-column rt-r-jc-space-between rt-r-px-1 rt-r-w rt-r-oy-auto rt-r-fg-1" role="presentation" style="--width: 100%;" > <div class="rt-ScrollAreaRoot _vertical_fab8e9 _full_height_fab8e9" dir="ltr" style="position: relative; --radix-scroll-area-corner-width: 0px; --radix-scroll-area-corner-height: 0px; flex-grow: 1; height: auto;" > <div class="rt-ScrollAreaViewport" data-radix-scroll-area-viewport="" style="overflow-x: scroll; overflow-y: scroll;" > <div style="min-width: 100%; display: table;" > <div class="rt-Box" > <div class="rt-Flex rt-r-fd-column rt-r-gap-1 rt-r-p-2 _content_07f787" data-element="ChatContent" > <div class="rt-Container rt-r-size-4" > <div class="rt-ContainerInner" > <div class="rt-Flex rt-r-fd-column rt-r-gap-4" > <span class="rt-Text" > Welcome to Refact chat. </span> <span class="rt-Text" > πŸ’‘ <b> Tip of the day </b> : </span> </div> </div> </div> <div class="rt-Container rt-r-size-4" > <div class="rt-ContainerInner" /> </div> <div class="rt-Container rt-r-size-4 rt-r-pt-4 rt-r-pb-8" > <div class="rt-ContainerInner" /> </div> </div> <div class="rt-Box" style="position: absolute; bottom: 0px; max-width: 100%;" > <div class="rt-ScrollAreaRoot" dir="ltr" style="position: relative; --radix-scroll-area-corner-width: 0px; --radix-scroll-area-corner-height: 0px;" > <div class="rt-ScrollAreaViewport" data-radix-scroll-area-viewport="" style="overflow-x: scroll; overflow-y: scroll;" > <div style="min-width: 100%; display: table;" > <div class="rt-Flex rt-r-ai-start rt-r-gap-3 rt-r-pb-2" /> </div> </div> <div class="rt-ScrollAreaViewportFocusRing" /> </div> </div> <div class="rt-Box rt-r-h -rt-r-mt-2" style="--height: 0px;" /> </div> <button class="rt-reset rt-BaseButton rt-r-size-2 rt-variant-solid rt-IconButton" data-accent-color="" style="po

Check failure on line 238 in refact-agent/gui/src/features/Chat/Chat.test.tsx

View workflow job for this annotation

GitHub Actions / build (lts/*)

src/features/Chat/Chat.test.tsx > Chat > should send request to the lsp

TestingLibraryElementError: Unable to find an element with the title: Response speed mode. Ignored nodes: comments, script, style <body> <div> <div class="radix-themes" data-accent-color="indigo" data-gray-color="slate" data-has-background="true" data-is-root-theme="true" data-panel-background="translucent" data-radius="medium" data-scaling="100%" > <div class="rt-Flex rt-r-fd-column rt-r-jc-space-between rt-r-px-1 rt-r-w rt-r-oy-auto rt-r-fg-1" role="presentation" style="--width: 100%;" > <div class="rt-ScrollAreaRoot _vertical_fab8e9 _full_height_fab8e9" dir="ltr" style="position: relative; --radix-scroll-area-corner-width: 0px; --radix-scroll-area-corner-height: 0px; flex-grow: 1; height: auto;" > <div class="rt-ScrollAreaViewport" data-radix-scroll-area-viewport="" style="overflow-x: scroll; overflow-y: scroll;" > <div style="min-width: 100%; display: table;" > <div class="rt-Box" > <div class="rt-Flex rt-r-fd-column rt-r-gap-1 rt-r-p-2 _content_07f787" data-element="ChatContent" > <div class="rt-Container rt-r-size-4" > <div class="rt-ContainerInner" > <div class="rt-Flex rt-r-fd-column rt-r-gap-4" > <span class="rt-Text" > Welcome to Refact chat. </span> <span class="rt-Text" > πŸ’‘ <b> Tip of the day </b> : </span> </div> </div> </div> <div class="rt-Container rt-r-size-4" > <div class="rt-ContainerInner" /> </div> <div class="rt-Container rt-r-size-4 rt-r-pt-4 rt-r-pb-8" > <div class="rt-ContainerInner" /> </div> </div> <div class="rt-Box" style="position: absolute; bottom: 0px; max-width: 100%;" > <div class="rt-ScrollAreaRoot" dir="ltr" style="position: relative; --radix-scroll-area-corner-width: 0px; --radix-scroll-area-corner-height: 0px;" > <div class="rt-ScrollAreaViewport" data-radix-scroll-area-viewport="" style="overflow-x: scroll; overflow-y: scroll;" > <div style="min-width: 100%; display: table;" > <div class="rt-Flex rt-r-ai-start rt-r-gap-3 rt-r-pb-2" /> </div> </div> <div class="rt-ScrollAreaViewportFocusRing" /> </div> </div> <div class="rt-Box rt-r-h -rt-r-mt-2" style="--height: 0px;" /> </div> <button class="rt-reset rt-BaseButton rt-r-size-2 rt-variant-solid rt-IconButton" data-accent-color="" style="po

Check failure on line 238 in refact-agent/gui/src/features/Chat/Chat.test.tsx

View workflow job for this annotation

GitHub Actions / build (lts/*)

src/features/Chat/Chat.test.tsx > Chat > should send request to the lsp

TestingLibraryElementError: Unable to find an element with the title: Response speed mode. Ignored nodes: comments, script, style <body> <div> <div class="radix-themes" data-accent-color="indigo" data-gray-color="slate" data-has-background="true" data-is-root-theme="true" data-panel-background="translucent" data-radius="medium" data-scaling="100%" > <div class="rt-Flex rt-r-fd-column rt-r-jc-space-between rt-r-px-1 rt-r-w rt-r-oy-auto rt-r-fg-1" role="presentation" style="--width: 100%;" > <div class="rt-ScrollAreaRoot _vertical_fab8e9 _full_height_fab8e9" dir="ltr" style="position: relative; --radix-scroll-area-corner-width: 0px; --radix-scroll-area-corner-height: 0px; flex-grow: 1; height: auto;" > <div class="rt-ScrollAreaViewport" data-radix-scroll-area-viewport="" style="overflow-x: scroll; overflow-y: scroll;" > <div style="min-width: 100%; display: table;" > <div class="rt-Box" > <div class="rt-Flex rt-r-fd-column rt-r-gap-1 rt-r-p-2 _content_07f787" data-element="ChatContent" > <div class="rt-Container rt-r-size-4" > <div class="rt-ContainerInner" > <div class="rt-Flex rt-r-fd-column rt-r-gap-4" > <span class="rt-Text" > Welcome to Refact chat. </span> <span class="rt-Text" > πŸ’‘ <b> Tip of the day </b> : </span> </div> </div> </div> <div class="rt-Container rt-r-size-4" > <div class="rt-ContainerInner" /> </div> <div class="rt-Container rt-r-size-4 rt-r-pt-4 rt-r-pb-8" > <div class="rt-ContainerInner" /> </div> </div> <div class="rt-Box" style="position: absolute; bottom: 0px; max-width: 100%;" > <div class="rt-ScrollAreaRoot" dir="ltr" style="position: relative; --radix-scroll-area-corner-width: 0px; --radix-scroll-area-corner-height: 0px;" > <div class="rt-ScrollAreaViewport" data-radix-scroll-area-viewport="" style="overflow-x: scroll; overflow-y: scroll;" > <div style="min-width: 100%; display: table;" > <div class="rt-Flex rt-r-ai-start rt-r-gap-3 rt-r-pb-2" /> </div> </div> <div class="rt-ScrollAreaViewportFocusRing" /> </div> </div> <div class="rt-Box rt-r-h -rt-r-mt-2" style="--height: 0px;" /> </div> <button class="rt-reset rt-BaseButton rt-r-size-2 rt-variant-solid rt-IconButton" data-accent-color="" style="po

Check failure on line 238 in refact-agent/gui/src/features/Chat/Chat.test.tsx

View workflow job for this annotation

GitHub Actions / build (latest)

src/features/Chat/Chat.test.tsx > Chat > should send request to the lsp

TestingLibraryElementError: Unable to find an element with the title: Response speed mode. Ignored nodes: comments, script, style <body> <div> <div class="radix-themes" data-accent-color="indigo" data-gray-color="slate" data-has-background="true" data-is-root-theme="true" data-panel-background="translucent" data-radius="medium" data-scaling="100%" > <div class="rt-Flex rt-r-fd-column rt-r-jc-space-between rt-r-px-1 rt-r-w rt-r-oy-auto rt-r-fg-1" role="presentation" style="--width: 100%;" > <div class="rt-ScrollAreaRoot _vertical_fab8e9 _full_height_fab8e9" dir="ltr" style="position: relative; --radix-scroll-area-corner-width: 0px; --radix-scroll-area-corner-height: 0px; flex-grow: 1; height: auto;" > <div class="rt-ScrollAreaViewport" data-radix-scroll-area-viewport="" style="overflow-x: scroll; overflow-y: scroll;" > <div style="min-width: 100%; display: table;" > <div class="rt-Box" > <div class="rt-Flex rt-r-fd-column rt-r-gap-1 rt-r-p-2 _content_07f787" data-element="ChatContent" > <div class="rt-Container rt-r-size-4" > <div class="rt-ContainerInner" > <div class="rt-Flex rt-r-fd-column rt-r-gap-4" > <span class="rt-Text" > Welcome to Refact chat. </span> <span class="rt-Text" > πŸ’‘ <b> Tip of the day </b> : </span> </div> </div> </div> <div class="rt-Container rt-r-size-4" > <div class="rt-ContainerInner" /> </div> <div class="rt-Container rt-r-size-4 rt-r-pt-4 rt-r-pb-8" > <div class="rt-ContainerInner" /> </div> </div> <div class="rt-Box" style="position: absolute; bottom: 0px; max-width: 100%;" > <div class="rt-ScrollAreaRoot" dir="ltr" style="position: relative; --radix-scroll-area-corner-width: 0px; --radix-scroll-area-corner-height: 0px;" > <div class="rt-ScrollAreaViewport" data-radix-scroll-area-viewport="" style="overflow-x: scroll; overflow-y: scroll;" > <div style="min-width: 100%; display: table;" > <div class="rt-Flex rt-r-ai-start rt-r-gap-3 rt-r-pb-2" /> </div> </div> <div class="rt-ScrollAreaViewportFocusRing" /> </div> </div> <div class="rt-Box rt-r-h -rt-r-mt-2" style="--height: 0px;" /> </div> <button class="rt-reset rt-BaseButton rt-r-size-2 rt-variant-solid rt-IconButton" data-accent-color="" style="po

Check failure on line 238 in refact-agent/gui/src/features/Chat/Chat.test.tsx

View workflow job for this annotation

GitHub Actions / build (latest)

src/features/Chat/Chat.test.tsx > Chat > should send request to the lsp

TestingLibraryElementError: Unable to find an element with the title: Response speed mode. Ignored nodes: comments, script, style <body> <div> <div class="radix-themes" data-accent-color="indigo" data-gray-color="slate" data-has-background="true" data-is-root-theme="true" data-panel-background="translucent" data-radius="medium" data-scaling="100%" > <div class="rt-Flex rt-r-fd-column rt-r-jc-space-between rt-r-px-1 rt-r-w rt-r-oy-auto rt-r-fg-1" role="presentation" style="--width: 100%;" > <div class="rt-ScrollAreaRoot _vertical_fab8e9 _full_height_fab8e9" dir="ltr" style="position: relative; --radix-scroll-area-corner-width: 0px; --radix-scroll-area-corner-height: 0px; flex-grow: 1; height: auto;" > <div class="rt-ScrollAreaViewport" data-radix-scroll-area-viewport="" style="overflow-x: scroll; overflow-y: scroll;" > <div style="min-width: 100%; display: table;" > <div class="rt-Box" > <div class="rt-Flex rt-r-fd-column rt-r-gap-1 rt-r-p-2 _content_07f787" data-element="ChatContent" > <div class="rt-Container rt-r-size-4" > <div class="rt-ContainerInner" > <div class="rt-Flex rt-r-fd-column rt-r-gap-4" > <span class="rt-Text" > Welcome to Refact chat. </span> <span class="rt-Text" > πŸ’‘ <b> Tip of the day </b> : </span> </div> </div> </div> <div class="rt-Container rt-r-size-4" > <div class="rt-ContainerInner" /> </div> <div class="rt-Container rt-r-size-4 rt-r-pt-4 rt-r-pb-8" > <div class="rt-ContainerInner" /> </div> </div> <div class="rt-Box" style="position: absolute; bottom: 0px; max-width: 100%;" > <div class="rt-ScrollAreaRoot" dir="ltr" style="position: relative; --radix-scroll-area-corner-width: 0px; --radix-scroll-area-corner-height: 0px;" > <div class="rt-ScrollAreaViewport" data-radix-scroll-area-viewport="" style="overflow-x: scroll; overflow-y: scroll;" > <div style="min-width: 100%; display: table;" > <div class="rt-Flex rt-r-ai-start rt-r-gap-3 rt-r-pb-2" /> </div> </div> <div class="rt-ScrollAreaViewportFocusRing" /> </div> </div> <div class="rt-Box rt-r-h -rt-r-mt-2" style="--height: 0px;" /> </div> <button class="rt-reset rt-BaseButton rt-r-size-2 rt-variant-solid rt-IconButton" data-accent-color="" style="po

Check failure on line 238 in refact-agent/gui/src/features/Chat/Chat.test.tsx

View workflow job for this annotation

GitHub Actions / build (latest)

src/features/Chat/Chat.test.tsx > Chat > should send request to the lsp

TestingLibraryElementError: Unable to find an element with the title: Response speed mode. Ignored nodes: comments, script, style <body> <div> <div class="radix-themes" data-accent-color="indigo" data-gray-color="slate" data-has-background="true" data-is-root-theme="true" data-panel-background="translucent" data-radius="medium" data-scaling="100%" > <div class="rt-Flex rt-r-fd-column rt-r-jc-space-between rt-r-px-1 rt-r-w rt-r-oy-auto rt-r-fg-1" role="presentation" style="--width: 100%;" > <div class="rt-ScrollAreaRoot _vertical_fab8e9 _full_height_fab8e9" dir="ltr" style="position: relative; --radix-scroll-area-corner-width: 0px; --radix-scroll-area-corner-height: 0px; flex-grow: 1; height: auto;" > <div class="rt-ScrollAreaViewport" data-radix-scroll-area-viewport="" style="overflow-x: scroll; overflow-y: scroll;" > <div style="min-width: 100%; display: table;" > <div class="rt-Box" > <div class="rt-Flex rt-r-fd-column rt-r-gap-1 rt-r-p-2 _content_07f787" data-element="ChatContent" > <div class="rt-Container rt-r-size-4" > <div class="rt-ContainerInner" > <div class="rt-Flex rt-r-fd-column rt-r-gap-4" > <span class="rt-Text" > Welcome to Refact chat. </span> <span class="rt-Text" > πŸ’‘ <b> Tip of the day </b> : </span> </div> </div> </div> <div class="rt-Container rt-r-size-4" > <div class="rt-ContainerInner" /> </div> <div class="rt-Container rt-r-size-4 rt-r-pt-4 rt-r-pb-8" > <div class="rt-ContainerInner" /> </div> </div> <div class="rt-Box" style="position: absolute; bottom: 0px; max-width: 100%;" > <div class="rt-ScrollAreaRoot" dir="ltr" style="position: relative; --radix-scroll-area-corner-width: 0px; --radix-scroll-area-corner-height: 0px;" > <div class="rt-ScrollAreaViewport" data-radix-scroll-area-viewport="" style="overflow-x: scroll; overflow-y: scroll;" > <div style="min-width: 100%; display: table;" > <div class="rt-Flex rt-r-ai-start rt-r-gap-3 rt-r-pb-2" /> </div> </div> <div class="rt-ScrollAreaViewportFocusRing" /> </div> </div> <div class="rt-Box rt-r-h -rt-r-mt-2" style="--height: 0px;" /> </div> <button class="rt-reset rt-BaseButton rt-r-size-2 rt-variant-solid rt-IconButton" data-accent-color="" style="po
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");

Expand Down Expand Up @@ -417,9 +421,13 @@

expect(textarea).not.toBeNull();

const quickButtons = app.getAllByText(/quick/i);
// Click on the response mode dropdown trigger
const dropdownTrigger = app.getByTitle("Response speed mode");

Check failure on line 425 in refact-agent/gui/src/features/Chat/Chat.test.tsx

View workflow job for this annotation

GitHub Actions / build (lts/*)

src/features/Chat/Chat.test.tsx > Chat > chat error streaming

TestingLibraryElementError: Unable to find an element with the title: Response speed mode. Ignored nodes: comments, script, style <body> <div> <div class="radix-themes" data-accent-color="indigo" data-gray-color="slate" data-has-background="true" data-is-root-theme="true" data-panel-background="translucent" data-radius="medium" data-scaling="100%" > <div class="rt-Flex rt-r-fd-column rt-r-jc-space-between rt-r-px-1 rt-r-w rt-r-oy-auto rt-r-fg-1" role="presentation" style="--width: 100%;" > <div class="rt-ScrollAreaRoot _vertical_fab8e9 _full_height_fab8e9" dir="ltr" style="position: relative; --radix-scroll-area-corner-width: 0px; --radix-scroll-area-corner-height: 0px; flex-grow: 1; height: auto;" > <div class="rt-ScrollAreaViewport" data-radix-scroll-area-viewport="" style="overflow-x: scroll; overflow-y: scroll;" > <div style="min-width: 100%; display: table;" > <div class="rt-Box" > <div class="rt-Flex rt-r-fd-column rt-r-gap-1 rt-r-p-2 _content_07f787" data-element="ChatContent" > <div class="rt-Container rt-r-size-4" > <div class="rt-ContainerInner" > <div class="rt-Flex rt-r-fd-column rt-r-gap-4" > <span class="rt-Text" > Welcome to Refact chat. </span> <span class="rt-Text" > πŸ’‘ <b> Tip of the day </b> : </span> </div> </div> </div> <div class="rt-Container rt-r-size-4" > <div class="rt-ContainerInner" /> </div> <div class="rt-Container rt-r-size-4 rt-r-pt-4 rt-r-pb-8" > <div class="rt-ContainerInner" /> </div> </div> <div class="rt-Box" style="position: absolute; bottom: 0px; max-width: 100%;" > <div class="rt-ScrollAreaRoot" dir="ltr" style="position: relative; --radix-scroll-area-corner-width: 0px; --radix-scroll-area-corner-height: 0px;" > <div class="rt-ScrollAreaViewport" data-radix-scroll-area-viewport="" style="overflow-x: scroll; overflow-y: scroll;" > <div style="min-width: 100%; display: table;" > <div class="rt-Flex rt-r-ai-start rt-r-gap-3 rt-r-pb-2" /> </div> </div> <div class="rt-ScrollAreaViewportFocusRing" /> </div> </div> <div class="rt-Box rt-r-h -rt-r-mt-2" style="--height: 0px;" /> </div> <button class="rt-reset rt-BaseButton rt-r-size-2 rt-variant-solid rt-IconButton" data-accent-color="" style="po

Check failure on line 425 in refact-agent/gui/src/features/Chat/Chat.test.tsx

View workflow job for this annotation

GitHub Actions / build (lts/*)

src/features/Chat/Chat.test.tsx > Chat > chat error streaming

TestingLibraryElementError: Unable to find an element with the title: Response speed mode. Ignored nodes: comments, script, style <body> <div> <div class="radix-themes" data-accent-color="indigo" data-gray-color="slate" data-has-background="true" data-is-root-theme="true" data-panel-background="translucent" data-radius="medium" data-scaling="100%" > <div class="rt-Flex rt-r-fd-column rt-r-jc-space-between rt-r-px-1 rt-r-w rt-r-oy-auto rt-r-fg-1" role="presentation" style="--width: 100%;" > <div class="rt-ScrollAreaRoot _vertical_fab8e9 _full_height_fab8e9" dir="ltr" style="position: relative; --radix-scroll-area-corner-width: 0px; --radix-scroll-area-corner-height: 0px; flex-grow: 1; height: auto;" > <div class="rt-ScrollAreaViewport" data-radix-scroll-area-viewport="" style="overflow-x: scroll; overflow-y: scroll;" > <div style="min-width: 100%; display: table;" > <div class="rt-Box" > <div class="rt-Flex rt-r-fd-column rt-r-gap-1 rt-r-p-2 _content_07f787" data-element="ChatContent" > <div class="rt-Container rt-r-size-4" > <div class="rt-ContainerInner" > <div class="rt-Flex rt-r-fd-column rt-r-gap-4" > <span class="rt-Text" > Welcome to Refact chat. </span> <span class="rt-Text" > πŸ’‘ <b> Tip of the day </b> : </span> </div> </div> </div> <div class="rt-Container rt-r-size-4" > <div class="rt-ContainerInner" /> </div> <div class="rt-Container rt-r-size-4 rt-r-pt-4 rt-r-pb-8" > <div class="rt-ContainerInner" /> </div> </div> <div class="rt-Box" style="position: absolute; bottom: 0px; max-width: 100%;" > <div class="rt-ScrollAreaRoot" dir="ltr" style="position: relative; --radix-scroll-area-corner-width: 0px; --radix-scroll-area-corner-height: 0px;" > <div class="rt-ScrollAreaViewport" data-radix-scroll-area-viewport="" style="overflow-x: scroll; overflow-y: scroll;" > <div style="min-width: 100%; display: table;" > <div class="rt-Flex rt-r-ai-start rt-r-gap-3 rt-r-pb-2" /> </div> </div> <div class="rt-ScrollAreaViewportFocusRing" /> </div> </div> <div class="rt-Box rt-r-h -rt-r-mt-2" style="--height: 0px;" /> </div> <button class="rt-reset rt-BaseButton rt-r-size-2 rt-variant-solid rt-IconButton" data-accent-color="" style="po

Check failure on line 425 in refact-agent/gui/src/features/Chat/Chat.test.tsx

View workflow job for this annotation

GitHub Actions / build (lts/*)

src/features/Chat/Chat.test.tsx > Chat > chat error streaming

TestingLibraryElementError: Unable to find an element with the title: Response speed mode. Ignored nodes: comments, script, style <body> <div> <div class="radix-themes" data-accent-color="indigo" data-gray-color="slate" data-has-background="true" data-is-root-theme="true" data-panel-background="translucent" data-radius="medium" data-scaling="100%" > <div class="rt-Flex rt-r-fd-column rt-r-jc-space-between rt-r-px-1 rt-r-w rt-r-oy-auto rt-r-fg-1" role="presentation" style="--width: 100%;" > <div class="rt-ScrollAreaRoot _vertical_fab8e9 _full_height_fab8e9" dir="ltr" style="position: relative; --radix-scroll-area-corner-width: 0px; --radix-scroll-area-corner-height: 0px; flex-grow: 1; height: auto;" > <div class="rt-ScrollAreaViewport" data-radix-scroll-area-viewport="" style="overflow-x: scroll; overflow-y: scroll;" > <div style="min-width: 100%; display: table;" > <div class="rt-Box" > <div class="rt-Flex rt-r-fd-column rt-r-gap-1 rt-r-p-2 _content_07f787" data-element="ChatContent" > <div class="rt-Container rt-r-size-4" > <div class="rt-ContainerInner" > <div class="rt-Flex rt-r-fd-column rt-r-gap-4" > <span class="rt-Text" > Welcome to Refact chat. </span> <span class="rt-Text" > πŸ’‘ <b> Tip of the day </b> : </span> </div> </div> </div> <div class="rt-Container rt-r-size-4" > <div class="rt-ContainerInner" /> </div> <div class="rt-Container rt-r-size-4 rt-r-pt-4 rt-r-pb-8" > <div class="rt-ContainerInner" /> </div> </div> <div class="rt-Box" style="position: absolute; bottom: 0px; max-width: 100%;" > <div class="rt-ScrollAreaRoot" dir="ltr" style="position: relative; --radix-scroll-area-corner-width: 0px; --radix-scroll-area-corner-height: 0px;" > <div class="rt-ScrollAreaViewport" data-radix-scroll-area-viewport="" style="overflow-x: scroll; overflow-y: scroll;" > <div style="min-width: 100%; display: table;" > <div class="rt-Flex rt-r-ai-start rt-r-gap-3 rt-r-pb-2" /> </div> </div> <div class="rt-ScrollAreaViewportFocusRing" /> </div> </div> <div class="rt-Box rt-r-h -rt-r-mt-2" style="--height: 0px;" /> </div> <button class="rt-reset rt-BaseButton rt-r-size-2 rt-variant-solid rt-IconButton" data-accent-color="" style="po

Check failure on line 425 in refact-agent/gui/src/features/Chat/Chat.test.tsx

View workflow job for this annotation

GitHub Actions / build (latest)

src/features/Chat/Chat.test.tsx > Chat > chat error streaming

TestingLibraryElementError: Unable to find an element with the title: Response speed mode. Ignored nodes: comments, script, style <body> <div> <div class="radix-themes" data-accent-color="indigo" data-gray-color="slate" data-has-background="true" data-is-root-theme="true" data-panel-background="translucent" data-radius="medium" data-scaling="100%" > <div class="rt-Flex rt-r-fd-column rt-r-jc-space-between rt-r-px-1 rt-r-w rt-r-oy-auto rt-r-fg-1" role="presentation" style="--width: 100%;" > <div class="rt-ScrollAreaRoot _vertical_fab8e9 _full_height_fab8e9" dir="ltr" style="position: relative; --radix-scroll-area-corner-width: 0px; --radix-scroll-area-corner-height: 0px; flex-grow: 1; height: auto;" > <div class="rt-ScrollAreaViewport" data-radix-scroll-area-viewport="" style="overflow-x: scroll; overflow-y: scroll;" > <div style="min-width: 100%; display: table;" > <div class="rt-Box" > <div class="rt-Flex rt-r-fd-column rt-r-gap-1 rt-r-p-2 _content_07f787" data-element="ChatContent" > <div class="rt-Container rt-r-size-4" > <div class="rt-ContainerInner" > <div class="rt-Flex rt-r-fd-column rt-r-gap-4" > <span class="rt-Text" > Welcome to Refact chat. </span> <span class="rt-Text" > πŸ’‘ <b> Tip of the day </b> : </span> </div> </div> </div> <div class="rt-Container rt-r-size-4" > <div class="rt-ContainerInner" /> </div> <div class="rt-Container rt-r-size-4 rt-r-pt-4 rt-r-pb-8" > <div class="rt-ContainerInner" /> </div> </div> <div class="rt-Box" style="position: absolute; bottom: 0px; max-width: 100%;" > <div class="rt-ScrollAreaRoot" dir="ltr" style="position: relative; --radix-scroll-area-corner-width: 0px; --radix-scroll-area-corner-height: 0px;" > <div class="rt-ScrollAreaViewport" data-radix-scroll-area-viewport="" style="overflow-x: scroll; overflow-y: scroll;" > <div style="min-width: 100%; display: table;" > <div class="rt-Flex rt-r-ai-start rt-r-gap-3 rt-r-pb-2" /> </div> </div> <div class="rt-ScrollAreaViewportFocusRing" /> </div> </div> <div class="rt-Box rt-r-h -rt-r-mt-2" style="--height: 0px;" /> </div> <button class="rt-reset rt-BaseButton rt-r-size-2 rt-variant-solid rt-IconButton" data-accent-color="" style="po

Check failure on line 425 in refact-agent/gui/src/features/Chat/Chat.test.tsx

View workflow job for this annotation

GitHub Actions / build (latest)

src/features/Chat/Chat.test.tsx > Chat > chat error streaming

TestingLibraryElementError: Unable to find an element with the title: Response speed mode. Ignored nodes: comments, script, style <body> <div> <div class="radix-themes" data-accent-color="indigo" data-gray-color="slate" data-has-background="true" data-is-root-theme="true" data-panel-background="translucent" data-radius="medium" data-scaling="100%" > <div class="rt-Flex rt-r-fd-column rt-r-jc-space-between rt-r-px-1 rt-r-w rt-r-oy-auto rt-r-fg-1" role="presentation" style="--width: 100%;" > <div class="rt-ScrollAreaRoot _vertical_fab8e9 _full_height_fab8e9" dir="ltr" style="position: relative; --radix-scroll-area-corner-width: 0px; --radix-scroll-area-corner-height: 0px; flex-grow: 1; height: auto;" > <div class="rt-ScrollAreaViewport" data-radix-scroll-area-viewport="" style="overflow-x: scroll; overflow-y: scroll;" > <div style="min-width: 100%; display: table;" > <div class="rt-Box" > <div class="rt-Flex rt-r-fd-column rt-r-gap-1 rt-r-p-2 _content_07f787" data-element="ChatContent" > <div class="rt-Container rt-r-size-4" > <div class="rt-ContainerInner" > <div class="rt-Flex rt-r-fd-column rt-r-gap-4" > <span class="rt-Text" > Welcome to Refact chat. </span> <span class="rt-Text" > πŸ’‘ <b> Tip of the day </b> : </span> </div> </div> </div> <div class="rt-Container rt-r-size-4" > <div class="rt-ContainerInner" /> </div> <div class="rt-Container rt-r-size-4 rt-r-pt-4 rt-r-pb-8" > <div class="rt-ContainerInner" /> </div> </div> <div class="rt-Box" style="position: absolute; bottom: 0px; max-width: 100%;" > <div class="rt-ScrollAreaRoot" dir="ltr" style="position: relative; --radix-scroll-area-corner-width: 0px; --radix-scroll-area-corner-height: 0px;" > <div class="rt-ScrollAreaViewport" data-radix-scroll-area-viewport="" style="overflow-x: scroll; overflow-y: scroll;" > <div style="min-width: 100%; display: table;" > <div class="rt-Flex rt-r-ai-start rt-r-gap-3 rt-r-pb-2" /> </div> </div> <div class="rt-ScrollAreaViewportFocusRing" /> </div> </div> <div class="rt-Box rt-r-h -rt-r-mt-2" style="--height: 0px;" /> </div> <button class="rt-reset rt-BaseButton rt-r-size-2 rt-variant-solid rt-IconButton" data-accent-color="" style="po

Check failure on line 425 in refact-agent/gui/src/features/Chat/Chat.test.tsx

View workflow job for this annotation

GitHub Actions / build (latest)

src/features/Chat/Chat.test.tsx > Chat > chat error streaming

TestingLibraryElementError: Unable to find an element with the title: Response speed mode. Ignored nodes: comments, script, style <body> <div> <div class="radix-themes" data-accent-color="indigo" data-gray-color="slate" data-has-background="true" data-is-root-theme="true" data-panel-background="translucent" data-radius="medium" data-scaling="100%" > <div class="rt-Flex rt-r-fd-column rt-r-jc-space-between rt-r-px-1 rt-r-w rt-r-oy-auto rt-r-fg-1" role="presentation" style="--width: 100%;" > <div class="rt-ScrollAreaRoot _vertical_fab8e9 _full_height_fab8e9" dir="ltr" style="position: relative; --radix-scroll-area-corner-width: 0px; --radix-scroll-area-corner-height: 0px; flex-grow: 1; height: auto;" > <div class="rt-ScrollAreaViewport" data-radix-scroll-area-viewport="" style="overflow-x: scroll; overflow-y: scroll;" > <div style="min-width: 100%; display: table;" > <div class="rt-Box" > <div class="rt-Flex rt-r-fd-column rt-r-gap-1 rt-r-p-2 _content_07f787" data-element="ChatContent" > <div class="rt-Container rt-r-size-4" > <div class="rt-ContainerInner" > <div class="rt-Flex rt-r-fd-column rt-r-gap-4" > <span class="rt-Text" > Welcome to Refact chat. </span> <span class="rt-Text" > πŸ’‘ <b> Tip of the day </b> : </span> </div> </div> </div> <div class="rt-Container rt-r-size-4" > <div class="rt-ContainerInner" /> </div> <div class="rt-Container rt-r-size-4 rt-r-pt-4 rt-r-pb-8" > <div class="rt-ContainerInner" /> </div> </div> <div class="rt-Box" style="position: absolute; bottom: 0px; max-width: 100%;" > <div class="rt-ScrollAreaRoot" dir="ltr" style="position: relative; --radix-scroll-area-corner-width: 0px; --radix-scroll-area-corner-height: 0px;" > <div class="rt-ScrollAreaViewport" data-radix-scroll-area-viewport="" style="overflow-x: scroll; overflow-y: scroll;" > <div style="min-width: 100%; display: table;" > <div class="rt-Flex rt-r-ai-start rt-r-gap-3 rt-r-pb-2" /> </div> </div> <div class="rt-ScrollAreaViewportFocusRing" /> </div> </div> <div class="rt-Box rt-r-h -rt-r-mt-2" style="--height: 0px;" /> </div> <button class="rt-reset rt-BaseButton rt-r-size-2 rt-variant-solid rt-IconButton" data-accent-color="" style="po
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");

Expand Down
Loading