Skip to content

fix: fatal errors break the terminal due to incorrect bubble tea shutdown#422

Merged
klauspost merged 2 commits intominio:masterfrom
marktheunissen:terminal-error-break
Oct 15, 2025
Merged

fix: fatal errors break the terminal due to incorrect bubble tea shutdown#422
klauspost merged 2 commits intominio:masterfrom
marktheunissen:terminal-error-break

Conversation

@marktheunissen
Copy link
Contributor

Make the correct ui.Wait() call when exiting on a fatal log, to prevent the terminal cursor from disappearing, as well as other problems that make the terminal unusable:

Before:

Screenshot 2025-10-07 at 15 49 35

After:

Screenshot 2025-10-07 at 15 49 59

// Clean up UI if one is registered
if u := globalUI.Load(); u != nil {
u.Wait()
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's not ideal, but the problem is fatalIf does exit(). Another solution would be to refactor fatalIf itself, but it's used everywhere...

@klauspost klauspost merged commit 143bf4f into minio:master Oct 15, 2025
6 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.

3 participants