Where does the bug appear (feature/product)?
Background Agent (GitHub, Slack, Web, Linear)
Describe the Bug
We’re encountering a persistent “Environment error” when attempting to run Cloud Code agents with a self-hosted GitLab repository.
The agent consistently fails during the repository cloning phase and never proceeds to execution.
Steps to Reproduce
Env:
GitLab(self-hosted) OAuth App Authorization: Authorized with scopes api and write_repository
User Access: The authorized GitLab user has access to repository
Branch Selection: The branch dropdown populates correctly — we can see and select branches from the repository
Admin Rights: Cursor admin permissions are confirmed
Actions:
go to /agents/
try to start work with any agent
Expected Behavior
The agent successfully clones the repository
Environment setup completes
Agent execution starts normally
Screenshots / Screen Recordings
Operating System
MacOS
Version Information
Version: 2.3.41
VSCode Version: 1.105.1
Commit: 2ca326e0d1ce10956aea33d54c0e2d8c13c58a30
Date: 2026-01-16T19:14:00.150Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 24.6.0
For AI issues: which model did you use?
GPT 5.2 Codex High
For AI issues: add Request ID with privacy disabled
request id: bc-def072f2-7224-419c-b771-21ca3683e450
Does this stop you from using Cursor
Yes - Cursor is unusable
