Skip to content

fix(cli): avoid debug formatting in user output#2130

Merged
fengmk2 merged 8 commits into
voidzero-dev:mainfrom
liangmiQwQ:liang/codex/avoid-debug-user-output
Jul 10, 2026
Merged

fix(cli): avoid debug formatting in user output#2130
fengmk2 merged 8 commits into
voidzero-dev:mainfrom
liangmiQwQ:liang/codex/avoid-debug-user-output

Conversation

@liangmiQwQ

Copy link
Copy Markdown
Collaborator

Some user-facing Vite+ diagnostics rely on Rust's Debug formatting. This can expose implementation details such as Some(1) for a failed process status and wrapper types around paths.

This PR uses display formatting for Vite+-owned paths and process statuses, while keeping explicit quotes in package-manager diagnostics and preserving developer-only debug traces. Failed global installs now report exit status: 1.

There is still follow-up work in Vite Task. In particular, vite_workspace::Error::PackageJsonNotFound currently uses {0:?} and can render paths as AbsolutePathBuf("/path"). That formatter and the sibling user-facing Debug formatters in vite_workspace should be fixed upstream, followed by updating Vite+'s pinned Vite Task revision.

🤖 Generated with Codex

@netlify

netlify Bot commented Jul 10, 2026

Copy link
Copy Markdown

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit 1ce389a
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a50905f3aa49d0008915952

@liangmiQwQ

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f71d7f49ef

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/vite_install/src/package_manager.rs Outdated
Restore Debug formatting for user-controlled package manager values. Raw interpolation allowed control characters to create spoofed diagnostic lines; Debug keeps the intended quotes while escaping the contents.
@liangmiQwQ

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: 4c6c8a85da

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@liangmiQwQ liangmiQwQ marked this pull request as ready for review July 10, 2026 02:37
@fengmk2 fengmk2 merged commit ccfc261 into voidzero-dev:main Jul 10, 2026
51 checks passed
@liangmiQwQ liangmiQwQ deleted the liang/codex/avoid-debug-user-output branch July 10, 2026 06:45
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.

2 participants