Add safe color controls - #82
Open
wattsjus wants to merge 1 commit into
Open
Conversation
wattsjus
marked this pull request as ready for review
August 13, 2026 04:21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
--orange(#FF8000) and--purple(#E000A0) color commandsblink1-toolprocesses before executing a new commandWhy
Continuous commands such as
--playpatternkeep running in their original process. A later invocation can set a new color, but the older animation then writes to the device again. This makes automation handoffs, such as moving from a pulsing Focus status to a solid meeting status, unreliable.The macOS process handoff makes the newest invocation authoritative while retaining the existing command syntax. The two additional named colors provide convenient aliases consistent with the existing named-color options.
Impact
On macOS, invoking
blink1-toolnow terminates other processes namedblink1-toolowned by any visible process entry before accessing the device. Other platforms retain their current process behavior.Validation
--orangeand--purpleon a blink(1) mk3--playpattern, then verified thatblink1-tool --redterminated the older animation and left the light solid redgit diff --check