Checks
Strands Version
1.34.1
Python Version
3.13
Operating System
n/a
Installation Method
pip
Steps to Reproduce
The bidi agent loop hardcodes "role": "user" when appending messages from a BidiTextInputEvent, ignoring the event's role property entirely. This means callers who construct a BidiTextInputEvent with role="assistant" (e.g., for injecting assistant context into the conversation history) have that role silently overwritten. The role parameter on BidiTextInputEvent exists specifically to support this — it should be used.
Expected Behavior
The event role attribute should be respected in the bidi agent loop.
Actual Behavior
The hard coded value overrides the role.
Additional Context
No response
Possible Solution
1 line fix -
#2083
Related Issues
No response