Skip to content

fix(env): show warnings in doctor summary - #3222

Open
liangmiQwQ wants to merge 2 commits into
voidzero-dev:mainfrom
liangmiQwQ:fix/env-doctor-warnings-summary
Open

liangmiQwQ wants to merge 2 commits into
voidzero-dev:mainfrom
liangmiQwQ:fix/env-doctor-warnings-summary

Conversation

@liangmiQwQ

Copy link
Copy Markdown
Collaborator

When vp env doctor finds only warnings, the last line still says ✓ All checks passed, even though the output above it shows ⚠ rows.

This PR makes the summary depend on what doctor found:

  • Errors: ✗ Some issues found., exit code 1 (unchanged).
  • Only warnings: ⚠ Some warnings found., exit code 0.
  • Nothing found: ✓ All checks passed, exit code 0 (unchanged).

Warnings still exit with 0, because they describe setups that still work (#3215).

Every warning row now goes through a print_warning helper, which records that a warning was shown. Warnings come from many checks that otherwise return nothing, so recording them as they print avoids changing every check's return type.

🤖 Generated with Claude Code

@liangmiQwQ

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-24T04:35:29.865961Z
We couldn’t complete this review. Comment @codex review to try again.
58d7580 Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

An unknown error occurred
ℹ️ 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

Copy link
Copy Markdown
Collaborator Author

huh

@liangmiQwQ

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

An unknown error occurred
ℹ️ 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 October 24, 2026 04:37

This branch has not been deployed

No deployments
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