fix: splash screen and log output routing based on delivertostdout setting#1999
fix: splash screen and log output routing based on delivertostdout setting#1999
Conversation
Co-authored-by: rnwood <1327895+rnwood@users.noreply.github.com>
📊 Code Coverage Report
📁 Coverage by Namespace
Overall Coverage Details:
Enhanced coverage report with namespace breakdown - Azure DevOps Build #3.12.0-ci20251228107_pr1999 20251228.8 |
|
@copilot when delivertostdout is enabled, we need to make sure there's no unwanted output to stdout. |
Co-authored-by: rnwood <1327895+rnwood@users.noreply.github.com>
Fixed in commit de1c410. When |
…x error logging Co-authored-by: rnwood <1327895+rnwood@users.noreply.github.com>
Co-authored-by: rnwood <1327895+rnwood@users.noreply.github.com>
|
❌ PR Title Validation FailedYour pull request title doesn't follow the Required format: Valid types: Examples:
Your current title: Please update your PR title to match the conventional commit For more details, see our |
❌ PR Title Validation FailedYour pull request title doesn't follow the Required format: Valid types: Examples:
Your current title: Please update your PR title to match the conventional commit For more details, see our |
|
@copilot The build triggered by this PR has failed. Please use the Azure DevOps REST API to investigate and fix the issues. 🚨 IMPORTANT: Only proceed if this is the most recent commit on your branch. If a newer commit exists, ignore this notification. Build Details:
Instructions for @copilot:
The Azure DevOps REST API provides comprehensive build failure information without requiring browser access. |



The ASCII art splash screen and help hint were incorrectly written to stderr regardless of the
delivertostdoutsetting. This caused the splash screen to appear in stderr even during normal operation. Additionally, when--delivertostdoutis enabled, stdout needs to be kept clean for raw message content only.Changes
IsDeliverToStdoutEnabled()helper method to detect the--delivertostdoutflagSetupStaticLoggerto use customConsoleStreamSinkfor proper stream routingBefore/After
Before:
After:
This fix ensures that when
--delivertostdoutis used, stdout remains clean for message content capture, while all diagnostic output (splash screen and logs) goes to stderr. When the flag is not used, everything goes to stdout as expected for normal operation.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.