import { McpDisplayMode } from "@shared/McpDisplayMode" import { EmptyRequest } from "@shared/proto/index.cline" import { OpenaiReasoningEffort } from "@shared/storage/types" import { VSCodeButton, VSCodeCheckbox, VSCodeDropdown, VSCodeOption, VSCodeTextField } from "@vscode/webview-ui-toolkit/react" import { memo, useEffect, useState } from "react" import McpDisplayModeDropdown from "@/components/mcp/chat-display/McpDisplayModeDropdown" import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip" import { PLATFORM_CONFIG, PlatformType } from "@/config/platform.config" import { useExtensionState } from "@/context/ExtensionStateContext" import { StateServiceClient } from "@/services/grpc-client" import { isMacOSOrLinux } from "@/utils/platformUtils" import Section from "../Section" import SubagentOutputLineLimitSlider from "../SubagentOutputLineLimitSlider" import { updateSetting } from "../utils/settingsHandlers" interface FeatureSettingsSectionProps { renderSectionHeader: (tabId: string) => JSX.Element | null } const FeatureSettingsSection = ({ renderSectionHeader }: FeatureSettingsSectionProps) => { const { enableCheckpointsSetting, mcpMarketplaceEnabled, mcpDisplayMode, mcpResponsesCollapsed, openaiReasoningEffort, strictPlanModeEnabled, yoloModeToggled, dictationSettings, useAutoCondense, focusChainSettings, multiRootSetting, hooksEnabled, remoteConfigSettings, subagentsEnabled, } = useExtensionState() const [isClineCliInstalled, setIsClineCliInstalled] = useState(false) const handleReasoningEffortChange = (newValue: OpenaiReasoningEffort) => { updateSetting("openaiReasoningEffort", newValue) } // Poll for CLI installation status while the component is mounted useEffect(() => { const checkInstallation = async () => { try { const result = await StateServiceClient.checkCliInstallation(EmptyRequest.create()) setIsClineCliInstalled(result.value) } catch (error) { console.error("Failed to check CLI installation:", error) } } checkInstallation() // Poll ever 1.5 seconds to see if CLI is installed (only when form is open) const pollInterval = setInterval(checkInstallation, 1500) return () => { clearInterval(pollInterval) } }, []) return (
Cline for CLI is required for subagents. Install it with:
npm install -g cline
, then run
cline auth
To authenticate with Cline or configure an API provider.
Experimental: {" "} Allows Cline to spawn subprocesses to handle focused tasks like exploring large codebases, keeping your main context clean.
{subagentsEnabled && (Enables extension to save checkpoints of workspace throughout the task. Uses git under the hood which may not work well with large workspaces.
Enables the MCP Marketplace tab for discovering and installing MCP servers.
Controls how MCP responses are displayed: plain text, rich formatting with links/images, or markdown rendering.
Sets the default display mode for MCP response panels
Reasoning effort for the OpenAI family of models(applies to all OpenAI model providers)
Enforces strict tool use while in plan mode, preventing file edits.
Enables enhanced task progress tracking and automatic focus chain list management throughout tasks.
Interval (in messages) to remind Cline about its focus chain checklist (1-100). Lower values provide more frequent reminders.
Enables speech-to-text transcription using your Cline account. Uses the Aqua Voice's Avalon model, at $0.0065 credits per minute of audio processed. 5 minutes max per message.
Enables advanced context management system which uses LLM based condensing for next-gen models.{" "} Learn more
Experimental: {" "} Allows cline to work across multiple workspaces.
Experimental: {" "} Allows execution of hooks from .clinerules/hooks/ directory.
This mode disables safety checks and user confirmations. Cline will automatically approve all actions without asking. This special mode does not use plan mode or ask questions, and it is recommended to enable all auto-approve actions instead.