---
type: email
from: Seth Gilchrist <notifications@github.com>
subject: [openai/openai-agents-python] Session objects not updated until final

 output (Issue #1551)
received: 2026-03-05 10:13:49
date_header: Thu, 21 Aug 2025 09:55:35 -0700
priority: normal
status: awaiting_approval
uid: 28309
---

## Email Content

**From:** Seth Gilchrist <notifications@github.com>
**Subject:** [openai/openai-agents-python] Session objects not updated until final

 output (Issue #1551)
**Date:** Thu, 21 Aug 2025 09:55:35 -0700

### Body (preview)

spokeydokeys created an issue (openai/openai-agents-python#1551)



### Describe the bug

I have a use case where I have an agents-as-tool that examine tool outputs and conversation history during a single completion. I need the tool to have access to other tool outputs and also the conversation with the user during the completion.



I was planning on exposing the other tool outputs and the conversation with the user via a shared `session`, however, this did not work. 



The current behavior is that the session is updated at final output only, not on each turn. This means that if an agent-as-tool is called as one of the tools during the completion, it does not have access to the other tools' outputs or the conversation that was part of that completion.



I have created #1550 which resolves this issue.



### Debug information

- Agents SDK version: `v0.2.8`

- Python version: Python 3.11 and 3.13



### Repro steps

PR #1550 provides an example file that demonstrates the behavior.



If you run the example provided in the PR against `main` with a break point on the `Runner.run` call in the `check_agent` (line 60 of `agents_as_tools_with_history.py`), you will see that the agent gets none of the outputs or user input from the current completion.



If you run this same file against PR, you will see that the `check_agent` gets the inputs needed to perform its job.



### Expected behavior

I expect the session to be updated within a completion after each turn, even if it's not the final output of the turn.



-- 

Reply to this email directly or view it on GitHub:

https://github.com/openai/openai-agents-python/issues/1551

You are receiving this because you are subscribed to this thread.



Message ID: <openai/openai-agents-python/issues/1551@github.com>

---

## Suggested Actions
- [ ] Reply
- [ ] Archive
- [ ] Escalate
