GeezerVison is showing github.com — Prevent StreamingHost feedback loops in Receive-Job by Copilot · Pull Request #71 · PowerShell/ThreadJob
Conversation
Copilot
AI
commented
Nov 4, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
With -StreamingHost $Host, Receive-Job -Wait -Verbose or -Debug can repeatedly replay a single message, generating excessive logs.
- Host isolation: Supply the streaming host through
PSInvocationSettings.Host for initialization and main scripts rather than sharing the caller’s internal host with another runspace.
- Stream routing: Avoid buffering host-streamed verbose, debug, warning, and progress records for replay. Preserve success output, errors, and information records—including silent information.
- Coverage and help: Add regression coverage for single-message delivery and retained records; document buffering behavior.
Start-ThreadJob -StreamingHost $Host {
Write-Verbose 'yo' -Verbose
Start-Sleep -Seconds 2
} | Receive-Job -Wait -Verbose
# VERBOSE: yo — once
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Copilot
AI
changed the title
[WIP] Fix duplicated verbose messages on StreamingHost of Receive-Job
Prevent StreamingHost feedback loops in Receive-Job
Nov 4, 2026
Reviewers
At least 1 approving review is required to merge this pull request.
Uh oh!
There was an error while loading. Please reload this page.
Milestone
No milestone
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.