Skip to content

Commit 44877cd

Browse files
authored
change ff name, chat_mode (#6582)
1 parent ef29568 commit 44877cd

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

frontend/src/components/app-config/user-config-form.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,7 +1361,7 @@ export const UserConfigForm: React.FC = () => {
13611361
/>
13621362
<FormField
13631363
control={form.control}
1364-
name="experimental.mcp_docs"
1364+
name="experimental.chat_modes"
13651365
render={({ field }) => (
13661366
<div className="flex flex-col gap-y-1">
13671367
<FormItem className={formItemClasses}>
@@ -1376,7 +1376,7 @@ export const UserConfigForm: React.FC = () => {
13761376
</FormItem>
13771377
<IsOverridden
13781378
userConfig={config}
1379-
name="experimental.mcp_docs"
1379+
name="experimental.chat_modes"
13801380
/>
13811381
<FormDescription>
13821382
Switch between different modes in the Chat sidebar, to

frontend/src/components/chat/chat-panel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ const ChatInputFooter: React.FC<ChatInputFooterProps> = memo(
369369
<TooltipProvider>
370370
<div className="px-3 py-2 border-t border-border/20 flex flex-row items-center justify-between">
371371
<div className="flex items-center gap-2">
372-
<FeatureFlagged feature="mcp_docs">
372+
<FeatureFlagged feature="chat_modes">
373373
<Select value={currentMode} onValueChange={saveModeChange}>
374374
<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">
375375
{currentMode}

frontend/src/core/config/feature-flag.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export interface ExperimentalFeatures {
1212
rtc_v2: boolean;
1313
performant_table_charts: boolean;
1414
mcp_docs: boolean;
15+
chat_modes: boolean;
1516
sql_linter: boolean;
1617
external_agents: boolean;
1718
sql_mode: boolean;
@@ -25,6 +26,7 @@ const defaultValues: ExperimentalFeatures = {
2526
rtc_v2: false,
2627
performant_table_charts: false,
2728
mcp_docs: false,
29+
chat_modes: false,
2830
sql_linter: true,
2931
external_agents: import.meta.env.DEV,
3032
sql_mode: false,

marimo/_config/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,7 @@ class ExperimentalConfig(TypedDict, total=False):
509509
rtc_v2: bool
510510
performant_table_charts: bool
511511
mcp_docs: bool
512+
chat_modes: bool
512513
sql_linter: bool
513514
sql_mode: bool
514515

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,7 @@ multi_column = true
548548
performant_table_charts = true
549549
sql_linter = true
550550
sql_mode = true
551+
chat_modes = true
551552

552553
[tool.marimo.display]
553554
dataframes = "rich"

0 commit comments

Comments
 (0)