-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ui): wait until task output is fully rendered on stop (#8588)
### Description Previously we weren't `app.stop()` would exit before the TUI cleanup completed. This resulted in a race condition between the TUI cleanup and the run summary getting printed. This PR changes the call to now wait until cleanup completes before returning ensuring that the run summary is written only after the TUI exits. ### Testing Instructions Run a task a few times and you should see the run summary either not get rendered *or* getting rendered before the terminal is back in cooked mode. Before: <img width="1106" alt="Screenshot 2024-06-24 at 12 13 12 PM" src="https://github.com/vercel/turbo/assets/4131117/6fc678c3-36a8-4526-bd22-289aa5f1ca94"> After: <img width="759" alt="Screenshot 2024-06-24 at 12 09 20 PM" src="https://github.com/vercel/turbo/assets/4131117/8cb93df6-3310-4047-b460-30ab10e40df2">
- Loading branch information
1 parent
7518fba
commit 8fd9865
Showing
4 changed files
with
29 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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