microsoft / microsoft/PowerToys

CmdPal: ProviderContext contamination between normal and Dock attached palette

Open
#46,401 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

CmdPal - Dock Issue-Bug Needs-Triage Priority-0 Product-Command Palette
Dominant language
C
Stars
139k
Forks
8.6k
PR merge metrics
PR metrics pending

Description

Microsoft PowerToys version

0.98

Installation method

Dev build in Visual Studio

Area(s) with issue?

Command Palette

Steps to reproduce
  1. Pin Dad Jokes to Dock
  2. Open Command Palette by hotkey
  3. Go to All Apps
  4. Click on Dad Jokes
  5. PowerToysAppHostService.GetProviderContextForCommand return All Apps as the context

W:\source\ms-pt\src\modules\cmdpal\Microsoft.CmdPal.UI\PowerToysAppHostService.cs

PowerToysAppHostService.GetProviderContextForCommand uses currentContext, but when

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

Upload Bug Report ZIP-file

No response

Additional Information

No response

Other Software

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/modules/cmdpal/Microsoft.CmdPal.UI/PowerToysAppHostService.cs and inspect GetProviderContextForCommand, especially its use of currentContext. Reproduce the sequence with Dad Jokes pinned to Dock, then opened from All Apps, and confirm the provider context is not contaminated between the normal and Dock-attached palettes.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.