feat: Add agent column to logs output and update table header style #2046
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.
Overview
This PR enhances the
logscommand output by adding an "Agent" column that displays the agentic engine ID for each workflow run, and updates the table header styling for better visual clarity.Changes
1. Added Agent Column
The logs table now includes an "Agent" column positioned after the "Workflow" column that displays the engine ID (e.g.,
claude,codex,copilot) for each workflow run. The engine ID is automatically extracted from theaw_info.jsonfile in each run's log directory.Example output:
This makes it easy to see which AI engine was used for each workflow execution at a glance, helping with analysis and debugging.
2. Updated Table Header Style
Table headers have been updated from white text on a dark background to grey text with no background:
#FFFFFF(white) foreground with#34374A(dark grey) background#6272A4(grey) foreground with no backgroundThis provides a cleaner, more subtle appearance that improves readability and visual hierarchy.
Visual Demonstration
The screenshot shows:
Technical Details
Files Modified:
pkg/cli/logs_report.go- AddedAgentfield toRunDatastruct and extraction logic inbuildLogsData()pkg/cli/logs_report_test.go- Updated test data to include Agent fieldpkg/console/console.go- UpdatedtableHeaderStyleto use grey foreground without backgroundImplementation:
omitemptytag to gracefully handle cases whereaw_info.jsonis not availableparseAwInfo()function for consistencyTesting
Original prompt
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.