HF RL Explorer

Bug Report: NullPointerException when using AgentListener with TokenStream

Bug Report: NullPointerException when using AgentListener with TokenStream: a task in LegoFlow-SWE (Harbor dataset). When combining an AgentListener with TokenStream (streaming) responses, the framework throws a NullPointerException . The error occurs because the agentic scope is retrieved from…

The task

When combining an `AgentListener` with `TokenStream` (streaming) responses, the framework throws a `NullPointerException`. The error occurs because the agentic scope is retrieved from the current thread’s managed context, which is `null` in asynchronous streaming scenarios.

Part of Lego-X/LegoFlow-SWE.