When AI writes a code block at the very end, sometimes it is truncated in UI

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When the AI writes a code block at the very end, sometimes it is truncated in the UI – the last few words are not visible.

Pressing the copy button on the code block will copy that truncated version of the code block.

However, if I click the copy button that copies the entire AI message, then I can see the full code block that was intended without truncation.

Steps to Reproduce

  1. Ask AI to ensure a code block is written as the very last thing. In my case, this issue occurred specifically with Gemini 3 Pro. It ran a terminal command and then output the code block, which resulted in the truncated view.
  2. Pressing the copy button on the code block will copy the truncated version of the code block.
  3. Pressing the copy button that copies the entire AI message will show the full version of the code block untruncated.

Expected Behavior

The code block should never be truncated.

Screenshots / Screen Recordings

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.2.43 (user setup)
VSCode Version: 1.105.1
Commit: 32cfbe848b35d9eb320980195985450f244b3030
Date: 2025-12-19T06:06:44.644Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26100

For AI issues: which model did you use?

Gemini 3 Pro

For AI issues: add Request ID with privacy disabled

Request ID: d8428f92-37c8-40df-9678-3669f204d0aa

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report.

This is a known issue with code block rendering in the UI. Similar bugs were fixed before, but your case with Gemini 3 Pro might be a regression or a new edge case.

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.