Switch the command palette to command-line mode when picked from it #20985
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 269 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.335
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #20985"
general
weight: 0.35
DHowett
Summary of the Pull Request
Picking the command-line mode variant of the Toggle Command Palette action from inside the command palette previously closed the palette. It now switches the palette to command-line mode, whilst preserving the existing behaviour of the standard toggle.
References and Relevant Issues
Closes #17114
Detailed Description of the Pull Request / Additional comments
CommandPalette::_dispatchCommandcloses the palette before dispatching an action and deliberately excludesToggleCommandPalettefrom dispatch to prevent the palette from reopening itself. This also prevented the following action from being dispatched:The change updates the existing dispatch condition to allow the command-line variant of
ToggleCommandPaletteto be dispatched normally.This allows
TerminalPage::_HandleToggleCommandPaletteto reopen the palette in command-line mode through the existing action dispatch mechanism, consistent with how the Tab Switcher and Tab Search mode transitions are handled.The standard Toggle Command Palette action continues to close the palette as before. All other actions continue to be dispatched normally.
Pressing a key bound to the command-line variant whilst the palette is already open remains unchanged and is outside the scope of this PR.
Validation Steps Performed
Built and deployed
CascadiaPackage(Debug x64), added the following command toactionsin the settings file, and performed manual testing:new-taband pressed Enter: a new tab opened successfully.PR Checklist