codex - 💡(How to fix) Fix Codex Desktop: Pasted text.txt attachments cannot be previewed or edited inside the app

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…

In the Codex macOS app, when I paste a large amount of text into the prompt composer, Codex automatically turns it into a generated attachment named Pasted text.txt. However, this generated paste document cannot be directly expanded, previewed, edited, or reverted back to editable prompt text inside the Codex app.

This makes the automatic paste-to-file behavior much less convenient than plain text pasting, especially when I need to quickly review or adjust the pasted content before sending the prompt.

Root Cause

Large pasted prompts are common when reporting bugs, comparing code, sharing logs, or giving Codex project instructions. The current behavior forces an unnecessary external-app round trip just to inspect or modify pasted content. This is slower and less convenient than editing the content directly in the Codex composer.

RAW_BUFFERClick to expand / collapse

Summary

In the Codex macOS app, when I paste a large amount of text into the prompt composer, Codex automatically turns it into a generated attachment named Pasted text.txt. However, this generated paste document cannot be directly expanded, previewed, edited, or reverted back to editable prompt text inside the Codex app.

This makes the automatic paste-to-file behavior much less convenient than plain text pasting, especially when I need to quickly review or adjust the pasted content before sending the prompt.

Environment

  • Variant: Codex macOS app
  • App version: 26.527.31326 (3390)
  • Mode shown in UI: Full access / Work locally
  • Model shown in UI: GPT-5.5 Extra High

Steps to reproduce

  1. Open the Codex macOS app.
  2. Paste a large amount of text into the prompt composer.
  3. Codex automatically creates a generated attachment named Pasted text.txt instead of keeping the pasted content directly editable in the composer.
  4. Try to click the generated Pasted text.txt attachment.
  5. Try to right-click the generated attachment and look for preview, edit, expand, remove/cancel, or revert-to-inline-text actions.

Actual behavior

  • Clicking the generated Pasted text.txt attachment opens Finder or another external IDE/editor depending on the user's preferred IDE settings.
  • The attachment does not open as an in-app preview or in-app editable document.
  • Right-clicking the attachment does not provide useful Codex-specific actions. The context menu I see only includes generic macOS options such as Look Up, Search with Google, and Copy.
  • I cannot directly inspect and modify the automatically generated pasted-text document inside the Codex app before sending.
  • I also cannot conveniently undo/revert the automatic conversion back into normal editable composer text.

Expected behavior

Codex should support direct in-app handling for automatically generated pasted-text attachments. For example:

  • Clicking Pasted text.txt should open an in-app preview or editor by default.
  • The attachment context menu should include actions such as:
    • Preview / Expand
    • Edit in Codex
    • Revert to inline prompt text
    • Replace pasted content
    • Remove attachment / cancel generated document
    • Open in Finder or external IDE as an optional secondary action
  • Users should be able to quickly review and adjust the pasted text without leaving Codex.

Why this matters

Large pasted prompts are common when reporting bugs, comparing code, sharing logs, or giving Codex project instructions. The current behavior forces an unnecessary external-app round trip just to inspect or modify pasted content. This is slower and less convenient than editing the content directly in the Codex composer.

Suggested fix

Add first-class in-app preview/edit support for generated paste attachments, and add explicit attachment actions in the context menu. The most useful workflow would be:

  1. Paste large text.
  2. Codex creates Pasted text.txt.
  3. User clicks the attachment.
  4. Codex opens an in-app text preview/editor.
  5. User can save edits, revert the attachment to inline composer text, remove it, or optionally open it externally.

This would preserve the benefits of automatic paste-to-file conversion while avoiding the current usability regression.

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…

FAQ

Expected behavior

Codex should support direct in-app handling for automatically generated pasted-text attachments. For example:

  • Clicking Pasted text.txt should open an in-app preview or editor by default.
  • The attachment context menu should include actions such as:
    • Preview / Expand
    • Edit in Codex
    • Revert to inline prompt text
    • Replace pasted content
    • Remove attachment / cancel generated document
    • Open in Finder or external IDE as an optional secondary action
  • Users should be able to quickly review and adjust the pasted text without leaving Codex.

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 Codex Desktop: Pasted text.txt attachments cannot be previewed or edited inside the app