Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 23, 2026

Safe-output handlers now generate collapsible step summaries for each processed message, providing visibility into what was created/updated during workflow execution.

Changes

  • New module: safe_output_summary.cjs

    • generateSafeOutputSummary() - Renders individual results as <details> blocks with metadata (URL, location, temporary IDs, labels)
    • writeSafeOutputSummaries() - Aggregates and writes summaries to GitHub Actions step summary
    • Truncates body previews at 500 chars to prevent bloat
  • Handler integration

    • Both safe_output_handler_manager.cjs and safe_output_project_handler_manager.cjs call writeSafeOutputSummaries() after message processing
    • Summaries written before final processing statistics

Example

Processing 2 safe-outputs now generates:

## Safe Output Processing Summary

Processed 2 safe-output message(s).

<details>
<summary>✅ Create Issue - Success (Message 1)</summary>

**URL:** https://github.com/owner/repo/issues/123
**Location:** owner/repo#123
**Temporary ID:** `issue-1`
**Labels:** bug, enhancement
</details>

<details>
<summary>✅ Create Project - Success (Message 2)</summary>

**Project URL:** https://github.com/orgs/owner/projects/456
</details>

Failures use ❌ and include error details. Skips standalone-handled types (e.g., noop).

Original prompt

Update the JavaScript code that takes the handlers from the safe-output types, runs them, and processes the messages: It should ALSO generate a step summary for each safe-output. enclosed in a <details> section.

This behavior is implemented for both regular safe-outputs and project-based safe-outputs. Reuse the helper.


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


Changeset

  • Type: patch
  • Description: Add step summaries for safe-output processing results. Safe-output handlers now generate collapsible step summaries for each processed message (truncated to 500 chars) and are integrated for both regular and project-based safe-outputs.

Ahoy! This treasure was crafted by 🏴‍☠️ Changeset Generator

- Created safe_output_summary.cjs helper with generateSafeOutputSummary and writeSafeOutputSummaries functions
- Updated safe_output_handler_manager.cjs to generate step summaries after processing messages
- Updated safe_output_project_handler_manager.cjs to generate step summaries after processing messages
- Each safe-output result is wrapped in a <details> section for collapsibility
- Added comprehensive tests for the new functionality
- All JavaScript tests pass (3021 passed)

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Update JavaScript code for safe-output handlers and summaries Add step summaries for safe-output processing results Jan 23, 2026
Copilot AI requested a review from pelikhan January 23, 2026 06:12
@pelikhan pelikhan added the smoke label Jan 23, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 23, 2026

✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟

@github-actions
Copy link
Contributor

📰 BREAKING: Smoke Copilot is now investigating this pull request. Sources say the story is developing...

@github-actions
Copy link
Contributor

github-actions bot commented Jan 23, 2026

🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰

@github-actions
Copy link
Contributor

github-actions bot commented Jan 23, 2026

🎬 THE ENDSmoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨

@github-actions
Copy link
Contributor

Smoke Test Results

PRs Reviewed:

Test Results:

  • ✅ GitHub MCP
  • ✅ Safe Inputs GH CLI
  • ✅ Serena MCP
  • ✅ Playwright
  • ✅ Tavily Web Search
  • ✅ File Writing
  • ✅ Bash Tool
  • ✅ Discussion Interaction

Overall Status: PASS

AI generated by Smoke Claude

@github-actions
Copy link
Contributor

Smoke Test Results ✅

PRs: #11425 (docs: remove-labels), #11450 (MCP tool definition)

  • ✅ GitHub MCP
  • ✅ Safe Inputs GH CLI
  • ✅ Serena MCP
  • ✅ Playwright
  • ✅ File Writing
  • ✅ Bash Tool
  • ✅ Discussion Interaction

Overall: PASS

@pelikhan @Copilot

AI generated by Smoke Copilot

@github-actions
Copy link
Contributor

docs: Document remove-labels safe output type
Add missing remove_labels tool definition to safe-outputs MCP server
GitHub MCP merged PRs ✅; safeinputs gh ✅; Serena activate ✅
Playwright title ✅; Tavily search ✅; file write ✅
Bash cat ✅; discussion query ✅; discussion comment ✅
Overall status: PASS

AI generated by Smoke Codex

@github-actions
Copy link
Contributor

📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤

@pelikhan pelikhan marked this pull request as ready for review January 23, 2026 06:35
@pelikhan pelikhan merged commit a0b1b0e into main Jan 23, 2026
83 checks passed
@pelikhan pelikhan deleted the copilot/update-safe-output-handlers branch January 23, 2026 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants