You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When clicking the "start from scratch" button on the hero page, this results in a "no query provided" toast. Instead, this should send the user to the workspace with no user message so they can start from scratch.
Screen.Recording.2025-04-01.at.9.00.37.AM.mov
OpenHands Installation
app.all-hands.dev
OpenHands Version
No response
Operating System
None
Logs, Errors, Screenshots, and Additional Context
No response
The text was updated successfully, but these errors were encountered:
I successfully fixed issue #7621 in the OpenHands repository, which was about the "start from scratch" button resulting in a "no query provided" error.
Summary of Changes
Root Cause Analysis: The issue occurred because the useCreateConversation hook was throwing an error when no query was provided, but the "Start from scratch" button was designed to create a conversation with an empty query.
Solution Implemented:
Added an allowEmptyQuery parameter to the useCreateConversation hook to bypass the validation check when explicitly starting from scratch
Updated the CodeNotInGitHubLink component to use this new parameter when the "Start from scratch" button is clicked
Created comprehensive tests to verify the fix works correctly
Testing:
Created unit tests for both the useCreateConversation hook and the CodeNotInGitHubLink component
All tests passed successfully, confirming the fix works as expected
Added the requested link for @neubig to continue refining the PR
The fix was minimal and focused on the specific issue, allowing users to start from scratch without encountering the error message. The implementation follows the repository's coding standards and includes proper test coverage.
Is there an existing issue for the same bug?
Describe the bug and reproduction steps
When clicking the "start from scratch" button on the hero page, this results in a "no query provided" toast. Instead, this should send the user to the workspace with no user message so they can start from scratch.
Screen.Recording.2025-04-01.at.9.00.37.AM.mov
OpenHands Installation
app.all-hands.dev
OpenHands Version
No response
Operating System
None
Logs, Errors, Screenshots, and Additional Context
No response
The text was updated successfully, but these errors were encountered: