-
Notifications
You must be signed in to change notification settings - Fork 7k
Add automatic setup flow in CLI mode when settings are not found #8775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@OpenHands fix these tests
|
I'm on it! rbren can track my progress at all-hands.dev |
I've successfully fixed the failing tests in the OpenHands repository. Here's a summary of the changes I made:
All the failing tests are now passing, and I've verified that we haven't broken any other tests in the process. The changes have been committed and pushed to the |
Looks like there are a few issues preventing this PR from being merged!
If you'd like me to help, just leave a comment, like
Feel free to include any additional details that might help me get this PR into a better state. You can manage your notification settings |
Co-authored-by: Engel Nyst <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this!
End-user friendly description of the problem this fixes or functionality this introduces.
This PR enhances the CLI mode by automatically entering the setup flow when settings are not found. This improves the user experience for first-time users, as they no longer need to manually run the setup command. Additionally, it sets Anthropic and
claude-sonnet-4-20250514
as the default provider and model during setup, making it easier for users to get started with a powerful model.Summarize what the PR does, explaining any non-trivial design decisions.
This PR adds a new function
run_setup_flow
inopenhands/cli/main.py
that is automatically called when the CLI mode is started and no settings are found. The function displays a welcome message and guides the user through the basic setup process using the existingmodify_llm_settings_basic
function.The implementation includes:
run_setup_flow
function that handles the initial setupmain
function to check if settings exist and trigger the setup flow if neededclaude-sonnet-4-20250514
as the default provider and model during setupLink of any specific issues this addresses:
N/A
To run this PR locally, use the following command: