OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

[Bug]: UI Workspace clicking between files quickly while the agent is busy will corrupt editor state

Open diwu-sf opened this issue 1 year ago • 2 comments

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

diwu-sf avatar Oct 26 '24 06:10 diwu-sf

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

mamoodi avatar Oct 27 '24 21:10 mamoodi

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.

github-actions[bot] avatar Nov 28 '24 02:11 github-actions[bot]

This is resolved in main because the UI does not allow editing anymore.

mamoodi avatar Dec 27 '24 15:12 mamoodi

Fixed in 0.18.0.

mamoodi avatar Jan 02 '25 17:01 mamoodi