cubic-feedback

This commit is contained in:
Dallin Romney 2025-07-07 10:58:40 -07:00
parent 9b66433abc
commit b984c25b8f
2 changed files with 10 additions and 6 deletions

View file

@ -118,11 +118,15 @@ function ToolPolicyItem(props: ToolDropdownItemProps) {
<div
className={`flex w-8 flex-row items-center justify-end gap-2 px-2 py-0.5 sm:w-16 ${disabled ? "cursor-not-allowed" : "hover:bg-list-active hover:text-list-active-foreground cursor-pointer"}`}
data-testid={`tool-policy-item-${props.tool.function.name}`}
onClick={(e) => {
dispatch(toggleToolSetting(props.tool.function.name));
e.stopPropagation();
e.preventDefault();
}}
onClick={
disabled
? undefined
: (e) => {
dispatch(toggleToolSetting(props.tool.function.name));
e.stopPropagation();
e.preventDefault();
}
}
>
{disabled || policy === "disabled" ? (
<>

View file

@ -39,7 +39,7 @@ test("should be able to toggle modes", async () => {
);
});
// Check that it switched to Plan mode
// Check that it switched to Agent mode
await getElementByText("Agent");
act(() => {