Skip to content

Filter code interpreter calls from nested handoff input#3623

Open
its-amann wants to merge 1 commit into
openai:mainfrom
its-amann:drop-orphan-code-interpreter-items
Open

Filter code interpreter calls from nested handoff input#3623
its-amann wants to merge 1 commit into
openai:mainfrom
its-amann:drop-orphan-code-interpreter-items

Conversation

@its-amann

Copy link
Copy Markdown

Summary

  • Treat code_interpreter_call as summary-only when nested handoff history is enabled.
  • Keep the code interpreter call visible in the generated conversation summary, but do not forward it as a raw input_items entry to the next agent.
  • Add a regression test for a reasoning + code interpreter + handoff sequence.

Fixes #985.

Tests

uv run pytest tests/test_handoff_history_duplication.py tests/test_extension_filters.py -q
53 passed in 0.35s
uv run ruff check src/agents/handoffs/history.py tests/test_handoff_history_duplication.py
All checks passed!
uv run ruff format --check src/agents/handoffs/history.py tests/test_handoff_history_duplication.py
2 files already formatted

@its-amann

Copy link
Copy Markdown
Author

Added current local verification from head fd8ae4f:

$ uv run pytest tests/test_handoff_history_duplication.py tests/test_extension_filters.py -q
53 passed in 0.99s

$ uv run ruff check src/agents/handoffs/history.py tests/test_handoff_history_duplication.py
All checks passed!

$ uv run ruff format --check src/agents/handoffs/history.py tests/test_handoff_history_duplication.py
2 files already formatted

uv prints a warning about parsing the repo's exclude-newer = "7 days" setting with the installed uv version, but the targeted tests and checks finish successfully.

@594807047-cpu

594807047-cpu commented Jun 11, 2026 via email

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error "Item ‘rs_ABCD’ of type ‘reasoning’ was provided without its required..." when using CodeInterpreter

3 participants