-
-
Notifications
You must be signed in to change notification settings - Fork 363
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More fixes for prompt logger (#4075)
Fixes #4074 We shouldn't sleep for `nonInteractivePromptUpdateIntervalMillis` every time `readTerminalDims` fails, because that means if there's a transient failure it doesn't check again for 60s during which there is no prompt shown Instead, we always check after `promptUpdateIntervalMillis` seconds, and but only refresh the prompt if `now - lastUpdate > nonInteractivePromptUpdateIntervalMillis` Also we make sure we call `writeTerminalDims` at least once before we start the Mill background process, rather than relying on the background thread to reach that code path in time Either of these fixes alone should solve the issue, but might as well do both
- Loading branch information
Showing
3 changed files
with
31 additions
and
22 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