[PR #10143] Attempt to heal settings files damaged by #9962 #27924

Closed
opened 2026-01-31 09:25:10 +00:00 by claunia · 0 comments
Owner

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

State: closed
Merged: Yes


The bug that caused #9962 resulted in folks getting profiles written to
their settings that didn't contain any identifying information (name or
guid), sometimes multiple times.

These profiles look (somewhat) like this:

{ "colorScheme": "Campbell" },
{},

An empty profile serves no purpose -- it shows up in the list as being
named "Default", and it only launches CMD (unless the commandline is the
thing that the user successfully changed.)

We can heal the settings file by simply ignoring those profiles that
have no identifying information (a guid or a name that can be
converted into a guid).

Validation

I created a number of profiles that fit this format and made sure that
they were ignored on load and destroyed on save.

PR Checklist

  • Closes an annoyance we discovered after 9962.
**Original Pull Request:** https://github.com/microsoft/terminal/pull/10143 **State:** closed **Merged:** Yes --- The bug that caused #9962 resulted in folks getting profiles written to their settings that didn't contain any identifying information (name or guid), sometimes multiple times. These profiles look (somewhat) like this: ```json { "colorScheme": "Campbell" }, {}, ``` An empty profile serves no purpose -- it shows up in the list as being named "Default", and it only launches CMD (unless the commandline is the thing that the user successfully changed.) We can heal the settings file by simply ignoring those profiles that have *no identifying information* (a guid or a name that can be converted into a guid). Validation ---------- I created a number of profiles that fit this format and made sure that they were ignored on load and destroyed on save. ## PR Checklist * [x] Closes an annoyance we discovered after 9962.
claunia added the pull-request label 2026-01-31 09:25:10 +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#27924