Profile.Defaults should not allow Name or Source to be defined #23494

Closed
opened 2026-01-31 08:43:55 +00:00 by claunia · 0 comments
Owner

Originally created by @carlos-zamora on GitHub (Aug 1, 2025).

Originally assigned to: @carlos-zamora on GitHub.

Found as a part of this investigation: https://github.com/microsoft/terminal/pull/19156/files#r2248959745

We should probably not let users do this as it lets them apply the same name and source across all their profiles unless specifically overridden.

The fix would be pretty simple. Just add a ClearName() and ClearSource() here:
a5d916f5d3/src/cascadia/TerminalSettingsModel/CascadiaSettingsSerialization.cpp (L807-L811)

Originally created by @carlos-zamora on GitHub (Aug 1, 2025). Originally assigned to: @carlos-zamora on GitHub. Found as a part of this investigation: https://github.com/microsoft/terminal/pull/19156/files#r2248959745 We should probably not let users do this as it lets them apply the same `name` and `source` across all their profiles unless specifically overridden. The fix would be pretty simple. Just add a `ClearName()` and `ClearSource()` here: https://github.com/microsoft/terminal/blob/a5d916f5d30d4b80faf278a1233b8ec1918c9d10/src/cascadia/TerminalSettingsModel/CascadiaSettingsSerialization.cpp#L807-L811
claunia added the Area-SettingsIssue-BugNeeds-Tag-FixProduct-Terminal labels 2026-01-31 08:43:56 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23494