cursor icon indicating copy to clipboard operation
cursor copied to clipboard

Terminal sessions start at root directory and prompt doesn't display current path

Open chris-blanc opened this issue 5 months ago • 2 comments

Description:

  • Issue: When starting a terminal session in Cursor, it defaults to the root directory (/) instead of the project directory. Additionally, the prompt does not display the current working directory.
  • Steps to Reproduce:
    1. Open Cursor.
    2. Start a new terminal session.
    3. Run any command (e.g., npm run dev)
    4. Notice it looks for files in wrong directory
  • Expected Behavior: The terminal should start in the project directory, and the prompt should display the current working directory.
  • Actual Behavior: The terminal starts at the root directory, and the prompt does not show the current path.
  • Environment:
    • Cursor Version: [Your Cursor Version]
    • Operating System: Windows 10.0.26100
  • Additional Context: This issue began occurring on September 27, 2025. It affects all projects and persists across restarts. Manual Cursor terminal works fine, but the terminal tool is broken.

chris-blanc avatar Sep 27 '25 17:09 chris-blanc

Good afternoon, colleagues. I have encountered a similar issue. Is there any solution available?

SystemXFiles avatar Oct 29 '25 08:10 SystemXFiles

In the end moving the app-project folder to another location on the dev device (PC in my case) reset the configuration settings so that the Agent initiated terminal sessions start in the active app-project's folder, and not the PC's root folder.

Detail - this was happening in all my apps. I had them all in a central "code/" folder, so I moved that "code/" folder to a better location on my PC.

It was a frustrating path to find the simple fix of just relocating project folders. I didn't test moving the project folders back, but I imagine that would persist the fix.

Good luck with your case. I've had a difficult time with Cursor initiated terminal sessions. Through iteration, I finally got a good method down for dependable consistent terminal sessions initiated by Cursor agent...until the next update, at least.

Chris Blanc

On Wed, Oct 29, 2025, 4:52 AM System X - Files @.***> wrote:

SystemXFiles left a comment (cursor/cursor#3632) https://github.com/cursor/cursor/issues/3632#issuecomment-3460424830

Good afternoon, colleagues. I have encountered a similar issue. Is there any solution available?

— Reply to this email directly, view it on GitHub https://github.com/cursor/cursor/issues/3632#issuecomment-3460424830, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5J365OZZAN6TOQ43I4I2YL32B55FAVCNFSM6AAAAACHVNSYXCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTINRQGQZDIOBTGA . You are receiving this because you authored the thread.Message ID: @.***>

chris-blanc avatar Oct 31 '25 16:10 chris-blanc