Skip to content

fix(openai-agents): Patch correct run_single_turn_streamed reference - #7032

Open
alexander-alderman-webb wants to merge 2 commits into
webb/use-agent-hooksfrom
webb/fix-run_single_turn_streamed-patch
Open

fix(openai-agents): Patch correct run_single_turn_streamed reference#7032
alexander-alderman-webb wants to merge 2 commits into
webb/use-agent-hooksfrom
webb/fix-run_single_turn_streamed-patch

Conversation

@alexander-alderman-webb

@alexander-alderman-webb alexander-alderman-webb commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Summary

The run_single_turn_streamed() function is used in agents.run_internal.run_loop, unlike run_single_turn(). See

https://github.com/openai/openai-agents-python/blob/19e364c17344905ce6d17f41ea4fe084cba20388/src/agents/run_internal/run_loop.py#L1231

The integration previously created a reference that doesn't otherwise exist in openai-agents.

Add assertions on the Invoke Agent span in test_run_streamed_tool_execution_span().

Add a new test_run_streamed_error_handling() test, adapted from the test_error_handling() test with AgentRunner.run() replaced by AgentRunner.run_streamed().

Issues

Reminders

@alexander-alderman-webb alexander-alderman-webb changed the title fix(openai-agents): Patch correct run_single_turn_streamed reference fix(openai-agents): Patch correct run_single_turn_streamed reference Aug 4, 2026
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Codecov Results 📊

95222 passed | ⏭️ 6343 skipped | Total: 101565 | Pass Rate: 93.75% | Execution Time: 342m 38s

📊 Comparison with Base Branch

Metric Change
Total Tests 📉 -93
Passed Tests 📉 -197
Failed Tests
Skipped Tests 📈 +104

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 2500 uncovered lines.
✅ Project coverage is 89.95%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    89.94%    89.95%    +0.01%
==========================================
  Files          193       193         —
  Lines        24817     24879       +62
  Branches      8914      8930       +16
==========================================
+ Hits         22320     22379       +59
- Misses        2497      2500        +3
- Partials      1414      1421        +7

Generated by Codecov Action

@alexander-alderman-webb
alexander-alderman-webb marked this pull request as ready for review August 4, 2026 15:10
@alexander-alderman-webb
alexander-alderman-webb requested a review from a team as a code owner August 4, 2026 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant