Pasting into Codex prompt window crashes VS Code

I’m running on Ubuntu in a VM. Just applied latest patches of everything.

When I try to paste code or log snippets into the Codex thread now, it locks VS and causes it to crash. If I reopen and try it again, eventually it crashes the entire VM. Pasting context is a key part of my flow, particularly when troubleshooting.

I’ve tried restarting everything and checking for new updates but nothing has fixed it.

Pasting into a new VS Code doc works totally fine, so I suspect this may be some sort of Codex issue handling pasted content.

Has anyone else seen this issue? Any suggestions on what to do?

I have the exact same issue as you. It seems to happen irregularly, but very often when there are some latex code with symbols too.

Avoid pasting big snippets directly into the Codex thread. Put the code/logs into a temporary file in the workspace, then ask Codex to read that file instead. The IDE extension also uses Codex CLI underneath, so testing the same prompt through CLI could help confirm if it’s only the VS Code extension UI.

Maybe also try a clean VS Code profile with only Codex enabled