Buffer console logs during interactive prompts#15959
Buffer console logs during interactive prompts#15959Victor-johnsson wants to merge 1 commit intomicrosoft:mainfrom
Conversation
Pause terminal debug logging while interactive prompts are active so prompt UI stays readable, then replay buffered lines when the prompt completes. Apply prompt scopes to all ConsoleInteractionService prompt methods and add tests covering buffering and nested scope flush behavior.
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 15959Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 15959" |
|
Re-running the failed jobs in the CI workflow for this pull request because 1 job was identified as retry-safe transient failures in the CI run attempt.
|
|
@davidfowl This is related to the My question is do we want writing logs to the console, and improve the experience like this? Or disable writing logs to the console? (I'm not sure whether you added the console logging orginally, but I remember you doing work in this space) |
Description
Pause terminal debug logging while interactive prompts are active so prompt UI stays readable, then replay buffered lines when the prompt completes. Apply prompt scopes to all ConsoleInteractionService prompt methods and add tests covering buffering and nested scope flush behavior.
Fixes #15936
Checklist