Background agent not connected to git repository

Where does the bug appear (feature/product)?

Background Agent (GitHub, Slack, Web, Linear)

Describe the Bug

Hi

  • background agent told me its connected to my ssh repository
    but :
  • connected to its own branch, in its own workspace, in a docker, and not able to see my ssh remote, and can’t execute ssh commands
    Files it got is a weird version of my files

Steps to Reproduce

Background agent setup :

  • cursor > connected tu full remote ssh
  • link git <> cursor (repository, branch well setup)
  • start a background agent, selecty repository and branche

Expected Behavior

Launch background agent
workspace is repository on remote ssh
be able to interact with files, commit, git pull/push

(done from cursor app and web agents)

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.6.35
VSCode Version: 1.99.3
Commit: b753cece5c67c47cb5637199a5a5de2b7100c180
Date: 2025-09-19T17:39:38.846Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin x64 22.6.0

For AI issues: which model did you use?

Sonnet 4, auto

Additional Information

At first it works
After a push I merged a PR, conflicts remmains
I resolved conflits, push all PR, did proper branches and repositories
Then I encountered the bug “impossible to select a repository”, bug is now solved

I’m connected in cursor to my remote, setup is ok in git & cursor sides
everything is commited or ignored
no pr, no conclicts

I tried to unlink git <> cursor, make the good setup again

Does this stop you from using Cursor

No - Cursor works, but with this issue

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