Skip to content

fix(output): print notes to stderr#2265

Open
wan9chi wants to merge 1 commit into
mainfrom
fix/note-stderr
Open

fix(output): print notes to stderr#2265
wan9chi wants to merge 1 commit into
mainfrom
fix/note-stderr

Conversation

@wan9chi

@wan9chi wan9chi commented Jul 27, 2026

Copy link
Copy Markdown
Member

Motivation

  • feat(cli): note when a built-in shares a name with a package.json script #2259, at the top of this stack, adds a note that has to reach an AI agent capturing piped output while leaving machine-readable stdout alone (oxlint -f json, vitest --reporter=json and oxfmt --stdin-filepath all put
    their payload on stdout). Gating that note on a TTY would hide it from some ai agents; printing it to stdout would corrupt those payloads. Moving note to stderr resolves both.

  • This is also what rfcs/cli-output-polish.md specified for note in both Rust
    and TypeScript — the implementation incorrectly used println!.

A note explains the situation around a command rather than being part of its
result, so piping stdout to a file or a parser should not pick it up. Every
current caller is prose for a human: `vp check`'s "Format skipped", the dlx
yarn@1 fallback, "Version will be downloaded on first use", "Restart your
terminal to apply shell changes".

This is also what `rfcs/cli-output-polish.md` specified for `note` in both
Rust and TypeScript; the implementation used `println!` instead.
@netlify

netlify Bot commented Jul 27, 2026

Copy link
Copy Markdown

Deploy Preview for viteplus-preview ready!

Name Link
🔨 Latest commit daf9e3e
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a673585e108b1000886913e
😎 Deploy Preview https://deploy-preview-2265--viteplus-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

wan9chi commented Jul 27, 2026

Copy link
Copy Markdown
Member Author

How to use the Graphite Merge Queue

Add the label auto-merge to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions

Copy link
Copy Markdown
Contributor

Native binary sizes (daf9e3e)

Final release artifacts built by the canonical build-upstream and build-windows-cli actions.

Artifact Format Base PR Change
vp (Linux x64) Binary 10.31 MiB 10.31 MiB 0 B (0.00%)
vp (Linux x64) gzip -9 4.42 MiB 4.42 MiB -274 B (-0.01%)
NAPI (Linux x64) Binary 33.07 MiB 33.07 MiB 0 B (0.00%)
NAPI (Linux x64) gzip -9 12.72 MiB 12.72 MiB +59 B (+0.00%)
vp (macOS ARM64) Binary 7.64 MiB 7.64 MiB 0 B (0.00%)
vp (macOS ARM64) gzip -9 3.84 MiB 3.84 MiB +8 B (+0.00%)
NAPI (macOS ARM64) Binary 40.50 MiB 40.50 MiB 0 B (0.00%)
NAPI (macOS ARM64) gzip -9 16.97 MiB 16.97 MiB +131 B (+0.00%)
vp (Windows x64) Binary 8.35 MiB 8.34 MiB -3.50 KiB (-0.04%)
vp (Windows x64) gzip -9 3.64 MiB 3.64 MiB -344 B (-0.01%)
NAPI (Windows x64) Binary 27.51 MiB 27.51 MiB +512 B (+0.00%)
NAPI (Windows x64) gzip -9 10.70 MiB 10.70 MiB +67 B (+0.00%)
Trampoline (Windows x64) Binary 203.00 KiB 203.00 KiB 0 B (0.00%)
Trampoline (Windows x64) gzip -9 97.91 KiB 97.91 KiB 0 B (0.00%)
Installer (Windows x64) Binary 4.44 MiB 4.44 MiB 0 B (0.00%)
Installer (Windows x64) gzip -9 2.08 MiB 2.08 MiB -1 B (-0.00%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant