Skip to content

Avoid retaining decoded MCP images in history cells#34206

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

Avoid retaining decoded MCP images in history cells#34206
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/b2c12d08e8ba281d2bb993a8524d338c26d52b96

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 19, 2026

Copy link
Copy Markdown

Avoid retaining decoded MCP images in history cells

Why

The MCP image output cell only renders a fixed placeholder, so it does not need
to keep the decoded image alive for the lifetime of the history cell.

What changed

Decode image content to validate it, then return a marker cell without storing
the resulting DynamicImage. The rendered history output remains unchanged.

## Why

The MCP image output cell only renders a fixed placeholder, so it does not need
to keep the decoded image alive for the lifetime of the history cell.

## What changed

Decode image content to validate it, then return a marker cell without storing
the resulting `DynamicImage`. The rendered history output remains unchanged.

GitOrigin-RevId: b2c12d08e8ba281d2bb993a8524d338c26d52b96
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/b2c12d08e8ba281d2bb993a8524d338c26d52b96 branch from cea0bd9 to 3e2f797 Compare July 19, 2026 17:37
@copyberry
copyberry Bot merged commit 3e2f797 into main Jul 19, 2026
32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/b2c12d08e8ba281d2bb993a8524d338c26d52b96 branch July 19, 2026 17:38
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 19, 2026
@bma-d
bma-d temporarily deployed to issue-triage July 19, 2026 18:31 — with GitHub Actions Inactive
@bma-d
bma-d temporarily deployed to issue-triage July 19, 2026 18:31 — with GitHub Actions Inactive
@bma-d
bma-d temporarily deployed to issue-triage July 19, 2026 18:31 — with GitHub Actions Inactive
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.

9 participants