Codex Desktop: "Failed to attach large pasted text" / Russian UI: "Не удалось прикрепить большой фрагмент вставленного текста"
What version of the Codex App are you using (From “About Codex” dialog)?
26.623.13972.0
What subscription do you have?
Plus
What platform is your computer?
Windows 10
What issue are you seeing?
Codex Desktop for Windows
Version: 26.623.13972.0
OS: Windows
Error: "Не удалось прикрепить большой фрагмент вставленного текста"
The error appears in any thread, including a brand-new thread.
Reinstalling Codex Desktop from Microsoft Store did not help.
Clearing local Codex app state/cache did not help.
Archiving old large threads did not help.
The same pasted text works in Cursor / other editors.
<img width="1121" height="993" alt="Image" src="https://github.com/user-attachments/assets/556b76e5-4e3b-4bba-9313-6dfa67120aff" />
It's just driving me crazy! it worked good until i upgraded the app - everything was broken after it - first i just cannot paste any text - even 10 rows - get "Failed to attach large pasted text" at once! I can paste only pics! Second - it started hang my laptop so Ctrl + Alt + Del doesn't work. Reinstalling the app via Mic Store not archiving big chats didn't work out.
What steps can reproduce the bug?
What is the expected behavior?
_No response_
Additional information
Problem
Codex Desktop fails when pasting text that should be converted into a pasted-text attachment. The error happens even in a brand-new chat and even after reinstalling Codex from Microsoft Store.
What We Tried
Checked whether this was caused by one bad thread
Created/used a brand-new Codex chat.
The same paste error appeared there too.
Conclusion: not caused by only one broken conversation.
Archived old/heavy Codex threads
Archived several large/not-loaded threads:019e0e39-0a6d-74a1-af92-ebe35b01b010
019eeebd-e02b-78e1-b852-6214dbbd5c92
019e830e-80c2-7090-8697-c39016df1142
Error still remained.
Conclusion: old chat history was not the root cause.
Cleared Codex Desktop web/browser state
Cleaned Codex Desktop Chromium profile/cache areas:%APPDATA%\Codex
%APPDATA%\Codex\web\Codex\Default
browser cache
IndexedDB
Local Storage
Service Worker cache
blob storage
GPU/network/temp cache
Created repair script:tools/repair-codex-desktop-paste.ps1
tools/repair-codex-desktop-paste.cmd
tools/repair-codex-desktop-paste-hardreset.cmd
Added backup and “Press Enter to close” behavior.
Error still remained.
Conclusion: not just browser cache.
Tried hard reset / Store app state cleanup
Added cleanup for Microsoft Store package cache/temp state:%LOCALAPPDATA%\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache
%LOCALAPPDATA%\Packages\OpenAI.Codex_2p2nqsd0c76g0\TempState
optional LocalState
Error still remained.
Tried reinstall path
Created reinstall/reset tooling:tools/reinstall-codex-desktop.ps1
tools/reinstall-codex-desktop.cmd
tools/reinstall-codex-desktop-admin.cmd
tools/reset-codex-desktop.cmd
tools/reset-codex-desktop-admin.cmd
Reinstall from Microsoft Store / installer did not fix the issue.
Conclusion: issue survived reinstall because important state was outside the Store app cache.
Checked clipboard-format theory
Hypothesis: clipboard contained hidden HTML/rich formats causing Codex to fail.
Added tools:tools/inspect-clipboard-formats.ps1
tools/inspect-clipboard-formats.cmd
tools/normalize-clipboard-plain-text.ps1
tools/normalize-clipboard-plain-text.cmd
These were meant to inspect or force plain Unicode text.
This was rejected as not the real fix.
Later evidence showed clipboard was not the root cause.
Created temporary workaround
Added clipboard/file bridge:tools/codex-clipboard-file-bridge.ps1
.cmd launchers
It saved large clipboard text into:_codex_work\codex_clipboard\codex-paste-*.txt
Then it replaced clipboard contents with a short file reference.
This avoided Codex’s broken large-paste attachment path.
It was only a workaround, not the real fix.
Inspected installed Codex Desktop app code
Searched inside:C:\Program Files\WindowsApps\OpenAI.Codex_26.623.13972.0_x64__2p2nqsd0c76g0\app\resources\app.asar
Found the actual large-paste code path:UI converts large paste into an attachment.
It calls:create-pasted-text-attachment-for-host
createPastedTextAttachment
pastedTextAttachments.create(...)
Found the exact toast message:composer.fileAttachment.pastedTextError
English default: Large pasted text could not be attached
Identified how Codex stores pasted-text attachments
Codex writes pasted text into:codexHome\attachments\<uuid>\pasted-text.txt
It also maintains a registry:codexHome\attachments\pasted-text-attachments.json
On this machine, codexHome is:C:\Users\Admin\.codex
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗