All-Hands-AI / OpenHands

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

[Bug]: Logs are not printed out in headless command line mode #4819

Open neubig opened 2 hours ago

neubig commented 2 hours ago

Is there an existing issue for the same bug?

Describe the bug and reproduction steps

Currently, in headless command line mode, logs of what the agents are doing is not printed out. This should be fixed.

To do so, it'd be good to first look at the documentation for headless mode, and then find a good place to add a subscription to the event stream like the following:

    async def on_event(evt):
        logger.info(evt)
    runtime.event_stream.subscribe(EventStreamSubscriber.MAIN, on_event, str(uuid4()))

OpenHands Installation

Development workflow

OpenHands Version

No response

Operating System

None

Logs, Errors, Screenshots, and Additional Context

No response

github-actions[bot] commented 2 hours ago

OpenHands started fixing the issue! You can monitor the progress here.

github-actions[bot] commented 2 hours ago

A potential fix has been generated and a draft PR #4821 has been created. Please review the changes.