Skip to content
Open
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
19 changes: 16 additions & 3 deletions apps/web/src/components/shared/ModeCombobox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export type ModeOption<T extends string = string> = {
value: T;
label: string;
description: string;
deprecated?: boolean;
};

/**
Expand All @@ -44,7 +45,12 @@ export const NEXT_MODE_OPTIONS: ModeOption<'code' | 'plan' | 'debug' | 'orchestr
{ value: 'code', label: 'Code', description: 'Write and modify code' },
{ value: 'plan', label: 'Plan', description: 'Plan and design solutions' },
{ value: 'debug', label: 'Debug', description: 'Find and fix issues' },
{ value: 'orchestrator', label: 'Orchestrator', description: 'Coordinate complex tasks' },
{
value: 'orchestrator',
label: 'Orchestrator',
description: 'Coordinate complex tasks',
deprecated: true,
},
{ value: 'ask', label: 'Ask', description: 'Get answers and explanations' },
];

Expand Down Expand Up @@ -215,8 +221,15 @@ function ModeComboboxGroups<T extends string>({
>
<div className="flex min-w-0 flex-1 flex-col">
<span className="truncate">{mode.label}</span>
{mode.description && (
<span className="text-muted-foreground truncate text-xs">{mode.description}</span>
{(mode.deprecated || mode.description) && (
<span
className={cn(
'truncate text-xs',
mode.deprecated ? 'text-amber-400/80' : 'text-muted-foreground'
)}
>
{mode.deprecated ? 'Deprecated' : mode.description}
</span>
)}
</div>
<Check
Expand Down
Loading