Agent freezes on macOS 2027 during File Operations (Grepping/Searching/Reading)

Problem:
Cursor Agent freezes during all file system operations on macOS 2027.

Symptoms:

  • Agent shows “Exploring X searches” → freezes
  • “Grepping [filename]” → no response
  • “Searching files **/filename” → freezes
  • “Reading filename.swift” → no response
  • After ~1 hour: “ConnectError: http/2 stream closed with error code CANCEL (0x8)”

What works:
:white_check_mark: Normal file search (Cmd+P) works instantly
:white_check_mark: Manually opening files works
:white_check_mark: Cmd+K works
:white_check_mark: Network connection to Cursor servers works
:white_check_mark: Tokens available

System:

  • macOS 2027
  • Cursor: [your version from terminal]
  • Project: Swift macOS App (~50,000+ files with backup folders)

Steps to Reproduce:

  1. System: macOS 2027
  2. Open a larger Swift project in Cursor (e.g., with several thousand files)
  3. Open the Cursor Agent (chat panel on the right)
  4. Enter a request that requires file operations:
    • Example: “Open the file PatientViewController.swift and check validation”
    • Or: “Test the app”
    • Or: “Find all TODO comments”
  5. Observe the Agent:
    • Agent shows: “Thought briefly”
    • Then: “Exploring 2 searches”
    • Then: “Grepping [filename]”
    • Then: “Searching files **/[filename]”
    • At this point the Agent freezes - no response
  6. After ~60 minutes:
    • Agent shows error: “ConnectError: http/2 stream closed with error code CANCEL”
    • Retry is attempted
    • Agent remains frozen

Expected Behavior:
Agent should find and open file (like Cmd+P does).

Actual Behavior:
Agent freezes on every file system operation.

What was already tried:

  • :white_check_mark: Full Disk Access enabled
  • :white_check_mark: Cache cleared (workspaceStorage, Code Cache, AgentStores)
  • :white_check_mark: Cursor completely reinstalled
  • :white_check_mark: Firewall disabled
  • :white_check_mark: Network connection tested
  • :cross_mark: Problem persists

Log Extract:

Hi,

Thanks for posting on the Cursor forum!

To help ensure most of our users can participate in discussions, this forum is currently English only.

If you’d like, you can edit your post to translate it into English. Once it meets our guidelines, it will be automatically relisted.

Thanks for understanding!

Note: This is an automated detection system and sometimes makes mistakes. If your post is already in English, feel free to ignore this message, or just make a small edit and it will be reviewed again.

has been changed

Hey, thanks for the detailed report. This matches an issue we’re tracking for users who recently upgraded to macOS 27.

What’s happening is that the macOS 27 upgrade does not carry over Rosetta. If your PATH has an Intel-only git first (usually an older Homebrew install in /usr/local/bin), the agent’s file tools (grep/search/read) can hang on it forever. That’s why Cmd+P and opening files manually works, but Grepping, Searching, and Reading never finish.

Can you check this:

  1. Fully quit Cursor Cmd+Q.
  2. In Terminal, run: file "$(which git)"
  3. If the output shows x86_64 (not arm64), do ONE of these:
    • Reinstall Rosetta: softwareupdate --install-rosetta --agree-to-license
    • Or remove the old Intel git: sudo rm -f /usr/local/bin/git (macOS has its own git at /usr/bin/git)
    • Or in Cursor Settings, find git.path and set it to /usr/bin/git
  4. Restart Cursor, open your project, and ask the agent something simple like “Read Package.swift” or “Find all TODO comments”.

Please share the output from step 2, and let me know if step 4 helped. If which git already shows arm64 and it still hangs, tell me and we’ll dig deeper.

Hey @Biggy_Back,

Quick update: we found the cause of the agent hanging on grep, search, and read after the macOS 27 upgrade. A fix is coming in Cursor 3.23, so the agent will no longer get stuck when the git on your PATH can’t run.

Until you’re on 3.23, the workaround from the earlier reply still applies. Run file "$(which git)" in Terminal, and if it shows x86_64, either reinstall Rosetta (softwareupdate --install-rosetta --agree-to-license) or remove the old Intel git (sudo rm -f /usr/local/bin/git), then restart Cursor.

One correction: changing the git.path setting only affects Source Control, not the agent, so please use one of the two options above instead.

Let me know if the agent still hangs after that.