Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 11, 2026

The MCP gateway log parser only wrote to step summary, while safe inputs log parser correctly logged to both step summary and core.info. This made MCP gateway logs invisible in console output.

Changes

  • Added plain text generators:

    • generatePlainTextGatewaySummary() - strips markdown/HTML from gateway.md
    • generatePlainTextLegacySummary() - formats legacy gateway.log/stderr.log
  • Updated main(): calls core.info() with plain text before writing step summary

Example

Before:

core.summary.addRaw(gatewayMdContent).write();
core.info("MCP gateway markdown summary added to step summary");

After:

const plainTextSummary = generatePlainTextGatewaySummary(gatewayMdContent);
core.info(plainTextSummary);  // Now logs actual content
core.summary.addRaw(gatewayMdContent).write();

Console output now includes full log content (tables converted to plain text, code blocks preserved) instead of just status messages.

Original prompt

Update the script that print logs to the step summary (for safe inputs, MCP gateway) to also write the text to core.info


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

- Add generatePlainTextGatewaySummary to convert gateway.md to plain text
- Add generatePlainTextLegacySummary for legacy log files
- Update main() to call core.info with plain text before writing step summary
- Add comprehensive tests for new functions
- All existing tests continue to pass

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Update log script to include core.info Add core.info logging to MCP gateway log parser Jan 11, 2026
Copilot AI requested a review from pelikhan January 11, 2026 17:23
@pelikhan pelikhan added the smoke label Jan 11, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 11, 2026

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

@github-actions
Copy link
Contributor

github-actions bot commented Jan 11, 2026

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

@github-actions
Copy link
Contributor

github-actions bot commented Jan 11, 2026

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

@github-actions
Copy link
Contributor

github-actions bot commented Jan 11, 2026

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

@github-actions
Copy link
Contributor

Smoke Test Results

Last 2 merged PRs:

Test Results:

  • ✅ GitHub MCP: Last 2 merged PRs retrieved
  • ❌ Serena Go: Tool not available
  • ✅ Playwright: Navigated to GitHub, title verified
  • ❌ Safe Input gh: Tool not available
  • ✅ File Writing: Test file created successfully
  • ✅ Bash: File verification successful

Overall Status: PARTIAL PASS (4/6 tests passed)

AI generated by Smoke Claude

@pelikhan pelikhan marked this pull request as ready for review January 11, 2026 17:30
@pelikhan pelikhan merged commit 832e7cc into main Jan 11, 2026
32 checks passed
@pelikhan pelikhan deleted the copilot/update-log-script branch January 11, 2026 17:30
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