All-Hands-AI / OpenHands

🙌 OpenHands: Code Less, Make More
https://all-hands.dev
MIT License
37.61k stars 4.25k forks source link

Show all actions in the message window #5190

Open rbren opened 1 week ago

rbren commented 1 week ago

End-user friendly description of the problem this fixes or functionality that this introduces


Give a summary of what the PR does, explaining any non-trivial design decisions

This shows a chat message every time the agent takes an action, including running commands, python, and reading and writing files (the latter two don't really seem to happen--I think the agent always uses python)

Details are hidden by default but can be shown with a click.

At first the message says e.g. "running a bash command", but changes to "ran a bash command" once the output is observed

Screenshot 2024-11-21 at 4 13 06 PM

Nov-21-2024 16-11-37


Link of any specific issues this addresses


To run this PR locally, use the following command:

docker run -it --rm   -p 3000:3000   -v /var/run/docker.sock:/var/run/docker.sock   --add-host host.docker.internal:host-gateway   -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:ab35d60-nikolaik   --name openhands-app-ab35d60   docker.all-hands.dev/all-hands-ai/openhands:ab35d60