diff --git a/gui/src/components/AssistantAndOrgListbox/AssistantOption.tsx b/gui/src/components/AssistantAndOrgListbox/AssistantOption.tsx
index a7c84608c..183edd3ae 100644
--- a/gui/src/components/AssistantAndOrgListbox/AssistantOption.tsx
+++ b/gui/src/components/AssistantAndOrgListbox/AssistantOption.tsx
@@ -1,16 +1,15 @@
import {
- Cog6ToothIcon,
ExclamationTriangleIcon,
} from "@heroicons/react/24/outline";
import { ProfileDescription } from "core/config/ProfileLifecycleManager";
import { useContext, useMemo } from "react";
import { useNavigate } from "react-router-dom";
+import { ToolTip } from "../gui/Tooltip";
import { IdeMessengerContext } from "../../context/IdeMessenger";
import { useAppDispatch } from "../../redux/hooks";
import { setSelectedProfile } from "../../redux/slices/profilesSlice";
import { isLocalProfile } from "../../util";
import { ROUTES } from "../../util/navigation";
-import { useLump } from "../mainInput/Lump/LumpContext";
import { ListboxOption, useFontSize } from "../ui";
import { AssistantIcon } from "./AssistantIcon";
@@ -27,7 +26,6 @@ export function AssistantOption({
}: AssistantOptionProps) {
const tinyFont = useFontSize(-4);
const navigate = useNavigate();
- const { setSelectedSection } = useLump();
const dispatch = useAppDispatch();
const ideMessenger = useContext(IdeMessengerContext);
@@ -36,30 +34,24 @@ export function AssistantOption({
}, [profile.errors]);
function handleOptionClick() {
+ // Always select the agent first (even if it has errors)
// optimistic update
dispatch(setSelectedProfile(profile.id));
// notify core which will handle actual update
ideMessenger.post("didChangeSelectedProfile", {
id: profile.id,
});
- onClick();
- }
- function handleConfigure() {
- ideMessenger.post("config/openProfile", { profileId: profile.id });
- onClick();
- }
-
- function handleClickError() {
- if (profile.id === "local") {
- navigate(ROUTES.HOME);
- setSelectedSection("error");
- } else {
- ideMessenger.post("config/openProfile", { profileId: profile.id });
+ // If the agent has errors, navigate to the agents config page
+ if (profile.errors && profile.errors.length > 0) {
+ navigate("/config?tab=agents");
}
+
onClick();
}
+
+
return (
{getMetaKeyLabel()} ⇧ ' to toggle agent
+
- {error.message} -
-- Indexing is disabled -
-
- Open settings and toggle Enable Indexing to
- re-enable
-
+ Indexing is disabled +
+
+ Open settings and toggle Enable Indexing to
+ re-enable
+
+ Manage your codebase and documentation indexing +
+{tool.name}
+ ))}
+ {server.tools.length === 0 && (
+ No tools
+ )}
+ >
+ }
+ >
+ {prompt.name}
+ ))}
+ {server.prompts.length === 0 && (
+ No prompts
+ )}
+ >
+ }
+ >
+ {resource.name}
+ ),
+ )}
+ {server.resources.length === 0 && (
+ No resources
+ )}
+ >
+ }
+ >
+ {tool.name}
- ))}
- {server.tools.length === 0 && (
- No tools
- )}
- >
- }
- >
- {prompt.name}
- ))}
- {server.prompts.length === 0 && (
- No prompts
- )}
- >
- }
- >
- {resource.name}
- ),
- )}
- {server.resources.length === 0 && (
- No resources
- )}
- >
- }
- >
- {item.name}
+ {item.description && (
+ {props.tool.function.name}{" "}
+
+ detected. Permissions will conflict and usage may be
+ unpredictable
+
+
+ }
+ >
+ {param[0]}
+ {`(${param[1].type}):`}
+ {param[1].description}
+