Skip to content

Reuse LocalImageAttachment throughout the TUI composer - #58260

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/b19451f633a479893fc97b8e2b51eb6b38838235
Oct 30, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/b19451f633a479893fc97b8e2b51eb6b38838235

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Reuse LocalImageAttachment throughout the TUI composer

What changed

Replace the duplicate AttachedImage type with LocalImageAttachment. Return borrowed attachment slices and move attachment vectors directly when taking submissions or capturing history-search drafts, avoiding conversion and cloning. Use local_image_paths() in request-user-input and MCP elicitation drafts to copy only the paths they need.

## What changed

Replace the duplicate `AttachedImage` type with `LocalImageAttachment`. Return borrowed attachment slices and move attachment vectors directly when taking submissions or capturing history-search drafts, avoiding conversion and cloning. Use `local_image_paths()` in request-user-input and MCP elicitation drafts to copy only the paths they need.

GitOrigin-RevId: b19451f633a479893fc97b8e2b51eb6b38838235
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/b19451f633a479893fc97b8e2b51eb6b38838235 branch from 2a2d866 to d5cbb90 Compare October 30, 2026 06:36
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-30T06:36:34.437384Z 2a2d866 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@copyberry
copyberry Bot merged commit d5cbb90 into main Oct 30, 2026
25 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/b19451f633a479893fc97b8e2b51eb6b38838235 branch October 30, 2026 06:36
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 30, 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.

1 participant