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]: The service get stuck if I tap 'confirmed' twice(or more) consecutively #3899

Open
2 tasks done
WannaTen opened this issue Sep 16, 2024 · 1 comment
Open
2 tasks done
Labels
bug Something isn't working

Comments

@WannaTen
Copy link
Contributor

Is there an existing issue for the same bug?

Describe the bug

I activated confirmation mode while in browser mode. When the confirmation button shows up on the left, double-clicking(or even more clicks) it causes the agent to halt every time. To resume, I have to click the 'pause' button in the lower-left corner, then click 'continue'.

Current OpenHands version

0.9.3

Installation and Configuration

not used any command or specific configuration.

Model and Agent

No response

Operating System

WSL

Reproduction Steps

  1. open webUI
  2. open Confirm Mode with CodeActagent
  3. click the confirm button twice or more
  4. stuck....

Logs, Errors, Screenshots, and Additional Context

click it twice or more:
image

then the logger output like this, output two NullObservation, which made the whole process stuck:
image

The logger output is from the code I added for debug:
image

only after I clicked pause then continue, the whole process continue:
image

@WannaTen WannaTen added the bug Something isn't working label Sep 16, 2024
@WannaTen
Copy link
Contributor Author

23:36:38 - openhands:INFO: session.py:139 - Server event
23:36:38 - OBSERVATION
AgentStateChangedObservation(content='', agent_state=<AgentState.RUNNING: 'running'>, observation='agent_state_changed')
23:36:38 - openhands:INFO: session.py:139 - Server event
23:36:38 - OBSERVATION
AgentStateChangedObservation(content='', agent_state='user_confirmed', observation='agent_state_changed')
23:36:38 - openhands:INFO: session.py:139 - Server event
23:36:38 - OBSERVATION
NullObservation(content='', observation='null')
23:36:38 - OBSERVATION
NullObservation(content='', observation='null')
23:36:38 - openhands:INFO: runtime.py:307 -
-----------------------------------Container logs:-----------------------------------
    |INFO:     172.17.0.1:40520 - "GET /alive HTTP/1.1" 200 OK
    |INFO:     172.17.0.1:40524 - "POST /execute_action HTTP/1.1" 200 OK
--------------------------------------------------------------------------------
23:36:38 - openhands:INFO: runtime.py:414 - Awaiting session
23:36:38 - openhands:INFO: runtime.py:307 -
-----------------------------------Container logs:-----------------------------------
    |INFO:     172.17.0.1:58818 - "GET /alive HTTP/1.1" 200 OK
    |INFO:     172.17.0.1:58822 - "POST /list_files HTTP/1.1" 200 OK
--------------------------------------------------------------------------------
INFO:     127.0.0.1:58926 - "GET /api/list-files HTTP/1.1" 200 OK
23:36:38 - openhands:INFO: runtime.py:307 -
-----------------------------------Container logs:-----------------------------------
    |INFO:     172.17.0.1:58836 - "GET /alive HTTP/1.1" 200 OK
    |INFO:     172.17.0.1:58848 - "POST /execute_action HTTP/1.1" 200 OK
--------------------------------------------------------------------------------
23:36:38 - openhands:INFO: runtime.py:414 - Awaiting session
23:36:38 - openhands:INFO: runtime.py:307 -
-----------------------------------Container logs:-----------------------------------
    |INFO:     172.17.0.1:58858 - "GET /alive HTTP/1.1" 200 OK
    |INFO:     172.17.0.1:58870 - "POST /list_files HTTP/1.1" 200 OK
--------------------------------------------------------------------------------
INFO:     127.0.0.1:58939 - "GET /api/list-files HTTP/1.1" 200 OK
23:36:38 - openhands:INFO: runtime.py:307 -
-----------------------------------Container logs:-----------------------------------
    |INFO:     172.17.0.1:58874 - "GET /alive HTTP/1.1" 200 OK
    |INFO:     172.17.0.1:58880 - "POST /execute_action HTTP/1.1" 200 OK
--------------------------------------------------------------------------------
23:36:39 - openhands:INFO: runtime.py:414 - Awaiting session
23:36:39 - openhands:INFO: runtime.py:307 -
-----------------------------------Container logs:-----------------------------------
    |INFO:     172.17.0.1:58892 - "GET /alive HTTP/1.1" 200 OK
    |INFO:     172.17.0.1:58906 - "POST /list_files HTTP/1.1" 200 OK
--------------------------------------------------------------------------------
INFO:     127.0.0.1:58926 - "GET /api/list-files HTTP/1.1" 200 OK
23:41:41 - OBSERVATION
AgentStateChangedObservation(content='', agent_state='paused', observation='agent_state_changed')
23:41:41 - openhands:INFO: session.py:139 - Server event
23:41:41 - OBSERVATION
NullObservation(content='', observation='null')
23:41:41 - openhands:INFO: runtime.py:307 -
-----------------------------------Container logs:-----------------------------------
    |INFO:     172.17.0.1:58918 - "GET /alive HTTP/1.1" 200 OK
    |INFO:     172.17.0.1:58928 - "POST /execute_action HTTP/1.1" 200 OK
--------------------------------------------------------------------------------
23:41:41 - openhands:INFO: runtime.py:414 - Awaiting session
INFO:     127.0.0.1:59511 - "GET /api/list-files HTTP/1.1" 200 OK
23:41:50 - OBSERVATION
AgentStateChangedObservation(content='', agent_state='running', observation='agent_state_changed')
23:41:50 - openhands:INFO: session.py:139 - Server event
23:41:50 - OBSERVATION
NullObservation(content='', observation='null')
23:41:50 - openhands:INFO: runtime.py:307 -

-----------------------------------Container logs:-----------------------------------
    |INFO:     172.17.0.1:38586 - "GET /alive HTTP/1.1" 200 OK
    |INFO:     172.17.0.1:38602 - "POST /list_files HTTP/1.1" 200 OK
    |INFO:     172.17.0.1:38604 - "GET /alive HTTP/1.1" 200 OK
    |INFO:     172.17.0.1:38620 - "POST /execute_action HTTP/1.1" 200 OK
--------------------------------------------------------------------------------
23:41:50 - openhands:INFO: runtime.py:414 - Awaiting session
23:41:50 - openhands:INFO: runtime.py:307 -
-----------------------------------Container logs:-----------------------------------
    |INFO:     172.17.0.1:50862 - "GET /alive HTTP/1.1" 200 OK
    |INFO:     172.17.0.1:50878 - "POST /list_files HTTP/1.1" 200 OK
--------------------------------------------------------------------------------

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant