Skip to content

[2.x] fix: Skips interactive prompt in batch mode when project loading#8447

Merged
eed3si9n merged 1 commit intosbt:developfrom
Francluob:fix/8344-batch-mode-load-failed-prompt
Jan 8, 2026
Merged

[2.x] fix: Skips interactive prompt in batch mode when project loading#8447
eed3si9n merged 1 commit intosbt:developfrom
Francluob:fix/8344-batch-mode-load-failed-prompt

Conversation

@Francluob
Copy link
Copy Markdown

… 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

@Francluob
Copy link
Copy Markdown
Author

hello @eed3si9n
could you please review my pr?
thanks

@Francluob Francluob force-pushed the fix/8344-batch-mode-load-failed-prompt branch from 0b6aae9 to 910a131 Compare January 8, 2026 18:25
…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.
@Francluob Francluob force-pushed the fix/8344-batch-mode-load-failed-prompt branch from 910a131 to 4976ec7 Compare January 8, 2026 18:31
@Francluob Francluob requested a review from eed3si9n January 8, 2026 18:31
Copy link
Copy Markdown
Member

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Francluob
Copy link
Copy Markdown
Author

Thanks!

great! all of the tests passed 🥳

@eed3si9n eed3si9n changed the title feat:skip interactive prompt in batch mode when project loading… [2.x] fix: Skips interactive prompt in batch mode when project loading Jan 8, 2026
@eed3si9n eed3si9n merged commit df90cb9 into sbt:develop Jan 8, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"-batch" mode should remove "Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? (default: r)" prompt

2 participants