Cursor keeps getting confused running the backend and frontend in the same repo

Describe the Bug

I have a repo that has this structure:

backend
frontend
.env
docker-compose.yml

frontend and backend have also README files explaining how to run them (uv for backend, npm for frontend).
When I ask Cursor to run the stack it keeps forgetting to cd into the folder before running the commands, or it uses the wrong commands , eg python instead of uv.
I have even tried to use .cursorrules with more specific instructions but it does not get much better.

Steps to Reproduce

Prompt examples: “run the stack” or “test and debug the stack for me”

Expected Behavior

Remembers to cd and run the exact commands. Monitors the stdout and stderr of frontend and backend, and helps me debug both at the same time

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 0.43.6
VSCode Version: 1.93.1
Commit: a846435528b4b760494a836f96f0739889253530
Date: 2024-12-06T05:11:55.168Z
Electron: 30.5.1
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Darwin arm64 24.2.0

Additional Information

Nothing to add

Does this stop you from using Cursor

No - Cursor works, but with this issue