Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
fix(params): strict snake_case for all saved-params reads (no fallbacks)
trohitgbedbd397bc5c
diff --git a/client/src/components/ParameterRenderer.tsx b/client/src/components/ParameterRenderer.tsxindex 808b07eb..7c81a9bc 100644--- a/client/src/components/ParameterRenderer.tsx+++ b/client/src/components/ParameterRenderer.tsx@@ -1161,7 +1161,14 @@ const ParameterRenderer: React.FC<ParameterRendererProps> = ({try {const res = await sendRequest<{ options: Array<{ value: any; label?: string }> }>('load_options',- { method, params: { node_id: selectedNode.id, ...allParamsResolved } },+ {+ method,+ params: {+ node_id: selectedNode.id,+ node_type: nodeType,+ ...allParamsResolved,+ },+ },);rawOptions = res?.options ?? [];} catch (err) {diff --git a/client/src/components/parameterPanel/InputSection.tsx b/client/src/components/parameterPanel/InputSection.tsxindex 907ce26e..ce9f7381 100644--- a/client/src/components/parameterPanel/InputSection.tsx+++ b/client/src/components/parameterPanel/InputSection.tsx@@ -267,7 +267,7 @@ const InputSection: React.FC<InputSectionProps> = ({ nodeId, visible = true }) =if (sourceHints.hasInitialDataBlob === true) {try {- const initialData = sourceNode?.data?.initialData || '{}';+ const initialData = sourceNode?.data?.initial_data || '{}';outputSchema = typeof initialData === 'string' ? JSON.parse(initialData) : initialData;} catch (e) {outputSchema = {};diff --git a/server/nodes/_icons.py b/server/nodes/_icons.pynew file mode 100644index 00000000..84460841--- /dev/null+++ b/server/nodes/_icons.py@@ -0,0 +1,169 @@+"""Central registry of node icons.++Every node plugin imports its icon constant from here so a single+edit propagates to all references. Each constant's name is the+SCREAMING_SNAKE_CASE of the node's ``type`` field; the value is+whatever the icon resolver accepts (emoji, ``asset:foo``, or+``lobehub:Brand``).+"""++# agent+AI_EMPLOYEE = "๐ฅ"+AI_AGENT = "๐ค"+ANDROID_AGENT = "๐ฑ"+AUTONOMOUS_AGENT = "๐ฏ"+CHAT_AGENT = "โจ"+CLAUDE_CODE_AGENT = "lobehub:Claude"+CODING_AGENT = "๐ป"+CONSUMER_AGENT = "๐"+DEEP_AGENT = "๐ง "+ORCHESTRATOR_AGENT = "๐ผ"+PAYMENTS_AGENT = "๐ณ"+PRODUCTIVITY_AGENT = "โฐ"+RLM_AGENT = "๐ง "+SOCIAL_AGENT = "๐ฑ"+TASK_AGENT = "๐"+TOOL_AGENT = "๐ง"+TRAVEL_AGENT = "โ๏ธ"+WEB_AGENT = "๐"++# android+AIRPLANE_MODE_CONTROL = "โ๏ธ"+APP_LAUNCHER = "๐"+APP_LIST = "๐"+AUDIO_AUTOMATION = "๐"+BATTERY_MONITOR = "๐"+BLUETOOTH_AUTOMATION = "๐ต"+CAMERA_CONTROL = "๐ท"+DEVICE_STATE_AUTOMATION = "โ๏ธ"+ENVIRONMENTAL_SENSORS = "๐ก๏ธ"+LOCATION = "๐"+MEDIA_CONTROL = "๐ต"+MOTION_DETECTION = "๐ณ"+NETWORK_MONITOR = "๐ก"+SCREEN_CONTROL_AUTOMATION = "๐ก"+SYSTEM_INFO = "๐ฑ"+WIFI_AUTOMATION = "๐ถ"++# browser+BROWSER = "asset:chrome"++# chat+CHAT_HISTORY = "asset:chat"+CHAT_SEND = "asset:chat"++# code+JAVASCRIPT_EXECUTOR = "asset:javascript"+PYTHON_EXECUTOR = "asset:python"+TYPESCRIPT_EXECUTOR = "asset:typescript"++# document+DOCUMENT_PARSER = "๐"+EMBEDDING_GENERATOR = "๐ง "+FILE_DOWNLOADER = "โฌ๏ธ"+HTTP_SCRAPER = "๐"+TEXT_CHUNKER = "โ๏ธ"+VECTOR_STORE = "๐๏ธ"++EMAIL_READ = "asset:read"+EMAIL_RECEIVE = "asset:receive"+EMAIL_SEND = "asset:send"++# filesystem+FILE_MODIFY = "โ๏ธ"+FILE_READ = "๐"+FS_SEARCH = "๐"+SHELL = "๐ป"++CALENDAR = "asset:calendar"+CONTACTS = "asset:contacts"+DRIVE = "asset:drive"+GMAIL = "asset:gmail"+GMAIL_RECEIVE = "asset:gmail"+SHEETS = "asset:sheets"+TASKS = "asset:tasks"++# location+GMAPS_CREATE = "๐บ๏ธ"+GMAPS_LOCATIONS = "๐"+GMAPS_NEARBY_PLACES = "๐"++# model+ANTHROPIC_CHAT_MODEL = "lobehub:claude"+CEREBRAS_CHAT_MODEL = "lobehub:cerebras"+DEEPSEEK_CHAT_MODEL = "lobehub:deepseek"+GEMINI_CHAT_MODEL = "lobehub:gemini"+GROQ_CHAT_MODEL = "lobehub:groq"+KIMI_CHAT_MODEL = "lobehub:kimi"+MISTRAL_CHAT_MODEL = "lobehub:mistral"+OPENAI_CHAT_MODEL = "lobehub:openai"+OPENROUTER_CHAT_MODEL = "lobehub:openrouter"++# proxy+PROXY_CONFIG = "๐ง"+PROXY_REQUEST = "๐ก๏ธ"+PROXY_STATUS = "๐"++# scheduler+CRON_SCHEDULER = "โฐ"+TIMER = "โฑ๏ธ"++# scraper+APIFY_ACTOR = "asset:apify"+CRAWLEE_SCRAPER = "๐ท"++# search+BRAVE_SEARCH = "asset:brave"+DUCKDUCKGO_SEARCH = "asset:duckduckgo"+PERPLEXITY_SEARCH = "asset:perplexity"+SERPER_SEARCH = "asset:google"++# skill+MASTER_SKILL = "๐ฏ"+SIMPLE_MEMORY = "๐ง "++# social+SOCIAL_RECEIVE = "asset:social"+SOCIAL_SEND = "asset:social"++# telegram+TELEGRAM_RECEIVE = "asset:telegram"+TELEGRAM_SEND = "asset:telegram"++# text+FILE_HANDLER = "๐"+TEXT_GENERATOR = "๐"++# tool+CALCULATOR_TOOL = "๐งฎ"+CURRENT_TIME_TOOL = "๐"+TASK_MANAGER = "๐"+WRITE_TODOS = "๐"++# trigger+CHAT_TRIGGER = "asset:chat"+TASK_TRIGGER = "๐ฌ"+WEBHOOK_TRIGGER = "โ"++TWITTER_RECEIVE = "asset:x"+TWITTER_SEARCH = "asset:x"+TWITTER_SEND = "asset:x"+TWITTER_USER = "asset:x"++# utility+CONSOLE = "๐ฅ๏ธ"+HTTP_REQUEST = "๐"+PROCESS_MANAGER = "โ๏ธ"+TEAM_MONITOR = "๐"+WEBHOOK_RESPONSE = "โฉ๏ธ"++WHATSAPP_DB = "asset:whatsapp-db"+WHATSAPP_RECEIVE = "asset:whatsapp-receive"+WHATSAPP_SEND = "asset:whatsapp-send"++# workflow+START = "โถ๏ธ"diff --git a/server/nodes/social/_base.py b/server/nodes/social/_base.pyindex edf85217..dca96c7f 100644--- a/server/nodes/social/_base.py+++ b/server/nodes/social/_base.py@@ -403,21 +403,21 @@ async def handle_social_send(try:channel = parameters.get('channel', 'whatsapp')- recipient_type = parameters.get('recipientType', 'phone')- message_type = parameters.get('messageType', 'text')+ recipient_type = parameters.get('recipient_type', 'phone')+ message_type = parameters.get('message_type', 'text')# Get recipient based on typerecipient = Noneif recipient_type == 'phone':recipient = parameters.get('phone')elif recipient_type == 'group':- recipient = parameters.get('groupId')+ recipient = parameters.get('group_id')elif recipient_type == 'channel':- recipient = parameters.get('channelId')+ recipient = parameters.get('channel_id')elif recipient_type == 'user':- recipient = parameters.get('userId')+ recipient = parameters.get('user_id')elif recipient_type == 'chat':- recipient = parameters.get('chatId')+ recipient = parameters.get('chat_id')if not recipient:raise ValueError(f"Recipient ({recipient_type}) is required")@@ -494,18 +494,18 @@ async def _send_via_whatsapp(whatsapp_params['message'] = parameters.get('message', '')elif message_type in ('image', 'video', 'audio', 'document', 'sticker'):- media_source = parameters.get('mediaSource', 'url')+ media_source = parameters.get('media_source', 'url')whatsapp_params['media_source'] = media_sourceif media_source == 'url':- whatsapp_params['media_url'] = parameters.get('mediaUrl', '')+ whatsapp_params['media_url'] = parameters.get('media_url', '')elif media_source == 'base64':- whatsapp_params['media_data'] = parameters.get('mediaData', '')+ whatsapp_params['media_data'] = parameters.get('media_data', '')elif media_source == 'file':- whatsapp_params['file_path'] = parameters.get('filePath', '')+ whatsapp_params['file_path'] = parameters.get('file_path', '')- if parameters.get('mimeType'):- whatsapp_params['mime_type'] = parameters['mimeType']+ if parameters.get('mime_type'):+ whatsapp_params['mime_type'] = parameters['mime_type']if parameters.get('caption'):whatsapp_params['caption'] = parameters['caption']if parameters.get('filename'):@@ -514,17 +514,17 @@ async def _send_via_whatsapp(elif message_type == 'location':whatsapp_params['latitude'] = parameters.get('latitude', 0)whatsapp_params['longitude'] = parameters.get('longitude', 0)- whatsapp_params['location_name'] = parameters.get('locationName', '')+ whatsapp_params['location_name'] = parameters.get('location_name', '')whatsapp_params['address'] = parameters.get('address', '')elif message_type == 'contact':- whatsapp_params['contact_name'] = parameters.get('contactName', '')+ whatsapp_params['contact_name'] = parameters.get('contact_name', '')whatsapp_params['vcard'] = parameters.get('vcard', '')# Reply options- if parameters.get('replyToMessage'):+ if parameters.get('reply_to_message'):whatsapp_params['is_reply'] = True- whatsapp_params['reply_message_id'] = parameters.get('replyMessageId', '')+ whatsapp_params['reply_message_id'] = parameters.get('reply_message_id', '')# Call WhatsApp handlerreturn await whatsapp_send_handler(whatsapp_params)diff --git a/server/services/ai.py b/server/services/ai.pyindex 75a8ae0d..c2ced136 100644--- a/server/services/ai.py+++ b/server/services/ai.py@@ -275,7 +275,7 @@ def _resolve_max_tokens(flattened: dict, model: str, provider: str) -> int:registry = get_model_registry()model_max = registry.get_max_output_tokens(model, provider)- user_val = flattened.get('max_tokens') or flattened.get('maxTokens')+ user_val = flattened.get('max_tokens')if user_val:user_int = int(user_val)if user_int > model_max:@@ -1345,17 +1345,17 @@ class AIService:flattened = {**parameters, **options}# Extract parameters with camelCase/snake_case support for LangChain- api_key = flattened.get('api_key') or flattened.get('apiKey')+ api_key = flattened.get('api_key')model = flattened.get('model', 'gpt-3.5-turbo')# Strip [FREE] prefix if present (added by OpenRouter model list for display)if model.startswith('[FREE] '):model = model[7:]prompt = flattened.get('prompt', 'Hello')- # System prompt/message - support multiple naming conventions- system_prompt = (flattened.get('system_prompt') or- flattened.get('systemMessage') or- flattened.get('systemPrompt') or '')+ # Schema-canonical name on chat-model `_base.py` is+ # `system_prompt`; agent paths use `system_message` and are+ # handled separately in execute_agent / execute_chat_agent.+ system_prompt = flattened.get('system_prompt', '')if not api_key:raise ValueError("API key is required")@@ -2057,7 +2057,7 @@ class AIService:options = parameters.get('options', {})flattened = {**parameters, **options}- api_key = flattened.get('api_key') or flattened.get('apiKey')+ api_key = flattened.get('api_key')provider = parameters.get('provider', 'openai')model = parameters.get('model', '')# Strip [FREE] prefix if present (added by OpenRouter model list for display)diff --git a/server/services/handlers/tools.py b/server/services/handlers/tools.pyindex 213d8b58..1cbeb3fd 100644--- a/server/services/handlers/tools.py+++ b/server/services/handlers/tools.py@@ -307,7 +307,7 @@ async def _execute_delegated_agent(args: Dict[str, Any],# Inject API key - delegated agents bypass NodeExecutor._inject_api_keys,# so we must resolve the key here from the credential store- if not child_params.get('api_key') and not child_params.get('apiKey'):+ if not child_params.get('api_key'):from constants import detect_ai_providerprovider = detect_ai_provider(node_type, child_params)key = await ai_service.auth.get_api_key(provider, "default")diff --git a/server/services/llm/config.py b/server/services/llm/config.pyindex 0cf020f6..8f04dd60 100644--- a/server/services/llm/config.py+++ b/server/services/llm/config.py@@ -147,7 +147,7 @@ def resolve_max_tokens(params: dict, model: str, provider: str) -> int:registry = get_model_registry()model_max = registry.get_max_output_tokens(model, provider)- user_val = params.get("max_tokens") or params.get("maxTokens")+ user_val = params.get("max_tokens")if user_val:user_int = int(user_val)if user_int > model_max:diff --git a/server/services/node_executor.py b/server/services/node_executor.pyindex fa8932f1..398e5853 100644--- a/server/services/node_executor.py+++ b/server/services/node_executor.py@@ -233,7 +233,7 @@ class NodeExecutor:if node_type in AI_MODEL_TYPES:provider = detect_ai_provider(node_type, params)- if not result.get('api_key') and not result.get('apiKey'):+ if not result.get('api_key'):key = await self.ai_service.auth.get_api_key(provider, "default")if key:result['api_key'] = keydiff --git a/server/services/node_option_loaders/android_loaders.py b/server/services/node_option_loaders/android_loaders.pyindex 6185d82c..9ff26875 100644--- a/server/services/node_option_loaders/android_loaders.py+++ b/server/services/node_option_loaders/android_loaders.py@@ -18,7 +18,7 @@ async def load_android_service_actions(params: dict[str, Any]) -> list[dict[str,correctness boundary. The frontend falls back to a free-text inputif the loader returns an empty list."""- node_type = params.get("node_type") or params.get("nodeType") or ""+ node_type = params.get("node_type") or ""service_id = _ANDROID_SERVICE_MAP.get(node_type)if not service_id:return []diff --git a/server/services/node_option_loaders/whatsapp_loaders.py b/server/services/node_option_loaders/whatsapp_loaders.pyindex f0e5e921..e2763683 100644--- a/server/services/node_option_loaders/whatsapp_loaders.py+++ b/server/services/node_option_loaders/whatsapp_loaders.py@@ -53,7 +53,7 @@ async def load_whatsapp_group_members(params: dict[str, Any]) -> list[dict[str,from services.whatsapp_service import handle_whatsapp_group_info as _wa_group_info- group_id = params.get("group_id") or params.get("groupId") or ""+ group_id = params.get("group_id") or ""if not group_id:return []response = await _wa_group_info(group_id)diff --git a/server/services/plugin/edge_walker.py b/server/services/plugin/edge_walker.pyindex 5268de6d..03e0ec26 100644--- a/server/services/plugin/edge_walker.py+++ b/server/services/plugin/edge_walker.py@@ -223,7 +223,7 @@ async def _append_skill_entries(skill_data.append({"node_id": source_node_id,"node_type": skill_type,- "skill_name": skill_params.get("skillName", skill_type),+ "skill_name": skill_params.get("skill_name", skill_type),"parameters": skill_params,"label": source_node.get("data", {}).get("label", skill_type),})diff --git a/server/services/proxy/service.py b/server/services/proxy/service.pyindex 7c51c28a..6dceb739 100644--- a/server/services/proxy/service.py+++ b/server/services/proxy/service.py@@ -224,24 +224,25 @@ class ProxyService:if not runtime.config.enabled:raise ProviderError(runtime.config.name, "Provider is disabled")- # Build geo target. proxy_city / proxy_state are not declared- # Pydantic fields today; left as-is for any caller that hand-- # passes them.+ # Build geo target. proxy_city / proxy_state / proxy_session_id+ # are not declared Pydantic fields today; reading them returns+ # None unless a caller hand-passes them via the same+ # snake_case convention as the rest of the schema.geo = GeoTarget(country=parameters.get("proxy_country") or(rule.required_country if rule else None) orself._settings.proxy_default_country,- city=parameters.get("proxyCity"),- state=parameters.get("proxyState"),+ city=parameters.get("proxy_city"),+ state=parameters.get("proxy_state"),)# Determine session type- session_type_str = parameters.get("session_type") or parameters.get("proxySessionType", "rotating")+ session_type_str = parameters.get("session_type", "rotating")session_type = SessionType(session_type_str) if session_type_str else SessionType.ROTATINGif rule:session_type = rule.session_type- session_id = parameters.get("proxySessionId")+ session_id = parameters.get("proxy_session_id")# Format proxy URLproxy_url = runtime.provider.format_proxy_url(diff --git a/server/services/rlm/adapters.py b/server/services/rlm/adapters.pyindex 706bff92..d65f6dba 100644--- a/server/services/rlm/adapters.py+++ b/server/services/rlm/adapters.py@@ -50,7 +50,7 @@ class ChatModelExtractor:params = tool_info.get('parameters', {})provider = params.get('provider', '')model = params.get('model', '')- api_key = params.get('api_key') or params.get('apiKey')+ api_key = params.get('api_key')if not api_key and auth:api_key = await auth.get_api_key(provider)diff --git a/server/services/rlm/service.py b/server/services/rlm/service.pyindex 7ed6eb9d..99032299 100644--- a/server/services/rlm/service.py+++ b/server/services/rlm/service.py@@ -109,10 +109,10 @@ class RLMService:custom_tools = ToolBridgeAdapter.bridge(tool_data, context, loop=running_loop)# === RLM-specific parameters ===- max_iterations = int(flattened.get('maxIterations', DEFAULT_MAX_ITERATIONS))+ max_iterations = int(flattened.get('max_iterations', DEFAULT_MAX_ITERATIONS))max_depth = int(flattened.get('max_depth', DEFAULT_MAX_DEPTH))- max_budget = flattened.get('maxBudget')- max_timeout = flattened.get('maxTimeout')+ max_budget = flattened.get('max_budget')+ max_timeout = flattened.get('max_timeout')max_tokens = flattened.get('max_tokens')verbose = flattened.get('verbose', DEFAULT_VERBOSE)diff --git a/server/services/text.py b/server/services/text.pyindex 156e4a87..cd19a4b8 100644--- a/server/services/text.py+++ b/server/services/text.py@@ -21,7 +21,7 @@ class TextService:try:text = parameters.get('text', 'Hello World')- include_timestamp = parameters.get('includeTimestamp', True)+ include_timestamp = parameters.get('include_timestamp', True)result_data = {"text": text,