[PR #11598] Fix loading of fragments that update multiple profiles #28661

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

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

State: closed
Merged: Yes


The "updates" key is an alternative "guid" key for fragment profiles.
But SettingsLoader::_appendProfile stores and deduplicates profiles according
to their "guid" only. We need to modify the function to optionally store
profiles by their "updates" key as well, otherwise multiple fragment
profiles without "guid" might collide as they produce the same default GUID.

PR Checklist

  • Closes Run command on exit (#11597)
  • I work here
  • Tests added/passed
  • Schema updated.
  • I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx

Validation Steps Performed

  • Unit tests pass ✔️
  • Issue #11597 doesn't reproduce anymore ✔️
**Original Pull Request:** https://github.com/microsoft/terminal/pull/11598 **State:** closed **Merged:** Yes --- The "updates" key is an alternative "guid" key for fragment profiles. But SettingsLoader::_appendProfile stores and deduplicates profiles according to their "guid" only. We need to modify the function to optionally store profiles by their "updates" key as well, otherwise multiple fragment profiles without "guid" might collide as they produce the same default GUID. ## PR Checklist * [x] Closes #11597 * [x] I work here * [ ] Tests added/passed * [ ] Schema updated. * [ ] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx ## Validation Steps Performed * Unit tests pass ✔️ * Issue #11597 doesn't reproduce anymore ✔️
claunia added the pull-request label 2026-01-31 09:29:55 +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#28661