Skip to content

fix: preserve title and description in ToolCallItem.to_input_item() #2777

Closed
k1eran wants to merge 1 commit intoopenai:mainfrom
k1eran:fix/tool-call-item-session-metadata
Closed

fix: preserve title and description in ToolCallItem.to_input_item() #2777
k1eran wants to merge 1 commit intoopenai:mainfrom
k1eran:fix/tool-call-item-session-metadata

Conversation

@k1eran
Copy link
Contributor

@k1eran k1eran commented Mar 25, 2026

Fixes #2776

@github-actions github-actions bot added bug Something isn't working feature:core labels Mar 25, 2026
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0e88b687b5

ℹ️ 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".

@k1eran k1eran force-pushed the fix/tool-call-item-session-metadata branch from 0e88b68 to 4c63357 Compare March 25, 2026 22:57
@seratch seratch added this to the 0.13.x milestone Mar 26, 2026
Copy link
Member

@seratch seratch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you; LGTM

Copy link
Member

@seratch seratch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, the typecheck and test errors need to be resolved

@felmonon
Copy link
Contributor

I think the current typecheck and test failures may be a sign that this fix is landing a bit too high in the stack. ToolCallItem.to_input_item() looks like it is used for normal replay/model input too, not just session persistence, so adding title / description here seems to change regular tool-call payloads as well. That would also line up with the new description: "" diffs and the typed input-item errors. Maybe the safer fix is to preserve this metadata in the session path while keeping the shared input shape unchanged.

@seratch
Copy link
Member

seratch commented Mar 26, 2026

Yeah, you're right. I am exploring an alternative on my end.

@seratch seratch marked this pull request as draft March 26, 2026 04:26
@seratch seratch removed this from the 0.13.x milestone Mar 26, 2026
@k1eran
Copy link
Contributor Author

k1eran commented Mar 26, 2026

Closing in light of #2781 , seratch's approach of stripping SDK metadata at the persistence/API boundary. Thanks @felmonon for the feedback on the layering issue.

@k1eran k1eran closed this Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working feature:core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ToolCallItem.to_input_item() drops title and description on session persistence

3 participants