All-Hands-AI / OpenHands

🙌 OpenHands: Code Less, Make More
https://all-hands.dev
MIT License
37.7k stars 4.26k forks source link

OpenHands UI should pop up a dialog box to warn before closing when agent is running #5315

Open openhands-agent opened 2 days ago

openhands-agent commented 2 days ago

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:

github-actions[bot] commented 2 days ago

OpenHands started fixing the issue! You can monitor the progress here.

neubig commented 2 days ago

Sorry, this was me again...

github-actions[bot] commented 2 days ago

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.