Pasting code snippets (especially diffs) now converts it to markdown, which completely messes up the text.

Open 💬 4 comments Opened Jul 18, 2026 by rmjarvis

What version of the Codex App are you using (From “About Codex” dialog)?

26.707.91948

What subscription do you have?

Pro

What platform is your computer?

Darwin 23.6.0 arm64 arm

What issue are you seeing?

When I'm code reviewing changes made by Codex, I often copy/paste parts of the diff to provide context for my requested change, question, or whatever. This used to work great. Now (after the conversion from Codex to ChatGPT) it's started automatically converting these into markdown, which is completely inappropriate and totally screws up the formatting. Please either revert this anti-feature or (more likely I presume), add a way to turn it off. Let me go back to just typing/pasting as plain text. Not markdown.

What steps can reproduce the bug?

Paste something like:

@@ -347,7 +354,13 @@ internal fun LiveGameScreen(
                         }
                     },
                     onLock = { locked = true },
-                    onGoal = { team -> onStateChange(state.recordGoalFromCurrentState(team, now)) },
+                    onGoal = { team ->
+                        val updatedState = state.recordGoalFromCurrentState(team, now)
+                        onStateChange(updatedState)
+                        if (updatedState.automaticWaterBreakReached(team)) {
+                            showWaterBreakPrompt = true
+                        }
+                    },

What is the expected behavior?

All those + and - lines should not turn into bullets. It should just paste the text as given without trying to convert to markdown.

Additional information

Codex itself thought I should be able to paste inside a [three backtick] region, but that doesn't work either. Here is what the above turns into when I do its suggestions ([three backticks]diff first, then Cmd+Shift+V to paste):

@@ -347,7 +354,13 @@ internal fun LiveGameScreen(
                         }
                     },
                     onLock = { locked = true },
- onGoal = { team -> onStateChange(state.recordGoalFromCurrentState(team, now)) },
- onGoal = { team ->
- val updatedState = state.recordGoalFromCurrentState(team, now)
- onStateChange(updatedState)
- if (updatedState.automaticWaterBreakReached(team)) {
- showWaterBreakPrompt = true
- }
- },

All the + turned into - and the indentation was swallowed. So it seems to be converting to markdown and then back to text through this process. This is unacceptable formatting.

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗