Skip to content

Standardize agent output summary title to "Agentic Conversation"#15072

Merged
pelikhan merged 4 commits intomainfrom
copilot/update-agent-output-markdown
Feb 12, 2026
Merged

Standardize agent output summary title to "Agentic Conversation"#15072
pelikhan merged 4 commits intomainfrom
copilot/update-agent-output-markdown

Conversation

Copy link
Contributor

Copilot AI commented Feb 12, 2026

Agent conversation output in GitHub Actions step summaries currently displays parser-specific titles (🤖 Copilot CLI Session, 🤖 Claude CLI Session, etc.). This changes the HTML details element to use a consistent title across all AI engines.

Changes

  • actions/setup/js/log_parser_shared.cjs: Modified wrapAgentLogInSection() to return static title "Agentic Conversation" instead of ${emoji} ${parserName} CLI Session
  • actions/setup/js/log_parser_bootstrap.cjs: Added wrapping for Copilot's special conversation.md path (generated by --share flag) to ensure consistent output across all code paths
  • Test updates: Updated 7 test expectations across log_parser_shared.test.cjs and log_parser_bootstrap.test.cjs

Before:

<details open>
<summary>🤖 Copilot CLI Session</summary>
...
</details>

After:

<details open>
<summary>Agentic Conversation</summary>
...
</details>

The parserName parameter remains accepted for backward compatibility but no longer affects the output title. Both regular log file parsing and Copilot's conversation.md special path now produce consistent wrapped output.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot stopped work on behalf of pelikhan due to an error February 12, 2026 02:40
Copilot stopped work on behalf of pelikhan due to an error February 12, 2026 02:40
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Update agent output markdown printing code Standardize agent output summary title to "Agentic Conversation" Feb 12, 2026
Copilot AI requested a review from pelikhan February 12, 2026 02:51
@pelikhan
Copy link
Contributor

@copilot make sure the special path for copilot to use the conversation.md file is also wrapped in a details view.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Feb 12, 2026

@copilot make sure the special path for copilot to use the conversation.md file is also wrapped in a details view.

Done in commit 3dc0490. The special Copilot path for conversation.md now wraps the content in <details><summary>Agentic Conversation</summary> element, consistent with the regular log file parsing path.

@pelikhan pelikhan marked this pull request as ready for review February 12, 2026 03:09
Copilot AI review requested due to automatic review settings February 12, 2026 03:09
@pelikhan pelikhan merged commit 1d35115 into main Feb 12, 2026
48 checks passed
@pelikhan pelikhan deleted the copilot/update-agent-output-markdown branch February 12, 2026 03:09
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Standardizes the GitHub Actions step summary section title for agent conversation output to a single, engine-agnostic label (“Agentic Conversation”), and ensures Copilot’s conversation.md fast-path output is wrapped consistently with other parsing flows.

Changes:

  • Updated wrapAgentLogInSection() to always emit <summary>Agentic Conversation</summary> (no parser-specific title).
  • Wrapped Copilot conversation.md (--share) step summary output in the same details/summary section.
  • Updated affected unit tests to match the new static title and wrapping behavior.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
actions/setup/js/log_parser_shared.cjs Hard-codes the agent summary title to “Agentic Conversation”.
actions/setup/js/log_parser_bootstrap.cjs Wraps Copilot conversation.md output using wrapAgentLogInSection().
actions/setup/js/log_parser_shared.test.cjs Updates expectations for the new static summary title.
actions/setup/js/log_parser_bootstrap.test.cjs Updates expectations to validate wrapped output and title in step summaries.

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

Comment on lines 1432 to 1435
const openAttr = open ? " open" : "";
const emoji = "🤖";
const title = `${emoji} ${parserName} CLI Session`;
const title = "Agentic Conversation";

return `<details${openAttr}>\n<summary>${title}</summary>\n\n${markdown}\n</details>`;
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

wrapAgentLogInSection now hard-codes the summary title, so parserName (and its JSDoc describing it) no longer affects output. To avoid confusion for future maintainers, please update the function contract to reflect this (e.g., note parserName is accepted only for backward compatibility and ignored, or rename the destructured variable to _parserName / remove it from destructuring while still accepting it in options).

Copilot uses AI. Check for mistakes.
Comment on lines 2106 to +2109
const markdown = "Test content";
const result = wrapAgentLogInSection(markdown, { parserName: "Claude" });

expect(result).toContain("🤖 Claude CLI Session");
expect(result).toContain("Agentic Conversation");
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

This test name/intent is now inconsistent with the behavior being asserted: it says "should support custom parser names", but the title is intentionally static. Rename the test (and optionally stop passing parserName here) to reflect that parserName is ignored for the summary title and is retained only for backward compatibility.

Copilot uses AI. Check for mistakes.
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