Skip to content

Conversation

@mvz
Copy link
Contributor

@mvz mvz commented Jan 25, 2026

Summary

Do not announce binary executables when the command_content announcer is active.

Details

The command_content announcer would announce the full binary file if the command happened to be a binary file.

This change adds a check to SpawnProcess#content to make sure binary files are not announced. It uses the marcel MIME type detection gem for this.

Motivation and Context

Fixes #667.

How Has This Been Tested?

I added specs for SpawnProcess#content.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Internal change (refactoring, test improvements, developer experience or update of dependencies)

Checklist:

  • I've added tests for my code
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@mvz mvz force-pushed the do-not-announce-binaries branch from d78a178 to a38125b Compare January 25, 2026 19:12
@mvz mvz marked this pull request as ready for review January 25, 2026 19:20
@mvz mvz force-pushed the do-not-announce-binaries branch from a38125b to ec50cb9 Compare January 25, 2026 19:28
@mvz
Copy link
Contributor Author

mvz commented Jan 25, 2026

There is technically a small breaking change here in that SpawnProcess#content will no longer return a full binary.

@mvz mvz added this to the 3.0.0 milestone Jan 25, 2026
mvz added 3 commits February 1, 2026 11:18
The command_content announcer would announce the full binary file if the
command happened to be a binary file.

This change adds a check to make sure binary files are not announced. It
uses the marcel MIME type detection gem for this.
@mvz mvz force-pushed the do-not-announce-binaries branch from ec50cb9 to 78488ed Compare February 1, 2026 10:18
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.

Combined announcer outputs binaries to stdout

1 participant