Skip to content

Unable to add-dir with user home directory (Windows) #3719

Closed

Description

@Blackbaud-JeremyRyan

Describe the bug

When using /add-dir command, if trying to use ~ for home directory, backslash fails to recognize. It's necessary to use forward-slash, but the autocomplete keeps replacing my forward-slash with backslash.

Affected version

GitHub Copilot CLI 1.0.60

Steps to reproduce the behavior

/add-dir ~/.agents/skills
Autocomplete will turn it into ~.agents\skills and I can't override it
add-dir command fails

Expected behavior

Expect /add-dir with ~\ to work correctly OR
Autocomplete doesn't replace / with \

Additional context

Windows 11
Using Windows Terminal with pwsh 7

Activity

  1. added
    area:platform-windowsWindows-specific: PowerShell, cmd, Git Bash, WSL, Windows Terminal
    area:input-keyboardKeyboard shortcuts, keybindings, copy/paste, clipboard, mouse, and text input
    on Jun 8, 2026
  2. copilot-cli-bot commented on Sep 19, 2026

    @copilot-cli-bot

    This appears to be resolved as of GitHub Copilot CLI v1.0.86. Please update to that release or a newer stable version. We're closing this as completed. If it still happens, please comment with your version and reproduction steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:input-keyboardKeyboard shortcuts, keybindings, copy/paste, clipboard, mouse, and text inputarea:platform-windowsWindows-specific: PowerShell, cmd, Git Bash, WSL, Windows Terminal

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions