Skip to content

Move Token Usage header into step summary details - #50126

Merged
pelikhan merged 1 commit into
mainfrom
copilot/update-token-usage-summary-header
Aug 4, 2026
Merged

Move Token Usage header into step summary details#50126
pelikhan merged 1 commit into
mainfrom
copilot/update-token-usage-summary-header

Conversation

Copilot AI commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

The "Token Usage" step summary rendered its title as a separate ### heading above the collapsible details block, inconsistent with other step summary sections (Missing Tools, Experiment Assignments, etc.) that put the title directly in <summary>.

Rendering change

  • buildStepSummarySection now places the title inside <summary> instead of a preceding ### heading
  • "Per-request AI credits and token totals" moved into the details body as descriptive text under the summary
<details>
<summary>Token Usage</summary>

Per-request AI credits and token totals

...
</details>

Tests

  • Updated assertions in parse_token_usage.test.cjs to match the new markup

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI requested a review from pelikhan August 4, 2026 00:44
@pelikhan
pelikhan marked this pull request as ready for review August 4, 2026 00:51
Copilot AI review requested due to automatic review settings August 4, 2026 00:51
@pelikhan
pelikhan merged commit 933767f into main Aug 4, 2026
@pelikhan
pelikhan deleted the copilot/update-token-usage-summary-header branch August 4, 2026 00:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Moves Token Usage titles into collapsible step-summary headers for consistency.

Changes:

  • Renders the title inside <summary>.
  • Moves descriptive text into the details body.
  • Updates related test assertions.
Show a summary per file
File Description
actions/setup/js/parse_token_usage.cjs Updates step-summary markup.
actions/setup/js/parse_token_usage.test.cjs Updates rendering assertions.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Balanced

Comment on lines +548 to +549
expect(section).toContain("<summary>Token Usage</summary>");
expect(section).toContain("Per-request AI credits and token totals");
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.84.4

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.

3 participants