feat(git): default state_target to both - #18
Merged
Merged
Conversation
A dirty work tree escalated only the icon slot (state_target auto resolved to leading), leaving a two-tone pill when the text variant displays the accent. Bake the per-module default to both — the same pattern cpu/ram use in metric_module.conf — so every accent-bearing slot warms together. The internal cascade tier is unreachable here: themux_options.conf bakes the module tier to auto, so the default must ride the user-facing option. Tests assert the stock core keeps one dirty switch (soft text has no accent channel, the renderer collapses it) and a solid text carries three (icon bg, text bg, trailing bg re-assert).
3 tasks
3 tasks
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.
Summary
@themux_git_state_target both), so every slot whose variant displays the accent warms together — no more two-tone pill (escalated icon next to a resting-accent text) on dirty trees.utils/metric_module.conf; the option remains user-overridable (leading,text,off).Changes
modules/git.confstate_target bothper-module default (the internal cascade tier is shadowed by the baked module tier, so it rides the user-facing option)themux_options.confdocs/reference/status-line.mddocs/reference/configuration.mdtests/git_module.sh+ expectedTest plan
./run_tests.sh— 17/17 greenshellcheck tests/git_module.sh🤖 Generated with Claude Code