# Infinite loading when pasting small blocks or adding file references in chat (all models, macOS, reproducible for 3+ months)

**URL:** <https://forum.cursor.com/t/infinite-loading-when-pasting-small-blocks-or-adding-file-references-in-chat-all-models-macos-reproducible-for-3-months/155699>\
**Category:** Bug Reports\
**Tags:** performance, context, chat\
**Created:** [March 24, 2026, 2:01am UTC](https://forum.cursor.com/t/infinite-loading-when-pasting-small-blocks-or-adding-file-references-in-chat-all-models-macos-reproducible-for-3-months/155699 "2026-03-24T02:01:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sun-Woo-Kim](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/sun-woo-kim/32/70920_2.png) [@Sun-Woo-Kim](https://forum.cursor.com/u/Sun-Woo-Kim)\
**Post date:** [March 24, 2026, 2:01am UTC](https://forum.cursor.com/t/infinite-loading-when-pasting-small-blocks-or-adding-file-references-in-chat-all-models-macos-reproducible-for-3-months/155699/1 "2026-03-24T02:01:30Z")

</div>

### Where does the bug appear (feature/product)?

Cursor IDE

### Describe the Bug

Cursor chat gets stuck in infinite loading when I paste a small block of text/code or when I add a file reference / block reference.

This is not limited to large content. It also happens with very small inputs, including blocks of around 20 lines.

When this happens, the chat shows “Taking longer than expected…” and never returns a response.

This issue is reproducible across all models I tested and has been happening for about 3 months across recent stable versions.

External terminal copy/paste works fine, so the issue appears specific to Cursor chat handling pasted blocks and file/block references.

### Steps to Reproduce

1. Open Cursor IDE and open any project.
2. Open Cursor chat.
3. Paste a small block of text/code (even around 20 lines), or add a file reference / block reference.
4. Send the message.
5. Observe that Cursor chat gets stuck in infinite loading and never returns a response.

Additional notes:

- Reproduces across all models I tested.
- Reproduces even with short pasted content.
- Reproduces regardless of HTTP/2, HTTP/1.1, or HTTP/1.0 settings.
- External terminal paste works normally.

### Expected Behavior

Cursor chat should process the pasted block or file/block reference normally and return a response.

Small pasted inputs and file references should not cause the chat to hang indefinitely.

### Screenshots / Screen Recordings

### Operating System

MacOS

### Version Information

Version: 2.6.21  
VSCode Version: 1.105.1  
Commit: fea2f546c979a0a4ad1deab23552a43568807590  
Date: 2026-03-21T22:09:10.098Z  
Build Type: Stable  
Release Track: Default  
Electron: 39.8.1  
Chromium: 142.0.7444.265  
Node.js: 22.22.1  
V8: 14.2.231.22-electron.0  
OS: Darwin arm64 25.3.0

### For AI issues: which model did you use?

Reproduces across all models I tested, so it does not appear to be model-specific.  
Examples tested include Sonnet and other chat models in Cursor.

### Additional Information

Attached screen recording shows:

1. pasting a small block
2. adding a file/block reference
3. chat entering infinite loading
4. no response being returned

### Does this stop you from using Cursor

No - Cursor works, but with this issue

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [March 24, 2026, 4:26am UTC](https://forum.cursor.com/t/infinite-loading-when-pasting-small-blocks-or-adding-file-references-in-chat-all-models-macos-reproducible-for-3-months/155699/4 "2026-03-24T04:26:36Z")

</div>

Hey, this is a known issue the team is tracking. Your report with the specific paste or file reference trigger is really helpful for narrowing it down.

I see you already tried switching HTTP/2, HTTP/1,1, and HTTP/1,0 settings, so we can skip that. A couple things to try:

1. Re-index: Cursor Settings (not VS Code settings) \> Indexing \> Resync Index. This has fixed similar hangs for some users.
2. Empty folder test: File \> Open Folder \> pick an empty directory, start a new chat, paste the same block of code. If it works there, the issue might be tied to something in your project index.

Also, next time it gets stuck, can you grab a Request ID? Click the context menu top-right of the chat \> Copy Request ID. That lets us trace what is happening on the backend.

Related thread: [Cursor spinner / “Taking longer than expected…” state hangs forever during file-write/edit operation](https://forum.cursor.com/t/cursor-spinner-taking-longer-than-expected-state-hangs-forever-during-file-write-edit-operation/152561)

Let me know how it goes.

---

<div class="post-metadata">

**Author:** ![mohitjain](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/mohitjain/32/100229_2.png) [@mohitjain](https://forum.cursor.com/u/mohitjain)\
**Post date:** [April 7, 2026, 9:56am UTC](https://forum.cursor.com/t/infinite-loading-when-pasting-small-blocks-or-adding-file-references-in-chat-all-models-macos-reproducible-for-3-months/155699/7 "2026-04-07T09:56:47Z")

</div>

Hey @Sun-Woo-Kim!

The chat hanging / ‘Taking longer than expected’ issue has been addressed in a recent Cursor update. Updating to the latest version should resolve this.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [April 29, 2026, 9:56am UTC](https://forum.cursor.com/t/infinite-loading-when-pasting-small-blocks-or-adding-file-references-in-chat-all-models-macos-reproducible-for-3-months/155699/8 "2026-04-29T09:56:53Z")

</div>

Closed on April 29, 2026, 9:56am UTC

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