OpenHands UI should pop up a dialog box to warn before closing when agent is running
What problem or use case are you trying to solve?
If you have OpenHands open in a tab, it is easy to accidentally close it and lose the agent's progress if you close it while the agent is running.
Describe the UX of the solution you'd like
It would be good if the window popped up a dialog box warning the user before this happens.
Do you have thoughts on the technical implementation?
We can have an option in the frontend, on by default, that will pop up a dialog box. This will warn the user that the agent's work will be terminated and possibly lost if they close the window.
It can have three options:
- always: always pop up the dialog box
- while_working: pop up only while the agent is working, not when it's stopped
- never: never pop up the dialog box
Sorry, this was me again...
An attempt was made to automatically fix this issue, but it was unsuccessful. A branch named 'openhands-fix-issue-5315' has been created with the attempted changes. You can view the branch here. Manual intervention may be required.
@neubig is this still something we want to do? I believe this will no longer be needed with multi convos.
This is no longer required because of multi conversation support.
Agreed