You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Regression Canary] Problem start WT with lnk #20053
Hmm, possibly related to #20018. Carlos Zamora (@carlos-zamora) mind having a look? Shortcuts and AUMIDs somewhat go "hand in hand". This was checked in in time for the 861 build
Been working all day to try and fix this. Haven't given up, but I'm specifically having trouble fixing this scenario:
drag WindowsTerminal.exe to taskbar (creates .lnk)
double click WindowsTerminal.exe
BUG: new entry in taskbar appears for Terminal!
EXPECTED: same entry in taskbar is used
At its core, the problem is this:
we're now setting an AUMID inWindowEmperor::HandleCommandlineArgs()
when the .lnk is created, we're using the exe to do so, so there's no associated AUMID with it
Before Set AppUserModelID for unpackaged #20018 (confirmed), this was fine. Since there was no associated AUMID, the OS would figure that out for us and deterministically pick the same resolved AUMID. This resulted in reusing the same spot.
Post-Set AppUserModelID for unpackaged #20018, they now disagree! The .lnk has no AUMID, so the only way to target it was to use the auto-generated one. But we don't do that anymore, we generate one for you. This disagreement resulted in a new entry in the taskbar.
As a result, a workaround is that instead of creating the .lnk from the exe, create the taskbar entry first by opening terminal, then right-click it and pin it to the taskbar. This should make it so that the AUMID is generated and applied, so when you create the .lnk, it already has the correct one.
Literally as I wrote this, it looks like I managed to get a fix working. It's over in dev/cazamor/bugfix/aumid. I'll give it a review and clean it up tomorrow. It also includes a write-up of what I tried (issue-20053-aumid-investigation.md).
Activity
DHowett commentedon Apr 2, 2026
Hmm, possibly related to #20018. Carlos Zamora (@carlos-zamora) mind having a look? Shortcuts and AUMIDs somewhat go "hand in hand". This was checked in in time for the 861 build
carlos-zamora commentedon Apr 3, 2026
Been working all day to try and fix this. Haven't given up, but I'm specifically having trouble fixing this scenario:
At its core, the problem is this:
WindowEmperor::HandleCommandlineArgs()As a result, a workaround is that instead of creating the .lnk from the exe, create the taskbar entry first by opening terminal, then right-click it and pin it to the taskbar. This should make it so that the AUMID is generated and applied, so when you create the .lnk, it already has the correct one.
Literally as I wrote this, it looks like I managed to get a fix working. It's over in
dev/cazamor/bugfix/aumid. I'll give it a review and clean it up tomorrow. It also includes a write-up of what I tried (issue-20053-aumid-investigation.md).[Unpackaged] Fix taskbar glomming due to AUMID (microsoft#20064)
Zeroes1 commentedon May 2, 2026
Thank 2 All! work fine now! =)
[Unpackaged] Fix taskbar glomming due to AUMID (microsoft#20064)