Repository navigation
Keep status spinners off redirected and custom output - #2172
Merged
Tyrie Vella (tyrielv) merged 1 commit intoNov 12, 2026
Merged
Tyrie Vella (tyrielv) merged 1 commit into
Tyrie Vella (tyrielv) merged 1 commit into
Conversation
Require a recognized console writer and its corresponding unredirected stream before status animation. Keep custom writers on the static start/result path. Reject managed console replacements through optional runtime metadata. If the runtime metadata is absent, disable animation. Preserve that metadata for NativeAOT. Add unit tests for static FileStream, memory, and pipe writers and completion messages. Add unit tests for explicit spinner requests, managed replacements, independent redirection, and runtime metadata compatibility. Keep the FileStream test off disk through a borrowed pipe handle. Assisted-by: GPT-6.1 Sol Signed-off-by: Tyrie Vella <[email protected]>
Tyrie Vella (tyrielv)
force-pushed
the
tyrielv/spinner-output-hardening
branch
from
November 11, 2026 20:46
b163c7b to
aade8e1
Compare
Tyrie Vella (tyrielv)
marked this pull request as ready for review
November 11, 2026 23:35
Tyrie Vella (tyrielv)
enabled auto-merge
November 11, 2026 23:36
|
[KeithBot]: ✅ No issues found · iteration 1 ( Approach: Right layer: gating animation inside the shared ConsoleHelper fixes the ungated RepairVerb and PrefetchVerb spinners and future direct callers, not another per-call-site check. Validation
Approving. 🤖 KeithBot · claude-opus-5.5, gpt-6.1-sol, gemini-4-argon + approach review · reply on a thread to dispute |
Keith Klein (KeithIsSleeping)
approved these changes
Nov 12, 2026
auto-merge was automatically disabled
November 12, 2026 17:00
Pull request was closed
This was referenced Nov 17, 2026
Merged
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem and Context
Direct callers can request a spinner even when the destination is a file or pipe. The helper currently trusts that request. This adds carriage-return updates and transient status text to captured output.
Changes
showSpinner: falsebehavior.Console.SetOutandConsole.SetErrorreplacements through optional runtime metadata. Public redirection flags describe OS handles, not managed replacements. Missing metadata disables animation. Preserve this metadata for NativeAOT.FileStream, memory, and pipe writers, completion results, and failure messages. TheFileStreamtest uses a pipe handle without disk access.