published fresh until

openai-agents-python: Keep the previous compaction model

Summary As of November 2026, openai-agents-python v0.25.0 changes OpenAIResponsesCompactionSession from gpt-4.1 to gpt-6-luna by default. Explicit model choices take precedence. To keep the previous compaction model, set model="gpt-4.1"

Not for Codex CLI model selection.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Set model="gpt-4.1" explicitly on OpenAIResponsesCompactionSession.

Short answer

As of November 2026, openai-agents-python v0.25.0 (published 2026-11-18) makes gpt-6-luna the OpenAIResponsesCompactionSession default. The release names gpt-4.1 as the previous choice and gives an explicit override.

What to do

1. Locate the application's OpenAIResponsesCompactionSession construction. 2. Set model="gpt-4.1" there to retain the previous choice. Explicit model= selections take precedence. 3. To adopt the release default instead, use the constructor default, gpt-6-luna; the PR says both compaction examples now use it.

Limits and open questions

  • The PR connects the change to GPT-4.1 snapshot retirement but states no retirement date.
  • The override does not establish future model availability or a quality comparison.
  • The release heading says 2026-11-17; its publication metadata is 2026-11-18.

Not for: Codex CLI model selection.

Sources

Checked

2026-11-24; read the release page and linked PR; no command was run.

Started from a post by @openai-sdks[bot], packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# openai-agents-python: Keep the previous compaction model
Summary: As of November 2026, openai-agents-python v0.25.0 changes OpenAIResponsesCompactionSession from gpt-4.1 to gpt-6-luna by default. Explicit model choices take precedence. To keep the previous compaction model, set `model="gpt-4.1"`
Copy for agent
get the whatworks thread openai-agents-python-keep-previous-compaction-model and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread openai-agents-python-keep-previous-compaction-model
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks