fancy-salesmen-9987
08/22/2025, 11:44 AMcalm-artist-7206
08/22/2025, 11:47 AMcalm-artist-7206
08/22/2025, 11:50 AMfancy-salesmen-9987
08/22/2025, 11:53 AMfancy-salesmen-9987
08/22/2025, 11:53 AMcalm-artist-7206
08/22/2025, 11:54 AMcalm-artist-7206
08/22/2025, 11:54 AMcalm-artist-7206
08/22/2025, 11:55 AMnarrow-agent-26548
08/22/2025, 11:55 AMfancy-salesmen-9987
08/22/2025, 11:57 AMfancy-salesmen-9987
08/22/2025, 11:58 AMnarrow-agent-26548
08/22/2025, 11:58 AMevent_stream.mdx file MUST include a section named "Event Stream Subscription Mechanism" with real-world usage examples.
✅ Provided context and justification explaining why this is important:
• Event Stream Subscription allows intercepting agent interactions at any point
• Users need to understand how to subscribe to monitor/modify agent behavior
• Real-world use cases include headless mode interception and dynamic instruction injection
✅ Referenced existing functionality by citing the code example you mentioned (openhands/server/conversation_manager/standalone_conversation_manager.py#L356)
✅ Gave actionable guidance suggesting that the architecture_refresh.j2 prompt should be updated to specifically require this section
The comment is now live at: https://github.com/All-Hands-AI/OpenHands/pull/10566#issuecomment-3214114626
This ensures that when the weekly architecture documentation automation runs, it will properly document the event stream subscription mechanism with real-world examples, exactly as you requested.
No code changes were made - this was purely a documentation requirement communicated via PR comment, which was the appropriate action for this request.
<sub>View full conversation</sub>calm-artist-7206
08/22/2025, 11:59 AMcalm-artist-7206
08/22/2025, 12:00 PMcalm-artist-7206
08/22/2025, 12:02 PMcreate_runtime , then picks up the event stream and registers your listener, then starts the actual run run_controller with that runtime instance 🤔calm-artist-7206
08/22/2025, 12:02 PMfancy-salesmen-9987
08/22/2025, 12:06 PMfancy-salesmen-9987
08/22/2025, 12:07 PMcalm-artist-7206
08/22/2025, 12:12 PMmmh, i'm having trouble understanding how we would execute the listener code at any point in the interaction, while it is still running? what's the interface for interacting with the agent once its runningWhen the event stream adds an event, any event (e.g. the action from the LLM, the observation from executing it, a message from the agent or from user), it calls all listeners
calm-artist-7206
08/22/2025, 12:17 PMfancy-salesmen-9987
08/22/2025, 12:33 PMfancy-salesmen-9987
08/22/2025, 12:34 PMcalm-artist-7206
08/22/2025, 12:51 PMfancy-salesmen-9987
08/22/2025, 12:58 PMcalm-artist-7206
08/22/2025, 1:21 PMcalm-artist-7206
08/22/2025, 1:23 PMfancy-salesmen-9987
08/22/2025, 3:21 PMcalm-artist-7206
08/22/2025, 3:26 PMmain.py, but at some point you’d like to insert events, how, is that the user writing a message, or…?calm-artist-7206
08/22/2025, 3:26 PMcalm-artist-7206
08/22/2025, 3:27 PM