Skip to content

feat: enhance agent detection with flexible environment conditions - #1639

Merged
ramya18101 merged 1 commit into
mainfrom
DXCDT-2368-fix-cursor-agent-detection
Sep 2, 2026
Merged

feat: enhance agent detection with flexible environment conditions#1639
ramya18101 merged 1 commit into
mainfrom
DXCDT-2368-fix-cursor-agent-detection

Conversation

@ramya18101

@ramya18101 ramya18101 commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

🔧 Changes

This fix changes the Cursor detection to match only on agent-execution markers:

  • CURSOR_AGENT present → cursor (headless cursor-agent CLI)
  • CURSOR_EXTENSION_HOST_ROLE == "agent-exec"cursor (in-IDE Cursor Agent)

📚 References

  • am-i-vibing provider list (reference only, no dependency taken)
  • GitHub cli/cli internal/agents/detect.go
  • GitButler crates/but/src/utils/detect_agent.rs

🔬 Testing

  • Added TestDetectAgent_RealCursor

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@ramya18101
ramya18101 marked this pull request as ready for review September 2, 2026 13:37
@ramya18101
ramya18101 requested a review from a team as a code owner September 2, 2026 13:37

@developerkunal developerkunal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ramya18101
ramya18101 merged commit 1d0dd04 into main Sep 2, 2026
6 checks passed
@ramya18101
ramya18101 deleted the DXCDT-2368-fix-cursor-agent-detection branch September 2, 2026 13:48
@ramya18101 ramya18101 mentioned this pull request Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants