Skip to content

Include agent in ToolContext tool calls#2446

Merged
rm-openai merged 2 commits intomainfrom
codex/reapply-toolcontext-agent
Feb 9, 2026
Merged

Include agent in ToolContext tool calls#2446
rm-openai merged 2 commits intomainfrom
codex/reapply-toolcontext-agent

Conversation

@rm-openai
Copy link
Collaborator

Summary

  • propagate the current Agent into every new ToolContext, including realtime session and tool execution paths
  • extend ToolContext to accept an agent keyword, preserve backwards-compatible constructors, and add regression/unit coverage for the new behavior
    Testing
  • Not run (not requested)

@rm-openai
Copy link
Collaborator Author

@codex review, and make sure things are backward compatible

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Keep them coming!

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@rm-openai rm-openai merged commit d2e9c93 into main Feb 9, 2026
10 checks passed
@rm-openai rm-openai deleted the codex/reapply-toolcontext-agent branch February 9, 2026 16:00
@seratch seratch added this to the 0.8.x milestone Feb 9, 2026
@scott-harveyai
Copy link

Thanks for adding this! Super useful

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.

3 participants