You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BUG: fill_adversarial_placeholders drops converted values and metadata of passed through pieces #3301
_ModalityFeedbackRouter.fill_adversarial_placeholders documents that non-placeholder pieces are passed through unchanged, but the rebuild only carries original_value and original_value_data_type. The converted_value, converted_value_data_type, and prompt_metadata of a passed through piece are dropped, and the model validator backfills converted_value from the original.
A caller supplied follow-up message whose media piece was already converted (for example a resized or re-encoded file path from an earlier turn) therefore sends the unconverted file to the objective target, and any metadata on the piece is lost.
The sibling builder used by the same router forwards converted_value when it builds multimodal messages, so the pass-through branch is the outlier.
Expected behavior
Passed through pieces should keep their converted values, data types, and prompt metadata, as the docstring already promises.
Activity