[Bug]: UI Workspace clicking between files quickly while the agent is busy will corrupt editor state
Is there an existing issue for the same bug?
- [X] I have checked the existing issues.
Describe the bug and reproduction steps
Terms searched for in prior bugs:
editor wrong file editor content
When the agent is busy, and especially if it is also making changes to files, if the user clicks between files in the workspace quickly, eventually the editor get into a bad state where it will show the wrong file content when clicked into a particular file.
Repro:
- Put a few files into the workspace
- Ask the agent to work on some of them
- In UI, click between files quickly
- Notice that eventually an incorrect file content will be displayed for the wrong file, and the UI will "think" there's changed content in the browser for that file
Discard button has to be clicked to revert, might be related to https://github.com/All-Hands-AI/OpenHands/issues/4357
OpenHands Installation
Docker command in README
OpenHands Version
No response
Operating System
None
Logs, Errors, Screenshots, and Additional Context
No response
I've also noticed that doing this, all the files you click have the circle indicator beside them that indicates they have changed, even though the user hasn't done anything. CC @amanape
This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This is resolved in main because the UI does not allow editing anymore.
Fixed in 0.18.0.