Objective
Migrate pkg/logger/logger.go from hardcoded ANSI escape sequences to Lipgloss-based color strings for consistency with the rest of the codebase.
Context
From the Terminal Stylist audit (discussion #21455), pkg/logger/logger.go uses 12 hardcoded \033[38;5;Xm ANSI escape sequences instead of Lipgloss. While it has TTY detection, this diverges from the Lipgloss-based approach used everywhere else and doesn't support adaptive light/dark colors.
Current Pattern (to replace)
// Current — hardcoded ANSI
colorReset = "\033[0m"
colors = []string{"\033[38;5;33m", "\033[38;5;35m", ...}
Target Pattern
// Preferred — use Lipgloss
lipgloss.NewStyle().Foreground(lipgloss.Color("33")).Render(text)
Approach
- Open
pkg/logger/logger.go and identify all hardcoded ANSI sequences
- Replace them with Lipgloss style definitions using
lipgloss.NewStyle().Foreground(lipgloss.Color(...))
- Ensure TTY detection is preserved (logger already has TTY detection — keep it)
- Use
AdaptiveColor where appropriate to support light/dark terminal themes
Acceptance Criteria
Generated by Plan Command for issue #discussion #21455 · ◷
Objective
Migrate
pkg/logger/logger.gofrom hardcoded ANSI escape sequences to Lipgloss-based color strings for consistency with the rest of the codebase.Context
From the Terminal Stylist audit (discussion #21455),
pkg/logger/logger.gouses 12 hardcoded\033[38;5;XmANSI escape sequences instead of Lipgloss. While it has TTY detection, this diverges from the Lipgloss-based approach used everywhere else and doesn't support adaptive light/dark colors.Current Pattern (to replace)
Target Pattern
Approach
pkg/logger/logger.goand identify all hardcoded ANSI sequenceslipgloss.NewStyle().Foreground(lipgloss.Color(...))AdaptiveColorwhere appropriate to support light/dark terminal themesAcceptance Criteria
\033[or\x1b[escape sequences remain inpkg/logger/logger.golipgloss.Colororlipgloss.AdaptiveColormake fmt && make lint && make test-unitpass