Skip to content

fix: improve Windows compatibility for daemon telemetry and hook commands#1389

Open
tanbazhagan wants to merge 2 commits into
git-ai-project:mainfrom
tanbazhagan:fix-windows-compatibility
Open

fix: improve Windows compatibility for daemon telemetry and hook commands#1389
tanbazhagan wants to merge 2 commits into
git-ai-project:mainfrom
tanbazhagan:fix-windows-compatibility

Conversation

@tanbazhagan
Copy link
Copy Markdown

@tanbazhagan tanbazhagan commented May 19, 2026

fix: improve Windows compatibility for daemon telemetry and hook commands


Open in Devin Review

Copilot AI review requested due to automatic review settings May 19, 2026 00:37
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR standardizes how agent hook commands are constructed—especially on Windows—by normalizing binary paths for shell execution, while also improving Windows cleanup behavior and adjusting a Windows-specific daemon telemetry connect timeout.

Changes:

  • Added to_agent_hook_command_path() and updated multiple agent installers to use it for hook command construction (Windows uses C:/...-style paths).
  • Improved Windows symlink/junction removal behavior in ensure_git_symlinks() to surface failures instead of swallowing them.
  • Increased the telemetry connect timeout on Windows to better match daemon startup behavior.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/mdm/utils.rs Adds a shared path-normalization helper for hook command execution.
src/mdm/ensure_git_symlinks.rs Adjusts Windows junction/symlink removal flow and error surfacing.
src/mdm/agents/windsurf.rs Uses normalized command path when building Windsurf hook command.
src/mdm/agents/github_copilot.rs Uses normalized command path and tolerates legacy MSYS-style commands on Windows.
src/mdm/agents/gemini.rs Uses normalized command path when building Gemini hook commands.
src/mdm/agents/firebender.rs Uses normalized command path when building Firebender hook commands.
src/mdm/agents/droid.rs Uses normalized command path when building Droid hook commands.
src/mdm/agents/cursor.rs Uses normalized command path and updates tests accordingly.
src/mdm/agents/codex.rs Uses normalized command path; adds legacy MSYS compatibility in “up-to-date” detection.
src/daemon/telemetry_handle.rs Sets a longer telemetry connect timeout on Windows with rationale.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/mdm/ensure_git_symlinks.rs
Comment thread src/mdm/agents/codex.rs Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 4 additional findings.

Open in Devin Review

@tanbazhagan
Copy link
Copy Markdown
Author

@copilot apply changes based on the comments in this thread

@tanbazhagan tanbazhagan reopened this May 19, 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