Improve JS step-summary agent trace readability with ordered event markers#32847
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot render a preview for https://github.com/github/gh-aw/actions/runs/25953787841/job/76296776802 |
|
@copilot show time deltas like in npmjs debug package |
Preview from that job’s rendered agent summary: In this run, no assistant/tool trace lines were emitted into the conversation section. |
There was a problem hiding this comment.
Pull request overview
Adds monotonic [n] event markers to assistant text blocks and tool execution lines in the JS log parser's step-summary output to improve scanability of agent traces. Existing output structure (icons, preview lines, truncation) is preserved.
Changes:
- Introduce
traceEventCountin the summary rendering state and increment it for each agent text block and tool execution line. - Prepend
[n]markers to the first line of agent text and to tool execution lines. - Extend tests to assert the new numbered markers for both success and error tool paths.
Show a summary per file
| File | Description |
|---|---|
| actions/setup/js/log_parser_format.cjs | Adds traceEventCount state and prefixes agent text and tool execution lines with [n] markers. |
| actions/setup/js/log_parser_shared.test.cjs | Adds assertions for the new [n] markers on agent text and tool lines in success/error paths. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 0
The step summary currently renders agent logs as a flat stream, which makes trace progression hard to scan during workflow triage. This update improves JavaScript log-trace rendering by introducing explicit event ordering inspired by
agent-tracetimeline ergonomics.Problem focus
Rendering changes
[n]markers.├/└lines, truncation rules, tool status icons) are preserved; only scanability is improved.Test updates