---
type: email
from: "chatgpt-codex-connector[bot]" <notifications@github.com>
subject: Re: [openai/openai-agents-python] feat: Support Anthropic extended

 thinking and interleaved thinking (PR #1744)
received: 2026-03-06 07:35:00
date_header: Mon, 15 Sep 2025 04:53:14 -0700
priority: normal
status: awaiting_approval
uid: 30454
---

## Email Content

**From:** "chatgpt-codex-connector[bot]" <notifications@github.com>
**Subject:** Re: [openai/openai-agents-python] feat: Support Anthropic extended

 thinking and interleaved thinking (PR #1744)
**Date:** Mon, 15 Sep 2025 04:53:14 -0700

### Body (preview)

@chatgpt-codex-connector[bot] commented on this pull request.







> +            # 7) reasoning message => extract thinking blocks if present

+            elif reasoning_item := cls.maybe_reasoning_message(item):

+                # Reconstruct thinking blocks from content (text) and encrypted_content (signature)

+                content_items = reasoning_item.get("content", [])

+                signature = reasoning_item.get("encrypted_content")

+

+                if content_items:

+                    # Reconstruct thinking blocks from content and signature

+                    pending_thinking_blocks = []

+                    for content_item in content_items:

+                        if (

+                            isinstance(content_item, dict)

+                            and content_item.get("type") == "reasoning_text"

+                        ):

+                            thinking_block = {

+                                "type": "thinking",

+                                "thinking": content_item.get("text", ""),

+                            }

+                            # Add signature if available

+                            if signature:

+                                thinking_block["signature"] = signature



To use Codex here, [create an environment for this repo](https://chatgpt.com/codex/settings/environments).



-- 

Reply to this email directly or view it on GitHub:

https://github.com/openai/openai-agents-python/pull/1744#discussion_r2348754811

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



Message ID: <openai/openai-agents-python/pull/1744/review/3224241744@github.com>

---

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