Repository navigation
Conversation
…rompts When a hidden input prompt such as `env set` runs without a TTY, the error suggested passing the value with a flag. For a secret that puts it in shell history, and a coding agent reading the error would retry with the secret on the command line. The suggestion now points to an interactive terminal first and names the flag as the fallback.
2 of 3 tasks
mwbrooks
marked this pull request as ready for review
November 15, 2026 04:15
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
When a command that asks for a secret, such as
slack env set, runs without an interactive terminal, the error now suggests running it in a terminal to enter the value with hidden input, before mentioning the flag.Summary
This pull request changes the suggestion shown when a hidden input prompt can't be shown, for developers and the coding agents running commands for them. Before, the error said to re-run with the value as a flag (
--value,--token), which leaves a secret in shell history. A coding agent reading that error would retry with the secret on the command line, and in its transcript.The flag still works for scripts and CI. Every other prompt keeps the existing suggestion. This covers the three hidden input prompts:
env set,auth revoke, andexternal-auth add-secret.Testing
slack env set OPENAI_API_KEY < /dev/nullin a Bolt project and confirmed the new suggestion above.slack env set OPENAI_API_KEYin a terminal and confirmed the hidden prompt is unchanged.Notes
create-slack-appskill handenv setto the developer rather than retry with--value.Requirements