[PR #11022] [MERGED] Use the "base" profile for incoming handoff and new commands #28356

Open
opened 2026-01-31 09:27:58 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/11022
Author: @DHowett
Created: 8/23/2021
Status: ✅ Merged
Merged: 8/25/2021
Merged by: @undefined

Base: main ← Head: dev/duhowett/profiles-defaults


📝 Commits (7)

  • 42f53a3 Use the Base profile for incoming connections
  • 0b94349 Use the Base profile for unspecified NTA that only have commandlines
  • 75d05bc Tidy for review
  • 452c3c6 Fix the tests for the new def. profile
  • 36e202b hook up github numbers
  • d50050a FR Peedback
  • 77e9a81 Apply suggestions from code review (thanks dustin)

📊 Changes

5 files changed (+84 additions, -20 deletions)

View changed files

📝 src/cascadia/LocalTests_SettingsModel/TerminalSettingsTests.cpp (+15 -3)
📝 src/cascadia/TerminalApp/TabManagement.cpp (+3 -1)
📝 src/cascadia/TerminalApp/TerminalPage.cpp (+37 -15)
📝 src/cascadia/TerminalApp/TerminalPage.h (+2 -0)
📝 src/cascadia/TerminalSettingsModel/CascadiaSettings.cpp (+27 -1)

📄 Description

This pull request introduces our first use of the "base" profile as an
actual profile. Incoming commandlines from wt foo and default
terminal handoffs will be hosted in the base profile.

THIS IS A BREAKING CHANGE for user behavior.

The original behavior where commandlines were hosted in the "default"
profile (in most cases, Windows PowerShell) led to user confusion: "why
does cmd use my powershell icon?" and "why does the title say
PowerShell?". Making this change unifies the user experience so that we
can land commandline detection in #10952.

Users who want the original behavior can get it back for commandline
invocation by specifying a profile using the -p argument, as in wt -p PowerShell -- cmd.

As a temporary stopgap, users who attempt to duplicate the base profile
will get their specified default profile until we land #5047.

This feature is hidden behind the same feature flag that controls the
visibility of base/"Defaults" in the settings UI.

Fixes #10669
Related to #6776


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/11022 **Author:** [@DHowett](https://github.com/DHowett) **Created:** 8/23/2021 **Status:** ✅ Merged **Merged:** 8/25/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/duhowett/profiles-defaults` --- ### 📝 Commits (7) - [`42f53a3`](https://github.com/microsoft/terminal/commit/42f53a35267e22e3718d3d34781aef7922aca0e4) Use the Base profile for incoming connections - [`0b94349`](https://github.com/microsoft/terminal/commit/0b94349af573aeeb866dd349410b377740fbdf37) Use the Base profile for unspecified NTA that only have commandlines - [`75d05bc`](https://github.com/microsoft/terminal/commit/75d05bc66a6c375f9b7b17bc08114bf7d7076900) Tidy for review - [`452c3c6`](https://github.com/microsoft/terminal/commit/452c3c64341ce261b03997a0c65e70136ec7d9e4) Fix the tests for the new def. profile - [`36e202b`](https://github.com/microsoft/terminal/commit/36e202b30590ca52d8eaa6f32bfcdba174507b4b) hook up github numbers - [`d50050a`](https://github.com/microsoft/terminal/commit/d50050ab4c3027c6ac382e6efee5e4a1bb9def29) FR Peedback - [`77e9a81`](https://github.com/microsoft/terminal/commit/77e9a8186cd4226d877f8f05cf3ee7e239eb1b23) Apply suggestions from code review (thanks dustin) ### 📊 Changes **5 files changed** (+84 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/LocalTests_SettingsModel/TerminalSettingsTests.cpp` (+15 -3) 📝 `src/cascadia/TerminalApp/TabManagement.cpp` (+3 -1) 📝 `src/cascadia/TerminalApp/TerminalPage.cpp` (+37 -15) 📝 `src/cascadia/TerminalApp/TerminalPage.h` (+2 -0) 📝 `src/cascadia/TerminalSettingsModel/CascadiaSettings.cpp` (+27 -1) </details> ### 📄 Description This pull request introduces our first use of the "base" profile as an actual profile. Incoming commandlines from `wt foo` *and* default terminal handoffs will be hosted in the base profile. **THIS IS A BREAKING CHANGE** for user behavior. The original behavior where commandlines were hosted in the "default" profile (in most cases, Windows PowerShell) led to user confusion: "why does cmd use my powershell icon?" and "why does the title say PowerShell?". Making this change unifies the user experience so that we can land commandline detection in #10952. Users who want the original behavior can get it back for commandline invocation by specifying a profile using the `-p` argument, as in `wt -p PowerShell -- cmd`. As a temporary stopgap, users who attempt to duplicate the base profile will get their specified default profile until we land #5047. This feature is hidden behind the same feature flag that controls the visibility of base/"Defaults" in the settings UI. Fixes #10669 Related to #6776 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:27:58 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#28356