From b4b1d44ba4cc318758540bdd09220682d683c02b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 20 Oct 2025 23:09:10 +0000 Subject: [PATCH 1/3] Initial plan From bbef25e55b98e205e3df275c663497e99d102d3a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 20 Oct 2025 23:19:47 +0000 Subject: [PATCH 2/3] feat: Add agent column to logs output and update table header style - 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> --- pkg/cli/logs_report.go | 9 +++++++++ pkg/cli/logs_report_test.go | 1 + pkg/console/console.go | 3 +-- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/pkg/cli/logs_report.go b/pkg/cli/logs_report.go index e279f7467a..aeeb65b47d 100644 --- a/pkg/cli/logs_report.go +++ b/pkg/cli/logs_report.go @@ -41,6 +41,7 @@ type RunData struct { DatabaseID int64 `json:"database_id" console:"header:Run ID"` Number int `json:"number" console:"-"` WorkflowName string `json:"workflow_name" console:"header:Workflow"` + Agent string `json:"agent,omitempty" console:"header:Agent,omitempty"` Status string `json:"status" console:"header:Status"` Conclusion string `json:"conclusion,omitempty" console:"-"` Duration string `json:"duration,omitempty" console:"header:Duration,omitempty"` @@ -102,10 +103,18 @@ func buildLogsData(processedRuns []ProcessedRun, outputDir string) LogsData { totalWarnings += run.WarningCount totalMissingTools += run.MissingToolCount + // Extract agent/engine ID from aw_info.json + agentID := "" + awInfoPath := filepath.Join(run.LogsPath, "aw_info.json") + if info, err := parseAwInfo(awInfoPath, false); err == nil && info != nil { + agentID = info.EngineID + } + runData := RunData{ DatabaseID: run.DatabaseID, Number: run.Number, WorkflowName: run.WorkflowName, + Agent: agentID, Status: run.Status, Conclusion: run.Conclusion, TokenUsage: run.TokenUsage, diff --git a/pkg/cli/logs_report_test.go b/pkg/cli/logs_report_test.go index 1fce233b1c..609f5b56f4 100644 --- a/pkg/cli/logs_report_test.go +++ b/pkg/cli/logs_report_test.go @@ -23,6 +23,7 @@ func TestRenderLogsConsoleUnified(t *testing.T) { { DatabaseID: 12345, WorkflowName: "test-workflow", + Agent: "claude", Status: "completed", Duration: "5m30s", TokenUsage: 1000, diff --git a/pkg/console/console.go b/pkg/console/console.go index d5861c51c3..407a5dca8e 100644 --- a/pkg/console/console.go +++ b/pkg/console/console.go @@ -245,8 +245,7 @@ func FormatWarningMessage(message string) string { var ( tableHeaderStyle = lipgloss.NewStyle(). Bold(true). - Foreground(lipgloss.Color("#FFFFFF")). - Background(lipgloss.Color("#34374A")) + Foreground(lipgloss.Color("#6272A4")) tableCellStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("#F8F8F2")) From 493ab4d0965bf79b17cf0b3b08c9c66a218a50a4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 20 Oct 2025 23:30:29 +0000 Subject: [PATCH 3/3] chore: Add changeset for agent column feature MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .changeset/patch-add-agent-column-logs.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/patch-add-agent-column-logs.md diff --git a/.changeset/patch-add-agent-column-logs.md b/.changeset/patch-add-agent-column-logs.md new file mode 100644 index 0000000000..db21d8a1ed --- /dev/null +++ b/.changeset/patch-add-agent-column-logs.md @@ -0,0 +1,5 @@ +--- +"gh-aw": patch +--- + +Add agent column to logs output and update table header style