Agent keeps trying to run new instances of flutter run

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When using an Agent for Flutter development, the agent keeps opening a new terminal instance for “flutter run” instead of reusing already running instance that it opened, also it does not notice a running instance that I started running in the debug console.

I have tried setting a precise rule in the mdc but it is ignored.

Steps to Reproduce

  1. install flutter
  2. create a test app with flutter create
  3. ask the agent to run the app
  4. ask it to make changes i.e. add a text under the counter
  5. observe the agent trying to run another terminal instance with flutter run

Expected Behavior

Agent leveraging the running instance, unsing hot reload/hot restart/ or quitting and retuning the app altogether in the same terminal

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.7.28 (Universal)
VSCode Version: 1.99.3
Commit: adb0f9e3e4f184bba7f3fa6dbfd72ad0ebb8cfd0
Date: 2025-10-01T02:45:21.769Z (1 day ago)
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.6.0

Does this stop you from using Cursor

Yes - Cursor is unusable

Thanks for the report. Can you please share the rule you’ve added and is it “Always applied” or did you manually apply it?

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