fix: always show the blocks command in help - #653
Merged
Conversation
The blocks command was hidden from help unless the CLI detected it was being run by an AI coding agent. Nothing about the command is agent-specific: its descriptions are audience-neutral and its reference docs already advertise it as a normal public command. Cobra's Hidden only suppresses help listing and never blocks dispatch, so the gate hid the command from humans who could already run it. It also made generated docs depend on the environment. docgen skips commands failing IsAvailableCommand(), which is false for hidden commands, so `make rc` from a plain terminal would have deleted slack_blocks.md and slack_blocks_preview.md and dropped blocks from slack.md. Agent detection is still used for the User-Agent header, telemetry, and tracing; only the visibility gate is removed.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #653 +/- ##
==========================================
+ Coverage 72.58% 72.60% +0.01%
==========================================
Files 239 239
Lines 20229 20228 -1
==========================================
+ Hits 14684 14686 +2
+ Misses 4274 4272 -2
+ Partials 1271 1270 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
mwbrooks
marked this pull request as ready for review
August 28, 2026 22:16
Member
Author
|
Thanks @zimeg! Appreciate that you noticed this before we cut the next release! 🙇🏻 |
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog
The
blockscommand is now listed inslack helpfor everyone, instead of only appearing when the CLI detects it is being run by an AI coding agent.Summary
This pull request removes the AI-agent visibility gate from the
blockscommand so it behaves like every other command.Agent detection is unchanged everywhere.
Preview
Root help with all agent environment variables stripped, which previously omitted
blocksentirely:Testing
Requirements