Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Refresh Files takes over 10s when Agent is running a Task #1775

Open
2 tasks done
tlpythonuse-colab opened this issue May 14, 2024 · 4 comments
Open
2 tasks done
Labels
bug Something isn't working severity:medium Problems that affect many users

Comments

@tlpythonuse-colab
Copy link

tlpythonuse-colab commented May 14, 2024

Is there an existing issue for the same bug?

Describe the bug

When agent task is running, files cannot be refreshed. The /refresh-files fetch request is only fulfilled many seconds later.

image

Current Version

3d53d363b4416b05046dd390ca37d5745defce5a

Installation and Configuration

make build
make setup-config
export DOCKER_HOST=unix:///run/user/1000/docker.sock
make run

Model and Agent

  • Model: gpt-4-turbo-preview
  • Agent: CodeActAgent

Reproduction Steps

  1. Give the agent a simple task (e.g. Write tic tac toe game into app1.py, Python flask, web GUI.)
  2. Click refresh files
  3. Files are not refreshed until many seconds later; in DevTools network tab, the request is pending until many seconds later.

Logs, Errors, Screenshots, and Additional Context

...
17:04:25 - opendevin:INFO: agent_controller.py:189 - Setting agent(CodeActAgent) state from AgentState.RUNNING to AgentState.AWAITING_USER_INPUT
INFO: 127.0.0.1:57928 - "GET /api/refresh-files HTTP/1.1" 200 OK
INFO: 127.0.0.1:57936 - "GET /api/refresh-files HTTP/1.1" 200 OK
INFO: 127.0.0.1:57940 - "GET /api/refresh-files HTTP/1.1" 200 OK
INFO: 127.0.0.1:57956 - "GET /api/refresh-files HTTP/1.1" 200 OK
INFO: 127.0.0.1:57972 - "GET /api/refresh-files HTTP/1.1" 200 OK
INFO: 127.0.0.1:39650 - "GET /api/refresh-files HTTP/1.1" 200 OK

@tlpythonuse-colab tlpythonuse-colab added the bug Something isn't working label May 14, 2024
@tlpythonuse-colab tlpythonuse-colab changed the title [Bug]: Unable to Refresh Files when Agent is running a Task [Bug]: Refresh Files takes over 10s when Agent is running a Task May 14, 2024
@rbren
Copy link
Collaborator

rbren commented May 14, 2024

Best guess is this is an await stealing the event loop

@rbren rbren added the severity:medium Problems that affect many users label May 14, 2024
@tlpythonuse-colab
Copy link
Author

await stealing the event loop

Could that also be the cause of how /messages sometimes has to wait until after agent initialisation before responding?

@iFurySt
Copy link
Collaborator

iFurySt commented May 16, 2024

waiting for the agent's action to be done 😶‍🌫️

@rbren
Copy link
Collaborator

rbren commented May 16, 2024

Yup I bet that's the case!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working severity:medium Problems that affect many users
Projects
None yet
Development

No branches or pull requests

3 participants