[PR #12627] Allow fragments to override the name of new profiles #29146

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

Original Pull Request: https://github.com/microsoft/terminal/pull/12627

State: closed
Merged: Yes


After this commit we only set the default fields of a profile - primarily the
name field - as late as possible, after layering has already completed.
This ensures that we pick up any modifications from fragments.

PR Checklist

Validation Steps Performed

  • Add a fragment at
    %LocalAppData%\Microsoft\Windows Terminal\Fragments\Fragment\fragment.json
    with
    {"profiles":[{"updates":"{61c54bbd-c2c6-5271-96e7-009a87ff44bf}","name":"NewName"}]}
  • Windows PowerShell profile is created with the name "NewName" in settings.json
**Original Pull Request:** https://github.com/microsoft/terminal/pull/12627 **State:** closed **Merged:** Yes --- After this commit we only set the default fields of a profile - primarily the name field - as late as possible, after layering has already completed. This ensures that we pick up any modifications from fragments. ## PR Checklist * [x] Closes #12520 * [x] I work here * [x] Tests added/passed ## Validation Steps Performed * Add a fragment at `%LocalAppData%\Microsoft\Windows Terminal\Fragments\Fragment\fragment.json` with `{"profiles":[{"updates":"{61c54bbd-c2c6-5271-96e7-009a87ff44bf}","name":"NewName"}]}` * Windows PowerShell profile is created with the name "NewName" in settings.json ✅
claunia added the pull-request label 2026-01-31 09:33:06 +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#29146