feat(diff): give the diff header its own color identity#35
Merged
Conversation
The hand-off's parent segment was muted gray (log color 244), which faded against the diff — the breadcrumb between diffs read faint. Extend the worker teal from the "▸" marker across the parent name and separator so the hand-off reads as one legible breadcrumb unit under the indigo turn chip. The child — the step that matters — stays bold. Non-color output and every other header (turn banner, target line, single-module chip) are unchanged. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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
Follow-up on breadcrumb visibility (after #33/#34). Two goals: set the diff's module header apart from the run log it prints after, and lift the breadcrumb so it doesn't fade into the diff body.
≡ root ≡chip is now white (inverted), not the run log's indigo root color (38;5;61), so the banner reads as "this is the diff" rather than more run output.▸ parent ›marker + parent + separator now share a brighter teal (38;5;80), replacing the muted gray (38;5;244) that faded against the diff. The child — the step that matters — stays bold.Non-color output and the single-module / target lines are unchanged.
Diff header (real terminal)
Testing
go build ./...,go vet ./..., fullgo test ./...— all green.TestDiffHeader_ColorTurnBannerAndHandoffasserts composition symbolically, so it validates the new structure; color constants live inpkg/action/diff.go.7m;231;1m, teal hand-off38;5;80m.🤖 Generated with Claude Code