FINALLY managed to get a test case built that reproduces behavior where the agent-server event search API hangs while commands are running
https://github.com/OpenHands/software-agent-sdk/pull/2296
The issue is definitely with the state lock. @straight-sundown-84319 I think you implemented this. IMO we should be able to retrieve events without locking, but I could be missing something
👀 1
s
straight-sundown-84319
03/04/2026, 8:39 PM
Yeah - I'm just reviewing the EventLog class iteration - without acquiring the lock there could be the potential to miss the last event if the
_length
is in the process of being updated.
But this is acceptable
straight-sundown-84319
03/04/2026, 8:40 PM
I actually think it is the same logic without the lock