SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.
JavaScript a2aagentic-aiai-agentsdevtoolsmcp-clientn8n-alternativeno-codeopen-sourceorchestrationsmythosvisual-builder
Enhance ChatBot and Deployment Modals with Debug Logging Feature
Salman-Ahamed7f71210dad0e
diff --git a/packages/app/src/react/features/agent-settings/dialogs/ChatBot.tsx b/packages/app/src/react/features/agent-settings/dialogs/ChatBot.tsxindex 3480425a..6939f7f4 100644--- a/packages/app/src/react/features/agent-settings/dialogs/ChatBot.tsx+++ b/packages/app/src/react/features/agent-settings/dialogs/ChatBot.tsx@@ -112,6 +112,7 @@ const ChatBotDialog = ({allowedDomains: [],isFullScreen: false,allowFileAttachments: false,+ enableDebugLogs: false,};useEffect(() => {@@ -669,6 +670,40 @@ const ChatBotDialog = ({</label></div></div>+ <div>+ <div className="flex items-center mb-4">+ <div className="relative flex items-center">+ <Field+ type="checkbox"+ id="enableDebugLogs"+ name="enableDebugLogs"+ className="w-4 h-4 bg-gray-100 border-gray-300 rounded peer appearance-none focus:outline-none box-shadow-none"+ checked={props.values?.enableDebugLogs || false}+ onChange={(e) => {+ props.setFieldValue('enableDebugLogs', e.target.checked);+ }}+ />+ <svg+ className="absolute w-4 h-4 pointer-events-none hidden peer-checked:block top-0 left-0 text-v2-blue"+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ >+ <polyline points="20 6 9 17 4 12"></polyline>+ </svg>+ </div>+ <label+ htmlFor="enableDebugLogs"+ className="ml-2 text-sm font-normal text-[#1E1E1E]"+ >+ Enable debug logs+ </label>+ </div>+ </div></div><div className="mt-5 bg-[#F2F5F7] px-4 py-2 rounded-lg"><divdiff --git a/packages/app/src/react/features/agent-settings/modals/chatbotCode.modal.tsx b/packages/app/src/react/features/agent-settings/modals/chatbotCode.modal.tsxindex 928675de..13908b58 100644--- a/packages/app/src/react/features/agent-settings/modals/chatbotCode.modal.tsx+++ b/packages/app/src/react/features/agent-settings/modals/chatbotCode.modal.tsx@@ -15,12 +15,14 @@ type EmbodimentData = {// Add other properties as neededisFullScreen?: boolean;allowFileAttachments?: boolean;+ enableDebugLogs?: boolean;};};const ChatbotCodeSnippetModal = (props: Props) => {const isFullScreen = props.embodimentData?.properties?.isFullScreen;const allowFileAttachments = props.embodimentData?.properties?.allowFileAttachments;+ const enableDebugLogs = props.embodimentData?.properties?.enableDebugLogs;const isUsingFullScreen = Boolean(isFullScreen);function getFullDomain(domain) {// Check if the domain already includes http:// or https://@@ -44,6 +46,7 @@ const ChatbotCodeSnippetModal = (props: Props) => {isChatOnly: ${isUsingFullScreen},${isUsingFullScreen ? 'containerId: "smythos-chatbot-container",' : ''}allowAttachments: ${allowFileAttachments},+ enableDebugLogs: ${enableDebugLogs},// ... additional settings ...introMessage: '${props.embodimentData && props.embodimentData.propertiesdiff --git a/packages/app/src/react/features/agent-settings/utils/index.ts b/packages/app/src/react/features/agent-settings/utils/index.tsindex f8679678..6110ffeb 100644--- a/packages/app/src/react/features/agent-settings/utils/index.ts+++ b/packages/app/src/react/features/agent-settings/utils/index.ts@@ -121,6 +121,7 @@ export const mapBotEmbodimentProperties = (properties: TChatBotProperties, activallowedDomains: properties?.allowedDomains || [],isFullScreen: properties?.isFullScreen || false,allowFileAttachments: properties?.allowFileAttachments || false,+ enableDebugLogs: properties?.enableDebugLogs || false,};};diff --git a/packages/app/src/react/features/agents/components/modals/deploy-agent-modal.tsx b/packages/app/src/react/features/agents/components/modals/deploy-agent-modal.tsxindex 3d7b0422..0abe6c41 100644--- a/packages/app/src/react/features/agents/components/modals/deploy-agent-modal.tsx+++ b/packages/app/src/react/features/agents/components/modals/deploy-agent-modal.tsx@@ -156,6 +156,7 @@ function DeployAgentModal({ userInfo, deploymentSidebarCtx }) {introMessage: chatbotEmbodiment.properties?.introMessage || '',isFullScreen: chatbotEmbodiment.properties?.isFullScreen || false,allowFileAttachments: chatbotEmbodiment.properties?.allowFileAttachments || false,+ enableDebugLogs: chatbotEmbodiment.properties?.enableDebugLogs || false,},}: undefined;diff --git a/packages/app/src/react/shared/types/api-results.types.ts b/packages/app/src/react/shared/types/api-results.types.tsindex fe761824..cf628a76 100644--- a/packages/app/src/react/shared/types/api-results.types.ts+++ b/packages/app/src/react/shared/types/api-results.types.ts@@ -100,6 +100,7 @@ export interface ChatbotEmbodimentData {allowedDomains: string[];isFullScreen?: boolean;allowFileAttachments?: boolean;+ enableDebugLogs?: boolean;colors: {botBubbleColors: {diff --git a/packages/app/src/react/shared/types/embodiment.types.ts b/packages/app/src/react/shared/types/embodiment.types.tsindex 12fd405f..8f5668cd 100644--- a/packages/app/src/react/shared/types/embodiment.types.ts+++ b/packages/app/src/react/shared/types/embodiment.types.ts@@ -33,6 +33,7 @@ export type TChatBotProperties = {allowedDomains: string[];isFullScreen?: boolean;allowFileAttachments?: boolean;+ enableDebugLogs?: boolean;};export type TFormPreviewProperties = {