Skip to content

muskan/externalize-images-codex-generates - #3151

Open
MuskanPaliwal wants to merge 9 commits into
mainfrom
muskan/externalize-images-codex-generates
Open

MuskanPaliwal wants to merge 9 commits into
mainfrom
muskan/externalize-images-codex-generates

Conversation

@MuskanPaliwal

Copy link
Copy Markdown
Contributor

This draft pull request was opened by Entire to back a trail. Feel free to edit the title or body, but keep the hidden marker below: Entire uses it to close this pull request when the trail closes.

Codex stores a generated image as bare base64 in image_generation_call.result, which only the data URI match looked for.

Entire-Checkpoint: 01M7863GM0MR3TF3B91AQZEAES
Copilot AI balanced review requested due to automatic review settings November 13, 2026 07:20

Copilot AI left a comment

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.

🟢 Approval recommended

The generated-image externalization change has no active review issues.

No open issues 🎉

What changed in this PR

Extends Entire CLI’s Codex transcript image externalization to include generated images stored as bare base64 in image_generation_call.result, alongside existing data-URI images.

Changes:

  • Collects generated image payloads for externalization, with media types detected from image bytes.
  • Adds unit coverage for byte-exact restoration and mixed pasted/generated images.
  • Extends the full-hook integration test to verify generated image storage and reinjection.
File Description
cmd/​entire/​cli/​transcript/​imageextract/​imageextract.go Recognizes generated image results during Codex image collection.
cmd/​entire/​cli/​transcript/​imageextract/​codex_test.go Tests generated image extraction and round-trip restoration.
cmd/​entire/​cli/​integration_test/​codex_image_externalize_test.go Verifies generated images are externalized and restored through the hook flow.

Review effort: Balanced

An image Codex generates whose bytes match no known type is stored as a .bin asset and still round-trips byte-exactly.

Entire-Checkpoint: 01M79XCJMXV1QBP5AJD5QQ3VAY
Generated images are bare base64 in image_generation_call.result, not data URIs; update the comments and the Codex row in the image table.

Entire-Checkpoint: 01M79ZWX2D2X50QX65JTT9ZGDC
@gtrrz-victor
gtrrz-victor marked this pull request as ready for review November 13, 2026 10:58
@gtrrz-victor
gtrrz-victor requested a review from a team as a code owner November 13, 2026 10:58
…ages-codex-generates

# Conflicts:
#	docs/security-and-privacy.md
Redaction skipped the whole item, so a secret in Codex's revised_prompt was stored as written.

Entire-Checkpoint: 01M7AC6GMS915489D71QSXGYGD
Externalizing swaps every copy of a value, so a non-image result copied into user text skipped redaction.

Entire-Checkpoint: 01M7AC6J0JH8S63SJXCZZ985B4
…f the walks

Entire-Checkpoint: 01M7AJGA90KW14QKADXSX1QMF7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants