OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

[Bug]: Headless mode awaits for requested user feedback without showing any text for what that feedback should be

Open ryx2 opened this issue 3 months ago • 8 comments

Is there an existing issue for the same bug?

  • [X] I have checked the existing issues.

Describe the bug and reproduction steps

Command to run:

docker run -it \
    --pull=always \
    -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:0.13-nikolaik \
    -e SANDBOX_USER_ID=$(id -u) \
    -e WORKSPACE_MOUNT_PATH=$(pwd) \
    -e LLM_API_KEY=*** \
    -e LLM_MODEL="anthropic/claude-3-5-sonnet-20241022" \
    -v $WORKSPACE_BASE:/opt/workspace_base \
    -v /var/run/docker.sock:/var/run/docker.sock \
    --add-host host.docker.internal:host-gateway \
    --name openhands-app-$(date +%Y%m%d%H%M%S) \
    docker.all-hands.dev/all-hands-ai/openhands:0.13 \
    python -m openhands.core.main -t "the realtor_tour_scenario.test.ts is erroring, could you investigate? I think the erroring one is due to the message coming from the wrong POV" --debug true

output (happens twice):

0.13: Pulling from all-hands-ai/openhands
Digest: sha256:28307e6ef3ca477df56e0689c0fcaa8b6f073d018cf90c945317b5b76c8566cb
Status: Image is up to date for docker.all-hands.dev/all-hands-ai/openhands:0.13
Starting OpenHands...
Setting up enduser with id 501
Docker socket group id: 0
root:x:0:
Group with id 0 already exists
Running as enduser
03:16:36 - openhands:INFO: eventstream_runtime.py:220 - [runtime default-2a338e0f97031b24] Starting runtime with image: docker.all-hands.dev/all-hands-ai/runtime:0.13-nikolaik
03:16:36 - openhands:INFO: eventstream_runtime.py:224 - [runtime default-2a338e0f97031b24] Container started: openhands-runtime-default-2a338e0f97031b24
03:16:36 - openhands:INFO: eventstream_runtime.py:227 - [runtime default-2a338e0f97031b24] Waiting for client to become ready at http://host.docker.internal:38456...
03:16:54 - openhands:INFO: eventstream_runtime.py:233 - [runtime default-2a338e0f97031b24] Runtime is ready.
03:16:54 - openhands:WARNING: state.py:119 - Could not restore state from session: sessions/default-2a338e0f97031b24/agent_state.pkl
03:16:54 - openhands:INFO: agent_controller.py:193 - [Agent Controller default] Starting step loop...
03:16:54 - openhands:INFO: agent_controller.py:316 - [Agent Controller default] Setting agent(CodeActAgent) state from AgentState.LOADING to AgentState.RUNNING


==============
[Agent Controller default] LEVEL 0 LOCAL STEP 0 GLOBAL STEP 0



==============
[Agent Controller default] LEVEL 0 LOCAL STEP 1 GLOBAL STEP 1



==============
[Agent Controller default] LEVEL 0 LOCAL STEP 2 GLOBAL STEP 2

03:17:08 - openhands:INFO: agent_controller.py:316 - [Agent Controller default] Setting agent(CodeActAgent) state from AgentState.RUNNING to AgentState.AWAITING_USER_INPUT
Request user input >> the realtor_tour_scenario.test.ts is erroring, could you investigate? I think the erroring one is due to the message coming from the wrong POV, meaning the test is either using the wrong assistant, perhaps because it's not getting the right result for isRealtor                                                      
04:01:21 - openhands:INFO: agent_controller.py:316 - [Agent Controller default] Setting agent(CodeActAgent) state from AgentState.AWAITING_USER_INPUT to AgentState.RUNNING


==============
[Agent Controller default] LEVEL 0 LOCAL STEP 3 GLOBAL STEP 3

04:01:25 - openhands:INFO: agent_controller.py:316 - [Agent Controller default] Setting agent(CodeActAgent) state from AgentState.RUNNING to AgentState.AWAITING_USER_INPUT
Request user input >> ^C
Session terminated, killing shell...^C ...killed.
^C%       

Unsure exactly what it's awaiting request user input? it doesn't say what type of user input it wants

OpenHands Installation

Docker command in README

OpenHands Version

0.13

Operating System

None

Logs, Errors, Screenshots, and Additional Context

Executed this in the root of my typescript repo

ryx2 avatar Nov 15 '24 04:11 ryx2