CLI syntax highlighting is broken

Where does the bug appear (feature/product)?

Cursor CLI

Describe the Bug

Syntax highlighting for Python/C++ code block disappears when the block is complete (and it works while the model is generating the block)

Steps to Reproduce

Start the CLI and ask the model to generate some Python code

Operating System

Linux

Version Information

The CLI runs in a terminal in Cursor IDE

CLI Version 2026.06.29-2ad2186

For AI issues: add Request ID with privacy disabled

Request ID: 8d1be81c-7d04-4f2e-8165-31c1f0cb4d97

Does this stop you from using Cursor

No - Cursor works, but with this issue

Thanks for reporting this. I tried to reproduce the color change in fresh CLI sessions but haven’t been able to so far.

Could you attach a short screen recording that shows the same code block while it is generating and again after it completes?

@mohitjain

It was fine when generating the code block

When the generation is complete, the syntax highlighting is gone

Thanks for the screenshots - that makes it clear. Highlighting works while the block is streaming, then drops once generation finishes.

This is a known CLI rendering issue on our side. The code content is fine; only the colors in completed scrollback can be lost, and there’s no reliable workaround on your end right now.

I’ve attached your report to the tracking item so it covers live sessions as well as resumed sessions. We’ll follow up when a fix ships.