codex - 💡(How to fix) Fix Regression: pasting files from Finder no longer exposes local filename/path to Codex [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#19312Fetched 2026-04-24 10:38:43
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×3unlabeled ×1

Root Cause

Previously, if I copied a file in Finder and pasted into Codex, the paste inserted the filename/path. That was very useful in coding workflows, because the agent could then access the actual local file in the project or elsewhere on disk when I was working in a shared local workspace.

RAW_BUFFERClick to expand / collapse

What version of Codex CLI is running?

codex-cli 0.123.0

What subscription do you have?

Plus

Which model were you using?

gpt-5.4

What platform is your computer?

Darwin 25.4.0 arm64 arm

What terminal emulator and version are you using (if applicable)?

mac default terminal (zsh?)

What issue are you seeing?

There appears to have been a recent change in paste behaviour when copying files from Finder into Codex.

Previously, if I copied a file in Finder and pasted into Codex, the paste inserted the filename/path. That was very useful in coding workflows, because the agent could then access the actual local file in the project or elsewhere on disk when I was working in a shared local workspace.

Now, pasting the same file appears to attach the image/file content itself instead, and the original filename is no longer exposed in the conversation. For image files in particular, Codex only sees a generic attachment label such as Image #1 rather than the real local filename.

This is a regression for code-project workflows. A common case is that I prepare or export assets locally, for example screenshots, logos, icons, or other files inside a project directory, and then paste them into Codex expecting the agent to be able to locate and use the file directly. Without the filename/path, the agent cannot reference the actual file in the filesystem, cannot reliably update project code to use that asset, and has to ask me to manually provide the path. That adds friction and breaks a workflow that previously worked smoothly.

In my current case, I was working on an app project with local branded image assets. If paste had still exposed the filename/path, Codex could have directly switched the project to use the correct asset file. Instead, because the paste now hides the filename, the agent could only see a generic attached image and could not know which file in the project it corresponded to.

Please consider either:

  1. restoring the previous behaviour where Finder paste exposes the local filename/path,
  2. exposing the original local filename/path alongside the attachment metadata in chat, or
  3. providing an explicit “paste as file reference/path” option for local files.

For coding agents working against a real local codebase, access to the local filename/path is important, not just the rendered attachment content.

What steps can reproduce the bug?

Uploaded thread: 019dba93-f85e-74a1-855a-7f1db1531098

What is the expected behavior?

No response

Additional information

No response

extent analysis

TL;DR

The issue can be mitigated by providing an explicit option to paste files as file references or paths, allowing Codex to access the original local filename/path.

Guidance

  • Consider adding a "paste as file reference/path" option for local files to restore the previous functionality.
  • Exposing the original local filename/path alongside the attachment metadata in chat could also resolve the issue.
  • The Codex team may need to update the paste behavior to handle files copied from Finder, potentially involving changes to how file metadata is handled.
  • Users can provide feedback on the desired behavior, such as restoring the previous paste behavior or implementing one of the suggested workarounds.

Example

No code snippet is provided as the issue is related to the Codex CLI behavior and not a specific code implementation.

Notes

The issue is specific to the Codex CLI version 0.123.0 and the gpt-5.4 model, and may not affect other versions or models. The desired behavior is to access the local filename/path when pasting files from Finder.

Recommendation

Apply workaround: Provide an explicit "paste as file reference/path" option for local files, as this would allow users to access the original local filename/path and restore the previous functionality.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Regression: pasting files from Finder no longer exposes local filename/path to Codex [1 participants]