[Terminal Chat Setup] App link like ms-terminal-can://... doesn't launch Terminal #22506

Open
opened 2026-01-31 08:15:23 +00:00 by claunia · 21 comments
Owner

Originally created by @dmealo on GitHub (Nov 6, 2024).

Originally assigned to: @PankajBhojwani on GitHub.

Windows Terminal version

1.23.3091.0, 1.23.3101.0

Windows build number

10.0.22631.0

Other Software

No response

Steps to reproduce

  1. Launch Settings
  2. Navigate to Terminal Chat (Experimental)
  3. Expand GitHub Copilot under Service Providers
  4. Click Authenticate via GitHub
  5. Authenticate and approve access to GitHub account in browser
  6. Click "Open Terminal Canary" in resulting browser modal dialog

Expected Behavior

Windows Terminal Canary should launch and receive the auth token from GitHub to complete GitHub Copilot setup for Terminal Chat.

Actual Behavior

Windows Terminal Canary does not launch. This does not work from the default browser (Chrome) nor from Edge.

Originally created by @dmealo on GitHub (Nov 6, 2024). Originally assigned to: @PankajBhojwani on GitHub. ### Windows Terminal version 1.23.3091.0, 1.23.3101.0 ### Windows build number 10.0.22631.0 ### Other Software _No response_ ### Steps to reproduce 1. Launch Settings 2. Navigate to Terminal Chat (Experimental) 3. Expand GitHub Copilot under Service Providers 4. Click Authenticate via GitHub 5. Authenticate and approve access to GitHub account in browser 6. Click "Open Terminal Canary" in resulting browser modal dialog ### Expected Behavior Windows Terminal Canary should launch and receive the auth token from GitHub to complete GitHub Copilot setup for Terminal Chat. ### Actual Behavior Windows Terminal Canary does not launch. This does not work from the default browser (Chrome) nor from Edge.
claunia added the Issue-BugNeeds-Tag-FixProduct-TerminalArea-Chat labels 2026-01-31 08:15:24 +00:00
Author
Owner

@radrad commented on GitHub (Nov 9, 2024):

The same for me. It looks like Windows Terminal Canary is not registered to handle ms-terminal-can://...

I am on windows 10

@radrad commented on GitHub (Nov 9, 2024): The same for me. It looks like Windows Terminal Canary is not registered to handle ms-terminal-can://... I am on windows 10
Author
Owner

@carlos-zamora commented on GitHub (Nov 13, 2024):

Thanks for filing! Could you share what's in the OS's Settings app under "Apps" > "Default apps" > "Choose defaults by link type" /?
It may be different on windows 10, but it should exist though.

We're expecting it to look something like this:
Image

@carlos-zamora commented on GitHub (Nov 13, 2024): Thanks for filing! Could you share what's in the OS's Settings app under "Apps" > "Default apps" > "Choose defaults by link type" /? It may be different on windows 10, but it should exist though. We're expecting it to look something like this: ![Image](https://github.com/user-attachments/assets/6c9aac73-2329-44b0-b759-f758bfac5bc8)
Author
Owner

@tino-github commented on GitHub (Nov 14, 2024):

I have the settings just like it shows in the screenshot:
Image

However, the terminal does not get launched.

@tino-github commented on GitHub (Nov 14, 2024): I have the settings just like it shows in the screenshot: ![Image](https://github.com/user-attachments/assets/1170032f-d7a3-4899-9540-9d9b5f3de349) However, the terminal does not get launched.
Author
Owner

@Zheke32174 commented on GitHub (Nov 15, 2024):

I am having the same issue. I can not find any solution online. I am on windows 11 24h2. I find this especially confusing because GH auth redirects back to the terminal from the browser but copilot does not.

@Zheke32174 commented on GitHub (Nov 15, 2024): I am having the same issue. I can not find any solution online. I am on windows 11 24h2. I find this especially confusing because GH auth redirects back to the terminal from the browser but copilot does not.
Author
Owner

@jvcosmo commented on GitHub (Nov 18, 2024):

I'm unable to login to use Github Copilot because of that problem. Even registered, the browser doesn't redirect to terminal canary.

@jvcosmo commented on GitHub (Nov 18, 2024): I'm unable to login to use Github Copilot because of that problem. Even registered, the browser doesn't redirect to terminal canary.
Author
Owner

@dmealo commented on GitHub (Nov 22, 2024):

My settings are as @tino-github ’s, please do not close.

@dmealo commented on GitHub (Nov 22, 2024): My settings are as @tino-github ’s, please do not close.
Author
Owner

@lly-c232733 commented on GitHub (Nov 27, 2024):

same issue for me. cannot use copilot cli because of this

@lly-c232733 commented on GitHub (Nov 27, 2024): same issue for me. cannot use copilot cli because of this
Author
Owner

@carlos-zamora commented on GitHub (Dec 4, 2024):

We're struggling to get a repro. Can one of you with a repro provide a screenshot of the resulting error /?

@carlos-zamora commented on GitHub (Dec 4, 2024): We're struggling to get a repro. Can one of you with a repro provide a screenshot of the resulting error /?
Author
Owner

@tino-github commented on GitHub (Dec 9, 2024):

A bit unexpected, this question as there is no error. The issue is that a link such a shown below does not trigger MS Terminal Canary to open.

ms-terminal-can://github-auth?code=123456789&state=abcdef

@tino-github commented on GitHub (Dec 9, 2024): A bit unexpected, this question as there is no error. The issue is that a link such a shown below does not trigger MS Terminal Canary to open. ms-terminal-can://github-auth?code=123456789&state=abcdef
Author
Owner

@lly-c232733 commented on GitHub (Dec 9, 2024):

tino describes the exact same problem as I am having.

I try to follow the following instructions: https://devblogs.microsoft.com/commandline/github-copilot-in-windows-terminal/

I am able to complete steps 1-3 of the setup. but after logging it github and authorizing windows terminal access I am shown this webpage:
Image

I am not automatically re-directed so I try clicking the hyperlink called 'this setup page' which is a url like this: ms-terminal-can://github-auth?code=xxxxxxxxxxxxxxxxxxxxx&state=xxxxxxxxxxxxxxxxxxxxxxx

clicking the link does nothing.

I check in windows the default app to open this link, and it seems correct, but will not work.
Image

Is the windows registry incomplete?
Image

Shouldn't there be subfolders '/shell/open/command' with a path to executable plus arguments ???

@lly-c232733 commented on GitHub (Dec 9, 2024): tino describes the exact same problem as I am having. I try to follow the following instructions: https://devblogs.microsoft.com/commandline/github-copilot-in-windows-terminal/ I am able to complete steps 1-3 of the setup. but after logging it github and authorizing windows terminal access I am shown this webpage: ![Image](https://github.com/user-attachments/assets/f61be572-d02f-4e66-b957-65bbdb3bd858) I am not automatically re-directed so I try clicking the hyperlink called 'this setup page' which is a url like this: ms-terminal-can://github-auth?code=xxxxxxxxxxxxxxxxxxxxx&state=xxxxxxxxxxxxxxxxxxxxxxx clicking the link does nothing. I check in windows the default app to open this link, and it seems correct, but will not work. ![Image](https://github.com/user-attachments/assets/0b46fd66-d296-411b-b4cf-741d8d777e2f) Is the windows registry incomplete? ![Image](https://github.com/user-attachments/assets/6614e1bc-a49a-443d-bc86-21f4c344a2a4) Shouldn't there be subfolders '/shell/open/command' with a path to executable plus arguments ???
Author
Owner

@PankajBhojwani commented on GitHub (Dec 10, 2024):

For everyone facing this issue - are you launching Windows Terminal Canary elevated/as administrator? If so we have a temporary fix - launch Canary unelevated, complete the whole Github Copilot auth flow, and then switch back to elevated - your credentials will already be stored and you will be able to use Terminal Chat.

If anyone is experiencing this issue while not running elevated/as administrator, please let us know!

@PankajBhojwani commented on GitHub (Dec 10, 2024): For everyone facing this issue - are you launching Windows Terminal Canary elevated/as administrator? If so we have a temporary fix - launch Canary unelevated, complete the whole Github Copilot auth flow, and then switch back to elevated - your credentials will already be stored and you will be able to use Terminal Chat. If anyone is experiencing this issue while not running elevated/as administrator, please let us know!
Author
Owner

@lly-c232733 commented on GitHub (Dec 11, 2024):

I am not running it as admin

@lly-c232733 commented on GitHub (Dec 11, 2024): I am not running it as admin
Author
Owner

@dmealo commented on GitHub (Dec 11, 2024):

@PankajBhojwani, that worked for me at least! Thanks!

@dmealo commented on GitHub (Dec 11, 2024): @PankajBhojwani, that worked for me at least! Thanks!
Author
Owner

@tino-github commented on GitHub (Dec 11, 2024):

@PankajBhojwani, thanks for the workaround! It worked for me.

@tino-github commented on GitHub (Dec 11, 2024): @PankajBhojwani, thanks for the workaround! It worked for me.
Author
Owner

@carlos-zamora commented on GitHub (Dec 11, 2024):

I am not running it as admin

@lly-c232733 Hmm... A few questions from the team:

  • Do you have UAC on?
  • Can you share a copy of your settings.json file?
@carlos-zamora commented on GitHub (Dec 11, 2024): > I am not running it as admin @lly-c232733 Hmm... A few questions from the team: - Do you have UAC on? - Can you share a copy of your settings.json file?
Author
Owner

@lly-c232733 commented on GitHub (Dec 13, 2024):

UAC:
Image

Settings:

{
    "$help": "https://aka.ms/terminal-documentation",
    "$schema": "https://raw.githubusercontent.com/microsoft/terminal/main/doc/cascadia/profiles.schema.json",
    "actions": [],
    "copyFormatting": "none",
    "copyOnSelect": false,
    "defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
    "keybindings": 
    [
        {
            "id": "Terminal.CopyToClipboard",
            "keys": "ctrl+c"
        },
        {
            "id": "Terminal.PasteFromClipboard",
            "keys": "ctrl+v"
        },
        {
            "id": "Terminal.DuplicatePaneAuto",
            "keys": "alt+shift+d"
        }
    ],
    "newTabMenu": 
    [
        {
            "type": "remainingProfiles"
        }
    ],
    "profiles": 
    {
        "defaults": {},
        "list": 
        [
            {
                "commandline": "%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
                "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
                "hidden": false,
                "name": "Windows PowerShell"
            },
            {
                "commandline": "%SystemRoot%\\System32\\cmd.exe",
                "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
                "hidden": false,
                "name": "Command Prompt"
            },
            {
                "guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
                "hidden": false,
                "name": "PowerShell",
                "source": "Windows.Terminal.PowershellCore"
            },
            {
                "guid": "{2c4de342-38b7-51cf-b940-2309a097f518}",
                "hidden": true,
                "name": "Ubuntu",
                "source": "Windows.Terminal.Wsl"
            },
            {
                "guid": "{17bf3de4-5353-5709-bcf9-835bd952a95e}",
                "hidden": true,
                "name": "Ubuntu-22.04",
                "source": "Windows.Terminal.Wsl"
            },
            {
                "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
                "hidden": false,
                "name": "Azure Cloud Shell",
                "source": "Windows.Terminal.Azure"
            },
            {
                "guid": "{3195db66-1ccf-51f1-a7d7-903b120e7e80}",
                "hidden": false,
                "name": "Developer Command Prompt for VS 2022",
                "source": "Windows.Terminal.VisualStudio"
            },
            {
                "guid": "{bb0022f9-b333-5771-a0a8-d6c450edc62b}",
                "hidden": false,
                "name": "Developer PowerShell for VS 2022",
                "source": "Windows.Terminal.VisualStudio"
            },
            {
                "guid": "{01c82842-7506-59a8-8f62-f21b72def779}",
                "hidden": true,
                "name": "Developer Command Prompt for VS 2019",
                "source": "Windows.Terminal.VisualStudio"
            },
            {
                "guid": "{d6893382-09c1-5805-a942-efd20da6fcf3}",
                "hidden": true,
                "name": "Developer PowerShell for VS 2019",
                "source": "Windows.Terminal.VisualStudio"
            },
            {
                "guid": "{16208362-94fc-5b1f-a491-5b2624d5ab56}",
                "hidden": true,
                "name": "Visual Studio Debug Console",
                "source": "VSDebugConsole"
            },
            {
                "guid": "{51855cb2-8cce-5362-8f54-464b92b32386}",
                "hidden": false,
                "name": "Ubuntu",
                "source": "CanonicalGroupLimited.Ubuntu_79rhkp1fndgsc"
            },
            {
                "guid": "{4ff56d04-d9cf-57ea-bae2-ad396374e7e3}",
                "hidden": false,
                "name": "Ubuntu 22.04.5 LTS",
                "source": "CanonicalGroupLimited.Ubuntu22.04LTS_79rhkp1fndgsc"
            }
        ]
    },
    "schemes": [],
    "themes": []
}
@lly-c232733 commented on GitHub (Dec 13, 2024): UAC: ![Image](https://github.com/user-attachments/assets/645e3af6-ed17-4f2d-828a-e845f0efdcc0) Settings: ```json { "$help": "https://aka.ms/terminal-documentation", "$schema": "https://raw.githubusercontent.com/microsoft/terminal/main/doc/cascadia/profiles.schema.json", "actions": [], "copyFormatting": "none", "copyOnSelect": false, "defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}", "keybindings": [ { "id": "Terminal.CopyToClipboard", "keys": "ctrl+c" }, { "id": "Terminal.PasteFromClipboard", "keys": "ctrl+v" }, { "id": "Terminal.DuplicatePaneAuto", "keys": "alt+shift+d" } ], "newTabMenu": [ { "type": "remainingProfiles" } ], "profiles": { "defaults": {}, "list": [ { "commandline": "%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", "hidden": false, "name": "Windows PowerShell" }, { "commandline": "%SystemRoot%\\System32\\cmd.exe", "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", "hidden": false, "name": "Command Prompt" }, { "guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}", "hidden": false, "name": "PowerShell", "source": "Windows.Terminal.PowershellCore" }, { "guid": "{2c4de342-38b7-51cf-b940-2309a097f518}", "hidden": true, "name": "Ubuntu", "source": "Windows.Terminal.Wsl" }, { "guid": "{17bf3de4-5353-5709-bcf9-835bd952a95e}", "hidden": true, "name": "Ubuntu-22.04", "source": "Windows.Terminal.Wsl" }, { "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}", "hidden": false, "name": "Azure Cloud Shell", "source": "Windows.Terminal.Azure" }, { "guid": "{3195db66-1ccf-51f1-a7d7-903b120e7e80}", "hidden": false, "name": "Developer Command Prompt for VS 2022", "source": "Windows.Terminal.VisualStudio" }, { "guid": "{bb0022f9-b333-5771-a0a8-d6c450edc62b}", "hidden": false, "name": "Developer PowerShell for VS 2022", "source": "Windows.Terminal.VisualStudio" }, { "guid": "{01c82842-7506-59a8-8f62-f21b72def779}", "hidden": true, "name": "Developer Command Prompt for VS 2019", "source": "Windows.Terminal.VisualStudio" }, { "guid": "{d6893382-09c1-5805-a942-efd20da6fcf3}", "hidden": true, "name": "Developer PowerShell for VS 2019", "source": "Windows.Terminal.VisualStudio" }, { "guid": "{16208362-94fc-5b1f-a491-5b2624d5ab56}", "hidden": true, "name": "Visual Studio Debug Console", "source": "VSDebugConsole" }, { "guid": "{51855cb2-8cce-5362-8f54-464b92b32386}", "hidden": false, "name": "Ubuntu", "source": "CanonicalGroupLimited.Ubuntu_79rhkp1fndgsc" }, { "guid": "{4ff56d04-d9cf-57ea-bae2-ad396374e7e3}", "hidden": false, "name": "Ubuntu 22.04.5 LTS", "source": "CanonicalGroupLimited.Ubuntu22.04LTS_79rhkp1fndgsc" } ] }, "schemes": [], "themes": [] } ```
Author
Owner

@lly-c232733 commented on GitHub (Dec 21, 2024):

Any update?

@lly-c232733 commented on GitHub (Dec 21, 2024): Any update?
Author
Owner

@lly-c232733 commented on GitHub (Jan 2, 2025):

I just tried today and it worked. I'm not sure what changed.

@lly-c232733 commented on GitHub (Jan 2, 2025): I just tried today and it worked. I'm not sure what changed.
Author
Owner

@dichiara19 commented on GitHub (Jan 16, 2025):

I have tried both elevating the permissions and forcing it to open without the priveleges (by default I cannot open it as a user)
Start-Process "C:\Program Files\WindowsApps\Microsoft.WindowsTerminalCanary_1.23.10151.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe"

Even without privileges the app does not open the terminal and thus does not register the token @PankajBhojwani

If I try opening from ps I get in fact:

Id     Name            PSJobTypeName   State         HasMoreData     Location             Command
--     ----            -------------   -----         -----------     --------             -------
1      Job1            BackgroundJob   Running       True            localhost            start ms-terminal-can://…
"" is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
@dichiara19 commented on GitHub (Jan 16, 2025): I have tried both elevating the permissions and forcing it to open without the priveleges (by default I cannot open it as a user) `Start-Process "C:\Program Files\WindowsApps\Microsoft.WindowsTerminalCanary_1.23.10151.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe" ` Even without privileges the app does not open the terminal and thus does not register the token @PankajBhojwani If I try opening from ps I get in fact: ``` Id Name PSJobTypeName State HasMoreData Location Command -- ---- ------------- ----- ----------- -------- ------- 1 Job1 BackgroundJob Running True localhost start ms-terminal-can://… "" is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. ```
Author
Owner

@psulek commented on GitHub (Feb 24, 2025):

This worked for me (24th of Feb. 2025):

  • In Windows Terminal Canary -> change settings -> "Profiles" -> "Defaults" -> "toggle OFF Run this profile as Administrator"
    • im not sure if this step is mandatory
  • Start menu -> Run -> runas /trustlevel:0x20000 wt.exe
  • Complete Copilot Authentication
  • "toggle ON Run this profile as Administrator" in Settings
  • Github copilot seems to be authenticated for me
@psulek commented on GitHub (Feb 24, 2025): This worked for me (24th of Feb. 2025): - In Windows Terminal Canary -> change settings -> "Profiles" -> "Defaults" -> "toggle **OFF** Run this profile as Administrator" - im not sure if this step is mandatory - Start menu -> Run -> `runas /trustlevel:0x20000 wt.exe` - Complete Copilot Authentication - "toggle **ON** Run this profile as Administrator" in Settings - Github copilot seems to be authenticated for me
Author
Owner

@Nick-Cedaron commented on GitHub (Jul 3, 2025):

I'm not running as admin and I still can't get it to work.

If I have Canary open, it closes and never reopens. If I don't have it open, nothing happens. When I open it again, I'm still not signed in with copilot.

@Nick-Cedaron commented on GitHub (Jul 3, 2025): I'm not running as admin and I still can't get it to work. If I have Canary open, it closes and never reopens. If I don't have it open, nothing happens. When I open it again, I'm still not signed in with copilot.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22506