Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

improvement: cleanup docs on mode dropdown (#6095)

Myles Scolnick64192c14d8b6
diff --git a/frontend/src/components/app-config/ai-config.tsx b/frontend/src/components/app-config/ai-config.tsx
index d2e43f50c2..c635c43f9a 100644
--- a/frontend/src/components/app-config/ai-config.tsx
+++ b/frontend/src/components/app-config/ai-config.tsx
@@ -573,7 +573,7 @@ export const AiProvidersConfig: React.FC<AiConfigProps> = ({
form={form}
config={config}
name="ai.github.api_key"
- placeholder="ghp_..."
+ placeholder="gho_..."
testId="ai-github-api-key-input"
description={
<>
diff --git a/frontend/src/components/chat/chat-panel.tsx b/frontend/src/components/chat/chat-panel.tsx
index 7391dbc9d5..481108c015 100644
--- a/frontend/src/components/chat/chat-panel.tsx
+++ b/frontend/src/components/chat/chat-panel.tsx
@@ -31,9 +31,10 @@ import { ScrollArea } from "@/components/ui/scroll-area";
import {
Select,
SelectContent,
+ SelectGroup,
SelectItem,
+ SelectLabel,
SelectTrigger,
- SelectValue,
} from "@/components/ui/select";
import { addMessageToChat } from "@/core/ai/chat-utils";
import { useModelChange } from "@/core/ai/config";
@@ -253,12 +254,13 @@ const ChatInputFooter: React.FC<ChatInputFooterProps> = memo(
{
value: "ask",
label: "Ask",
- subtitle: "Read-only tools",
+ subtitle:
+ "Use AI with access to read-only tools like documentation search",
},
{
value: "manual",
label: "Manual",
- subtitle: "No tools",
+ subtitle: "Pure chat, no tool usage",
},
];
@@ -267,24 +269,27 @@ const ChatInputFooter: React.FC<ChatInputFooterProps> = memo(
<div className="flex items-center gap-2">
<FeatureFlagged feature="mcp_docs">
<Select value={currentMode} onValueChange={saveModeChange}>
- <SelectTrigger className="h-6 text-xs border-border shadow-none! ring-0! bg-muted hover:bg-muted/30 py-0 px-2 gap-1">
- <SelectValue placeholder="manual" />
+ <SelectTrigger className="h-6 text-xs border-border shadow-none! ring-0! bg-muted hover:bg-muted/30 py-0 px-2 gap-1 capitalize">
+ {currentMode}
</SelectTrigger>
<SelectContent>
- {modeOptions.map((option) => (
- <SelectItem
- key={option.value}
- value={option.value}
- className="text-xs"
- subtitle={
- <div className="text-muted-foreground text-xs pl-2">
- {option.subtitle}
+ <SelectGroup>
+ <SelectLabel>AI Mode</SelectLabel>
+ {modeOptions.map((option) => (
+ <SelectItem
+ key={option.value}
+ value={option.value}
+ className="text-xs"
+ >
+ <div className="flex flex-col">
+ {option.label}
+ <div className="text-muted-foreground text-xs pt-1 block">
+ {option.subtitle}
+ </div>
</div>
- }
- >
- {option.label}
- </SelectItem>
- ))}
+ </SelectItem>
+ ))}
+ </SelectGroup>
</SelectContent>
</Select>
</FeatureFlagged>