Repository navigation
fix(cli): separate validation diagnostics from the spinner line [RED-1574] [ship] - #1621
Merged
Merged
Conversation
…1574] validateProject printed diagnostics while the "Validating project resources" spinner was running. oclif holds back output while a spinner runs and prints it after the status line, so the first diagnostic came directly under that line and the blank separator after the last one. Stop the spinner first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sorccu
enabled auto-merge (squash)
November 26, 2026 18:59
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.
Linear: RED-1574
When validation finds diagnostics,
validate,test,pw-test,deployandimport planprinted the first diagnostic directly under the spinner line, and two blank lines before the closing message:AuthCommand.validateProjectprinted the diagnostics while the "Validating project resources" spinner was still running. oclif'sux.actionholds back everything written to stdout and stderr while a spinner runs and prints it after the status line once the spinner stops. So the blank separator line fromactionSuccessandactionFailurecame after the diagnostics instead of before them.This PR stops the spinner first, the same way
BaseCommand.catchalready does forInvalidConfigError. Output is now:I checked it against a scratch project for an invalid project and a project with warnings, in both non-TTY and TTY output. The new spec
validate-project-output.spec.tslocks in the order, and it fails without the fix.Docs: checkly/docs#881 shows the fixed output.
🤖 Generated with Claude Code