Skip to content

add encryptedcontent to functioncalloutput#23500

Merged
sayan-oai merged 4 commits into
mainfrom
dev/sayan/encrypted-fn-output
May 20, 2026
Merged

add encryptedcontent to functioncalloutput#23500
sayan-oai merged 4 commits into
mainfrom
dev/sayan/encrypted-fn-output

Conversation

@sayan-oai
Copy link
Copy Markdown
Collaborator

add new EncryptedContent variant to FunctionCallOutputContentItem ahead of standalone websearch.

we need to be able to receive and pass encrypted function call output from the new web search endpoint back to responsesapi, as we cannot expose direct search results.

@sayan-oai sayan-oai force-pushed the dev/sayan/encrypted-fn-output branch from be4776d to 72d06cf Compare May 19, 2026 16:42
@sayan-oai sayan-oai enabled auto-merge (squash) May 19, 2026 16:45
Copy link
Copy Markdown
Contributor

@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: be4776db4b

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread codex-rs/protocol/src/models.rs
Comment thread notes.md Outdated
@sayan-oai sayan-oai disabled auto-merge May 19, 2026 16:45
@sayan-oai
Copy link
Copy Markdown
Collaborator Author

@codex review this

Copy link
Copy Markdown
Contributor

@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: 48f2ddda7f

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +126 to +129
FunctionCallOutputContentItem::EncryptedContent { encrypted_content } => {
out.push(FunctionCallOutputContentItem::EncryptedContent {
encrypted_content: encrypted_content.clone(),
});
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P0 Badge Bound encrypted function output before replaying it

When a tool returns a large encrypted_content item, this new arm copies the whole blob even though truncate_function_output_items_with_policy is the path used by core/src/context_manager/history.rs to trim function-call outputs before they are kept/replayed in model context. Text output consumes remaining_budget, but encrypted content is now an unbounded model-context item; standalone web search payloads can easily exceed the >1k-token manual-review threshold from .codex/skills/code-review-context/SKILL.md and can push requests over context/API limits. Please apply a hard cap or route these opaque blobs through a bounded/non-context path instead of preserving them unconditionally.

Useful? React with 👍 / 👎.

@sayan-oai sayan-oai requested a review from a team as a code owner May 19, 2026 18:05
@sayan-oai sayan-oai merged commit 34aad43 into main May 20, 2026
31 checks passed
@sayan-oai sayan-oai deleted the dev/sayan/encrypted-fn-output branch May 20, 2026 06:47
@github-actions github-actions Bot locked and limited conversation to collaborators May 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants