Skip to content

Preserve encrypted content in MCP tool outputs - #33509

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/c3997a16b06ad38ff22b21016ede35b97974d9ec
Jul 16, 2026
Merged

Preserve encrypted content in MCP tool outputs#33509
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/c3997a16b06ad38ff22b21016ede35b97974d9ec

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 16, 2026

Copy link
Copy Markdown

Preserve encrypted content in MCP tool outputs

What changed

  • Convert MCP text content marked with _meta["codex/encryptedContent"] = true
    into encrypted_content function call output items.
  • Prefer the content-item payload whenever encrypted content is present so that
    structured_content does not replace the encrypted output.

Testing

  • Add a stdio MCP integration test that round-trips mixed plaintext and
    encrypted tool output.

## What changed

- Convert MCP text content marked with `_meta["codex/encryptedContent"] = true`
  into `encrypted_content` function call output items.
- Prefer the content-item payload whenever encrypted content is present so that
  `structured_content` does not replace the encrypted output.

## Testing

- Add a stdio MCP integration test that round-trips mixed plaintext and
  encrypted tool output.

GitOrigin-RevId: c3997a16b06ad38ff22b21016ede35b97974d9ec
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/c3997a16b06ad38ff22b21016ede35b97974d9ec branch from 9fc1ddb to cbc83d9 Compare July 16, 2026 05:39
@copyberry
copyberry Bot merged commit cbc83d9 into main Jul 16, 2026
14 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/c3997a16b06ad38ff22b21016ede35b97974d9ec branch July 16, 2026 05:40
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 16, 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.