You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[plan] Add console formatting to pkg/workflow warning/error messages #21468
Update pkg/workflow/claude_logs.go, pkg/workflow/cache.go, and pkg/workflow/mcp_renderer.go to use console.FormatWarningMessage() / console.FormatErrorMessage() instead of raw stderr writes.
Context
From the Terminal Stylist audit (discussion #21455), three files in pkg/workflow write raw warning/error strings directly to stderr without any console formatting. This results in inconsistent output styling compared to the rest of the CLI.
Files to Modify
pkg/workflow/claude_logs.go — 8 raw writes, no console.Format* usage
pkg/workflow/cache.go — 2 raw writes, no console.Format* usage
pkg/workflow/mcp_renderer.go — 1 raw write, no console.Format* usage
Approach
In each file, import github.com/github/gh-aw/pkg/console
Replace raw fmt.Fprintf(os.Stderr, "Warning: %s", ...) with fmt.Fprintln(os.Stderr, console.FormatWarningMessage(...))
Replace raw error/failure messages with console.FormatErrorMessage(...)
Use console.FormatInfoMessage() for informational messages
Acceptance Criteria
All warning messages in the three files use console.FormatWarningMessage()
All error messages use console.FormatErrorMessage()
No raw Warning: or Error: prefixed stderr writes remain
Activity
github-actions commentedon Mar 20, 2026
This issue was automatically closed because it expired on 2026-03-19T23:44:06.346Z.