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(agents): output_item.added/done handler flushes buffered text without valid phase — commentary leaks on OpenAI Responses stream #61814
When the OpenAI Responses adapter receives output_item.added or output_item.done events, the handler flushes any buffered text content without checking whether the current phase is user-visible. This means commentary/work-note text accumulated during tool-calling phases gets emitted to user-facing channels.
Root cause
The flush path in the output_item event handlers does not consult currentPhase before forwarding buffered text blocks. The phase-gate check only exists on the response.text.delta / response.text.done paths but not on the item-level flush.
Impact
Internal commentary text leaks to end users on messaging channels (Telegram, Feishu, etc.)
Affects OpenAI Responses API stream adapter specifically
Intermittent — only triggers when text is buffered before an output_item boundary
Closing as fixed by #61829, which merged in bbd0702.
Your root-cause writeup lines up with the patch we merged: phase-aware visible-text hardening in the OpenAI Responses path, including the buffered-text / output-item flush family and the related history sanitization follow-through.
Activity
steipete commentedon Apr 6, 2026
Closing as fixed by #61829, which merged in bbd0702.
Your root-cause writeup lines up with the patch we merged: phase-aware visible-text hardening in the OpenAI Responses path, including the buffered-text / output-item flush family and the related history sanitization follow-through.