fix: clean stdout for --config-only when appending SSH config#192
Merged
fix: clean stdout for --config-only when appending SSH config#192
Conversation
- Send waitForReady progress messages to stderr so they are not appended to ~/.ssh/config when redirecting stdout. - For --config-only with default text output, print raw SSH config instead of key-value text that prefixed lines with 'config:'.
- Add cliStatus() writing to stderr (documented as progress, not errors). - Drop redundant 'is ready!' line after wait succeeds. - For --config-only, skip wait banner and poll chatter; still print timeout/failure/retry exhaustion on stderr.
tode-rl
approved these changes
Apr 3, 2026
tode-rl
pushed a commit
that referenced
this pull request
Apr 3, 2026
🤖 I have created a release *beep* *boop* --- ## [1.15.0](v1.14.0...v1.15.0) (2026-04-03) ### Features * axon list with pagination and api-client upgrade ([#184](#184)) ([dc9743e](dc9743e)) * **cli:** add some (hidden) agent handling commands ([#187](#187)) ([1a92f5f](1a92f5f)) ### Bug Fixes * clean stdout for --config-only when appending SSH config ([#192](#192)) ([4428295](4428295)) * **cli:** account for pending scenarios in rli display ([#185](#185)) ([c82d528](c82d528)) * widen VERSION column in agent list to prevent truncation ([#190](#190)) ([c7eba09](c7eba09)) ### Performance Improvements * fetch total count in the background, not foreground ([#189](#189)) ([0903d89](0903d89)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.
Summary
rli devbox ssh <id> --config-only >> ~/.ssh/configwas polluting the config file because:waitForReadylogged viaconsole.log, so lines likeDevbox … is ready!were captured by the redirect.output({ config }, …)rendered asconfig: …instead of a rawHoststanza.Changes
waitForReadystatus lines to stderr (console.error).--config-onlywith default text output, print the generated SSH config withconsole.log(config)only (noconfig:prefix). JSON/YAML (-o json|yaml) still use the structuredoutput()helper.Testing
pnpm run buildpnpm testSlack Thread