[BUG] Claude for Windows (desktop): built-in /create-pr (GitHub) runs instead of project custom command; terminal & VS Code work correctly

Open 💬 1 comment Opened Jun 4, 2026 by jamiegluk

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

On the Claude for Windows desktop app (local agent / Claude Code), invoking the
/create-pr slash command runs a built-in GitHub PR routine instead of my
project's custom command at .claude/commands/create-pr.md — even though the
command picker tooltip shows "Create Pull Request (project)".

The built-in opens with "This folder has no GitHub remote. Set one up…" and
drives toward gh repo create / gh pr create, despite the repo's origin being
Azure DevOps (no GitHub remote). My custom command is an Azure DevOps flow and
contains none of that text.

Crucially, the SAME machine, repo, project command, and prompt work correctly in
the terminal CLI and the VS Code extension — both run the project command. Only
the desktop app dispatches the built-in. So this is a desktop-app-specific
command-dispatch bug: the picker attributes /create-pr to "(project)", but a
hidden built-in executes.

Impact: for teams not on GitHub, the built-in steers toward creating a GitHub
repo and pushing — i.e. publishing private source to the wrong platform.

What Should Happen?

The desktop app should behave like the terminal CLI and VS Code: the custom
(project/user) command takes precedence over a same-named built-in. At minimum,
the command that executes must match the source shown in the picker ("project").
Behavior should be consistent across all surfaces.

Error Messages/Logs

Built-in routine delivered when /create-pr was invoked in the desktop app
(not present in my create-pr.md):

<create-pr-command>
## Overview
This folder has no GitHub remote. Set one up, then create a pull request.
## Steps
1. Check `gh auth status`...
4. ... `gh repo create <name> --private|--public --source=. --remote=origin`
5. Commit anything uncommitted, push the branch with -u, and open the PR with `gh pr create`.
6. Report the PR URL wrapped in a `<pr-created>` tag ...
## Target
Branch: <my-branch>
Working directory: <my-repo-path>
</create-pr-command>

Steps to Reproduce

  1. On a machine with the Claude for Windows app, the terminal CLI, and the VS

Code extension, open a git repo whose origin is NOT GitHub (e.g. Azure DevOps).

  1. Add a custom .claude/commands/create-pr.md (any content).
  2. In each surface, in a fresh session, run the same prompt: /create-pr
  • Terminal CLI: runs the custom project command ✅
  • VS Code extension: runs the custom project command ✅
  • Claude for Windows desktop app: runs the built-in GitHub routine ❌
  1. In the desktop app, note the picker tooltip still says "Create Pull Request (project)".

Claude Model

Not sure / Multiple models

Is this a regression?

Yes, this worked in a previous version

Last Working Version

Unknown — worked on the prior Claude for Windows desktop build (~1 day earlier, before 2026-06-03); broke with no config change

Claude Code Version

2.1.162

Platform

Other

Operating System

Windows

Terminal/Shell

Other

Additional Information

Claude for Windows desktop app (local agent / Cowork mode) — not a terminal. Terminal CLI and VS Code do NOT reproduce.

Claude for Windows desktop app: 1.10628.2 (deee0a), 2026-06-03 ← the failing surface
System CLI (terminal, works): claude --version → 2.1.162
VS Code extension: also works

  • The built-in's strings (create-pr-command, pr-created, "no GitHub remote",

"gh repo create") are compiled into the npm CLI's claude.exe and exist in NO
.md file (project/user/plugin) — so the built-in definition is shared, but
only the desktop app dispatches it over the custom command.

  • No hooks involved (verified settings.json / settings.local.json).
  • Workaround: rename the custom command to a non-colliding name (e.g. /ado-pr).
  • Suggested labels: area:desktop, platform:windows.
  • Related: #4450 (custom command precedence), #54054 (Azure DevOps support).
  • Screenshot attached: desktop picker tooltip "Create Pull Request (project)"

alongside the GitHub output (the display-vs-execution contradiction).

<img width="1263" height="942" alt="Image" src="https://github.com/user-attachments/assets/46cff217-f82e-46ca-8768-72a0be668c52" />

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗