Skip to content

XDG_CONFIG_HOME is not supported correctly #1347

Description

@ascarter

Describe the bug

With XDG_CONFIG_HOME set to something like the standard $HOME/.config, copilot does not properly set its directory.

Affected version

GitHub Copilot CLI 0.0.406

Steps to reproduce the behavior

  1. Set XDG_CONFIG_HOME=$HOME/.config
  2. copilot
  3. /mcp add
  4. Enter a mcp server configuration
  5. Outputs to $HOME/.config/.copilot
  6. Should output to $HOME/.config/copilot

Expected behavior

The expected behavior with XDG_CONFIG_HOME is to not use a hidden directory. Instead, it should use a plain directory, clearly visible.

Copilot should be ~/.config/copilot

Additional context

Test on macOS and Linux.

Activity

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:authenticationLogin, OAuth, device auth, token management, and keychain integrationarea:configurationConfig files, instruction files, settings, and environment variablesarea:networkingProxy, SSL/TLS, certificates, corporate environments, and connectivity issues

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions