# Referencing files stops the agent from running

**URL:** <https://forum.cursor.com/t/referencing-files-stops-the-agent-from-running/156752>\
**Category:** Bug Reports\
**Tags:** performance, context, chat\
**Created:** [April 5, 2026, 2:09pm UTC](https://forum.cursor.com/t/referencing-files-stops-the-agent-from-running/156752 "2026-04-05T14:09:25Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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 6, 2026, 8:56am UTC](https://forum.cursor.com/t/referencing-files-stops-the-agent-from-running/156752/5 "2026-04-06T08:56:37Z")

</div>

This is a known issue the team is actively working on. The “planning next moves” / “taking longer than expected” hang when referencing files has been reported by several users.

I also noticed you posted about the [same hang in plan mode](https://forum.cursor.com/t/coding-agent-breaks-after-entering-the-plan-mode/156750) — these are likely the same underlying issue, so I’ll track both here.

A few things to try:

1. **Re-index your project** : Cursor Settings (not VS Code settings) \> Indexing \> Resync Index. This has resolved similar hangs for some users.

2. **Test with an empty folder** : File \> Open Folder \> pick an empty directory, start a new chat, reference a file with @. If it works there, the issue may be tied to your project’s index.

3. **Disable HTTP/2** : Cursor Settings \> search “HTTP/2” \> enable “Disable HTTP/2”, then fully quit and reopen Cursor.

Also, next time it gets stuck, could you grab a **Request ID**? Click the three dots at the top right of the chat \> Copy Request ID. That helps us trace exactly what’s happening on the backend.

Related thread with the same trigger: [Infinite loading when adding file references in chat](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)

---

_[View the full topic](https://forum.cursor.com/t/referencing-files-stops-the-agent-from-running/156752)._
