---
type: email
from: Surfing Dev <notifications@github.com>
subject: Re: [openai/openai-agents-python] Context window management on long

 sessions (Issue #1539)
received: 2026-03-05 10:12:29
date_header: Wed, 20 Aug 2025 07:19:48 -0700
priority: normal
status: awaiting_approval
uid: 28184
---

## Email Content

**From:** Surfing Dev <notifications@github.com>
**Subject:** Re: [openai/openai-agents-python] Context window management on long

 sessions (Issue #1539)
**Date:** Wed, 20 Aug 2025 07:19:48 -0700

### Body (preview)

surfingdev left a comment (openai/openai-agents-python#1539)



**Additional note**: handling sessions manually is not easy. Pulling first items without much control (for example to reach a `last n` size criteria) might leave the session incompatible with AI (for example if the first message ends up being a tool result).



-- 

Reply to this email directly or view it on GitHub:

https://github.com/openai/openai-agents-python/issues/1539#issuecomment-3206622851

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



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

---

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