diff --git a/wwwroot/.new_session.ui.swp b/wwwroot/.new_session.ui.swp new file mode 100644 index 0000000..ce130ed Binary files /dev/null and b/wwwroot/.new_session.ui.swp differ diff --git a/wwwroot/new_session.ui b/wwwroot/new_session.ui index 670925c..8f8e3cc 100644 --- a/wwwroot/new_session.ui +++ b/wwwroot/new_session.ui @@ -33,15 +33,6 @@ "options": { "url": "/hermes-web-cli/hermes_services/options" } - }, - { - "uitype": "text", - "name": "initial-prompt", - "label": "Initial Prompt (Optional)", - "placeholder": "Enter initial context or instructions...", - "width": "100%", - "height": "100px", - "marginBottom": "24px" } ] }, diff --git a/wwwroot/sessions/create_session.dspy b/wwwroot/sessions/create_session.dspy index b8652e3..f823af4 100644 --- a/wwwroot/sessions/create_session.dspy +++ b/wwwroot/sessions/create_session.dspy @@ -1,6 +1,6 @@ # Create a new session with the selected Hermes service # This .dspy file handles the POST request from new_session.ui form submission -# It receives form data with service_id and initial-prompt fields +# It receives form data with service_id field try: # Extract form data from request context @@ -12,7 +12,6 @@ try: # Get required parameters service_id = form_data.get('service_id') - initial_prompt = form_data.get('initial-prompt', '') if not service_id: # Redirect back to form with error @@ -20,7 +19,8 @@ try: # Use the function provided by the hermes-web-cli module # This will call the remote hermes-service API - session_result = create_session(service_id, initial_prompt) + # Pass empty string as initial message since we don't collect it in the form + session_result = create_session(service_id, "") if session_result: # Redirect to the new session's user interaction page