Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 20, 2025

Overview

This PR enhances the logs command 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 the aw_info.json file in each run's log directory.

Example output:

Run ID | Workflow          | Agent   | Status  | Duration | Tokens | Cost ($)
------ | ----------------- | ------- | ------- | -------- | ------ | --------
123456 | daily-doc-updater | claude  | success | 5m30s    | 15k    | $0.045
123457 | ci-doctor         | codex   | success | 3m15s    | 8.5k   | $0.028
123458 | audit-workflows   | copilot | failure | 2m10s    | 5.2k   | $0.016

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:

  • Before: #FFFFFF (white) foreground with #34374A (dark grey) background
  • After: #6272A4 (grey) foreground with no background

This provides a cleaner, more subtle appearance that improves readability and visual hierarchy.

Visual Demonstration

Agent Column Demo

The screenshot shows:

  • Side-by-side comparison of the old and new table header styles
  • The new Agent column properly positioned after the Workflow column
  • Full output example with multiple workflow runs showing different engines

Technical Details

Files Modified:

  • pkg/cli/logs_report.go - Added Agent field to RunData struct and extraction logic in buildLogsData()
  • pkg/cli/logs_report_test.go - Updated test data to include Agent field
  • pkg/console/console.go - Updated tableHeaderStyle to use grey foreground without background

Implementation:

  • The Agent field uses the omitempty tag to gracefully handle cases where aw_info.json is not available
  • Engine ID extraction reuses the existing parseAwInfo() function for consistency
  • All changes maintain backward compatibility with existing logs

Testing

  • ✅ All unit tests passing
  • ✅ Linter validation passed
  • ✅ Build successful
  • ✅ Manual verification with sample data completed
Original prompt
  • In the "logs" command output, add a "agent" column that shows the agentic engine id (claude, codex, copilot, ...). Place it after "workflow" column
  • update table heade style to no background, grey foreground.

💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copilot AI self-assigned this Oct 20, 2025
- Added Agent field to RunData struct after WorkflowName
- Extract engine ID from aw_info.json in buildLogsData
- Updated tableHeaderStyle to remove background and use grey foreground
- All tests passing

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add agent column to logs command output feat: Add agent column to logs output and update table header style Oct 20, 2025
Copilot AI requested a review from pelikhan October 20, 2025 23:25
@pelikhan pelikhan marked this pull request as ready for review October 20, 2025 23:28
@github-actions
Copy link
Contributor

Agentic Changeset Generator triggered by this pull request.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@pelikhan pelikhan merged commit 682a964 into main Oct 20, 2025
4 checks passed
@pelikhan pelikhan deleted the copilot/add-agent-column-to-logs branch October 20, 2025 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants