diff --git a/echo/frontend/.env.example b/echo/frontend/.env.example index e1ddcdbd..b1904e72 100644 --- a/echo/frontend/.env.example +++ b/echo/frontend/.env.example @@ -7,6 +7,10 @@ VITE_ENABLE_CONVERSATION_HEALTH=0 # Set to "1" to enable webhook configuration in project settings VITE_ENABLE_WEBHOOKS=0 +# Agentic Chat Feature +# Set to "1" to enable the Agentic chat mode in the chat interface +VITE_ENABLE_AGENTIC_CHAT=0 + # Other environment variables can be found in src/config.ts # Examples: # VITE_USE_PARTICIPANT_ROUTER=1 diff --git a/echo/frontend/src/components/chat/ChatModeSelector.tsx b/echo/frontend/src/components/chat/ChatModeSelector.tsx index 070bffb9..ae528a9a 100644 --- a/echo/frontend/src/components/chat/ChatModeSelector.tsx +++ b/echo/frontend/src/components/chat/ChatModeSelector.tsx @@ -16,6 +16,7 @@ import { IconSparkles, } from "@tabler/icons-react"; import { useState } from "react"; +import { ENABLE_AGENTIC_CHAT } from "@/config"; import { analytics } from "@/lib/analytics"; import { AnalyticsEvents as events } from "@/lib/analyticsEvents"; import type { ChatMode } from "@/lib/api"; @@ -269,17 +270,19 @@ export const ChatModeSelector = ({ {/* Mode Cards */} - + {ENABLE_AGENTIC_CHAT && ( + + )} { ); } - if (chatMode === "agentic") { - return ; + if (ENABLE_AGENTIC_CHAT && chatMode === "agentic") { + return ( + + ); } return ( @@ -791,9 +797,7 @@ export const ProjectChatRoute = () => { }} rightSection={} disabled={ - normalizedInput.trim() === "" || - isLoading || - isSubmitting + normalizedInput.trim() === "" || isLoading || isSubmitting } {...testId("chat-send-button")} >