π OpenHands: AI-Driven Development
fix(cli): send authentication error resume message to user, not llm (#10421)
llamantino19105a2a132d
diff --git a/openhands/cli/main.py b/openhands/cli/main.pyindex 5375c443e9..642dd6e05f 100644--- a/openhands/cli/main.py+++ b/openhands/cli/main.py@@ -360,12 +360,12 @@ async def run_session(# Check if it's an authentication errorif 'ERROR_LLM_AUTHENTICATION' in error_message:# Start with base authentication error message- initial_message = 'Authentication error with the LLM provider. Please check your API key.'+ welcome_message = 'Authentication error with the LLM provider. Please check your API key.'# Add OpenHands-specific guidance if using an OpenHands modelllm_config = config.get_llm_config()if llm_config.model.startswith('openhands/'):- initial_message += " If you're using OpenHands models, get a new API key from https://app.all-hands.dev/settings/api-keys"+ welcome_message += "\nIf you're using OpenHands models, get a new API key from https://app.all-hands.dev/settings/api-keys"else:# For other errors, use the standard messageinitial_message = (