[2.x] fix: Skips interactive prompt in batch mode when project loading#8447
Merged
eed3si9n merged 1 commit intosbt:developfrom Jan 8, 2026
Merged
Conversation
Author
|
hello @eed3si9n |
eed3si9n
reviewed
Jan 8, 2026
0b6aae9 to
910a131
Compare
…ing fails When project loading fails in batch mode, sbt was showing an interactive prompt asking the user to choose between retry, quit, last, or ignore. However, in batch mode there is no interactive terminal, causing the process to hang waiting for input that will never come. This fix checks if we're in batch mode (Prompt.Batch) and automatically exits with failure (equivalent to 'q' quit option) without prompting the user. This prevents infinite retry loops on persistent errors and allows batch mode scripts to fail fast, which is appropriate for CI/CD environments. The interactive behavior remains unchanged for non-batch mode.
910a131 to
4976ec7
Compare
Author
great! all of the tests passed 🥳 |
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.
… fails
When project loading fails in batch mode, sbt was showing an interactive prompt asking the user to choose between retry, quit, last, or ignore. However, in batch mode there is no interactive terminal, causing the process to hang waiting for input that will never come.
This fix checks if we're in batch mode (Prompt.Batch) and automatically retries the project load (the default behavior) without prompting the user. This allows batch mode scripts to continue execution even when project loading encounters transient errors.
The interactive behavior remains unchanged for non-batch mode.
Closes #8344
Contribution by Gittensor, see my contribution statistics at https://gittensor.io/miners/details?githubId=11581451