Need to repeatedly instruct codex to use proper code block formatting

Resolved 💬 1 comment Opened Oct 31, 2025 by adrianveen Closed Nov 11, 2025

What version of the VS Code extension are you using?

0.4.31

What subscription do you have?

Plus

Which IDE are you using?

VS Code

What platform is your computer?

Microsoft Windows NT 10.0.19045.0 x64

What issue are you seeing?

Codex is not formatting code output in code blocks. They are just unindented lines of code one after the other in plain text.

Asking for raw markdown text for example yielded the exact same results where it was a formatted version of markdown. I had to explicitly ask for "code blocks". Same when asking it for samples of python code. I'm sure this should be solved with an AGENTS.md but that should be unnecessary.

What steps can reproduce the bug?

Ask it a question about your codebase in a way that the response would be mixed, ie plain english and code snippets. The code snippets are returned in plain text

What is the expected behavior?

properly formatted code blocks, with language syntax colouring and indentation applied.

Additional information

<img width="427" height="407" alt="Image" src="https://github.com/user-attachments/assets/f9401deb-a270-45f4-a416-5f21bc35cfb7" />

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗