[PR #10096] Fix tabColor arg crash in CommandPalette #27890

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

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

State: closed
Merged: Yes


While a user is formulating their hex string for a tabColor arg
in the CommandPalette, we try to parse the string one char at
a time as it comes in. ColorFromHexString doesn't like anything
except a well formed hex string so it'll throw. We can probably eat
any error that comes out of this because we should only care to set
the TabColor once the string provided is a valid hex str.

Closes #10053

**Original Pull Request:** https://github.com/microsoft/terminal/pull/10096 **State:** closed **Merged:** Yes --- While a user is formulating their hex string for a `tabColor` arg in the CommandPalette, we try to parse the string one char at a time as it comes in. `ColorFromHexString` doesn't like anything except a well formed hex string so it'll throw. We can probably eat any error that comes out of this because we should only care to set the TabColor once the string provided is a valid hex str. Closes #10053
claunia added the pull-request label 2026-01-31 09:24:54 +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#27890